html,
body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1:focus {
    outline: none;
}

.side-nav .side-nav-item a.side-nav-link:not(.text-danger) {
    color: #ffffff;
}

.side-nav .side-nav-title.title-settings {
    color: #f5c518;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5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    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

.loading-progress circle {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: #1b6ec2;
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
}

code {
    color: #c02d76;
}



.logo-brand {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Change from center to flex-start */
    gap: 15px;
    text-decoration: none;
    width: fit-content;
    /* Add this */
}

.brand-logo {
    height: 120px;
    width: auto;
}

.brand-logo2 {
    height: 80px;
    width: auto;
}

.brand-name {
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
    margin-left: 10px;
}

/* For tablets */
@media (max-width: 768px) {
    .brand-logo {
        height: 120px;
    }

    .brand-logo2 {
        height: 80px;
        width: auto;
    }


    .brand-name {
        font-size: 20px;
    }
}

/* For mobile */
@media (max-width: 480px) {
    .brand-logo {
        height: 120px;
    }


    .brand-logo2 {
        height: 80px;
        width: auto;
    }

    .brand-name {
        font-size: 18px;
    }

    .logo-brand {
        gap: 8px;
    }
}


/* Detail Items */
.detail-item {
    margin-bottom: 1rem;
}

.detail-item label {
    display: block;
    font-weight: 600;
    color: #7f8c8d;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.detail-item p {
    color: #2c3e50;
    font-size: 1rem;
    margin: 0;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 6px;
}

/* Timeline */
.timeline-container {
    padding: 1rem 0;
}

.timeline {
    position: relative;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: #e0e0e0;
}

.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    z-index: 1;
}

.timeline-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 3px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.timeline-item.completed .timeline-icon {
    border-color: #1a3a2a;
    background: #1a3a2a;
    color: white;
}

.timeline-item.active .timeline-icon {
    border-color: #f5c518;
    background: #f5c518;
    color: white;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(52, 152, 219, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0);
    }
}

.timeline-content {
    text-align: center;
    margin-top: 0.5rem;
}

.timeline-content h6 {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: #2c3e50;
}

.timeline-content small {
    font-size: 0.75rem;
    color: #7f8c8d;
}

/* Approvals Section */
.approval-section {
    padding: 0.5rem 0;
}

.approval-header {
    margin-bottom: 0.75rem;
}

.approval-header h6 {
    color: #2c3e50;
    font-weight: 600;
}

.approval-body {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
}

.comment-box {
    background: white;
    padding: 0.75rem;
    border-radius: 6px;
    border-left: 3px solid #1a3a2a;
    margin-top: 0.5rem;
}

.comment-text {
    color: #2c3e50;
    font-size: 0.95rem;
    margin: 0.25rem 0 0 0;
    line-height: 1.6;
}

/* Accordion Customization */
.accordion-item {
    border: none;
    margin-bottom: 0.5rem;
    border-radius: 8px !important;
    overflow: hidden;
}

.accordion-button {
    background: #f8f9fa;
    font-weight: 500;
    padding: 0.75rem 1rem;
}

.accordion-button:not(.collapsed) {
    background: #e8f4fd;
    color: #2c3e50;
}

.accordion-body {
    background: white;
    padding: 1.25rem;
}

/* Responsive */
@media (max-width: 768px) {
    .application-title {
        font-size: 1.5rem;
    }

    .timeline {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 2rem;
    }

    .timeline::before {
        left: 15px;
        top: 0;
        bottom: 0;
        width: 3px;
        height: auto;
    }

    .timeline-item {
        flex-direction: row;
        width: 100%;
        margin-bottom: 1.5rem;
    }

    .timeline-content {
        margin-top: 0;
        margin-left: 1rem;
        text-align: left;
    }

    .approval-body {
        padding: 0.75rem;
    }
}

/* Print Styles */
@media print {
    .application-header {
        background: #1a3a2a !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /*.card {*/
    /*    break-inside: avoid;*/
    /*    box-shadow: none !important;*/
    /*    border: 1px solid #ddd;*/
    /*}*/

    /*.badge {*/
    /*    -webkit-print-color-adjust: exact;*/
    /*    print-color-adjust: exact;*/
    /*}*/
}


/*Application Proposal Styling*/
.application-container {
    background: #f0f2f5;
    min-height: 100vh;
    padding-bottom: 3rem;
}

/* Header */
.application-header {
    background: #1a3a2a;
    padding: 2rem 0;
    color: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 100;
}

.application-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.application-subtitle {
    font-size: 0.95rem;
    opacity: 0.85;
    margin: 0.25rem 0 0 0;
}

.status-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.status-draft {
    background: #95a5a6;
    color: white;
}

.status-submitted {
    background: #f39c12;
    color: white;
}

.status-review {
    background: #f5c518;
    color: white;
}

.status-progress {
    background: #9b59b6;
    color: white;
}

.status-approved {
    background: #1a3a2a;
    color: white;
}

.status-rejected {
    background: #e74c3c;
    color: white;
}

/* Steps Container */
.steps-container {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.steps-wrapper {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.step-item {
    display: flex;
    align-items: center;
    flex: 1;
    position: relative;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s ease;
    border-radius: 12px;
}

.step-item:hover:not(.locked) {
    background: #f8f9fa;
}

.step-item.locked {
    cursor: not-allowed;
    opacity: 0.6;
}

.step-indicator {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    background: #e9ecef;
    color: #6c757d;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-right: 1rem;
}

#f5c518 .step-item.active .step-indicator {
    background: #f5c518;
    color: white;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.2);
}

.text-primary {
    color: #1a3a2a !important;
}

.step-item.completed .step-indicator {
    background: #1a3a2a;
    color: white;
}

.step-item.locked .step-indicator {
    background: #e9ecef;
    color: #adb5bd;
}

.step-content {
    flex: 1;
    min-width: 0;
}

.step-title {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95rem;
}

.step-title i {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.step-item.active .step-title {
    color: #f5c518;
}

.step-item.completed .step-title {
    color: #1a3a2a;
}

.step-status {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0.15rem;
}

.step-connector {
    flex: 1;
    height: 3px;
    background: #e9ecef;
    margin: 0 0.5rem;
    min-width: 20px;
    position: relative;
}

.step-connector.completed {
    background: #1a3a2a;
}

/* Form Content */
.form-content-wrapper {
    margin-top: 1.5rem;
}

.form-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.form-card-header {
    padding: 1.5rem 2rem;
    border-bottom: 2px solid #f0f2f5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1a3a2a;
}

.form-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    margin: 0;
}

.step-counter {
    font-size: 0.85rem;
    color: #6c757d;
    background: #e9ecef;
    padding: 0.3rem 1rem;
    border-radius: 50px;
}

.form-card-body {
    padding: 2rem;
    min-height: 400px;
}

.form-card-footer {
    padding: 1.25rem 2rem;
    border-top: 2px solid #f0f2f5;
    background: #fafbfc;
}

/* Form Controls */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    font-weight: 500;
    color: #2c3e50;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    display: block;
}

.form-group label .required {
    color: #e74c3c;
    margin-left: 0.25rem;
}

/*.form-control {*/
/*    border: 2px solid #e9ecef;*/
/*    border-radius: 10px;*/
/*    padding: 0.6rem 1rem;*/
/*    transition: all 0.3s ease;*/
/*    font-size: 0.95rem;*/
/*}*/

.form-control:focus {
    border-color: #f5c518;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-control:disabled {
    background: #f8f9fa;
    cursor: not-allowed;
}

.form-control.is-invalid {
    border-color: #e74c3c;
}

.form-text {
    font-size: 0.85rem;
    color: #6c757d;
}


.hint-icon {
    display: inline-block;
    cursor: help;
    margin-left: 5px;
    color: #6c757d;
    font-size: 14px;
    font-weight: normal;
    /* border: 1px solid #6c757d; */
    border-radius: 50%;
    width: 18px;
    height: 18px;
    text-align: center;
    line-height: 16px;
    transition: all 0.2s;
}

.hint-icon:hover {
    background-color: #6c757d;
    color: white;
}

.helper-text {
    display: block;
    margin-top: 4px;
    font-size: 0.8rem;
}

.helper-text i {
    margin-right: 4px;
}


/* company application table styling */
.search-box {
    position: relative;
    min-width: 200px;
}

.search-box .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

.search-box .form-control {
    padding-left: 36px;
}

/* Avatar styling */
.avatar-sm {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.avatar-title {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-weight: 600;
}

.bg-soft-primary {
    background-color: rgba(13, 110, 253, 0.1);
}

.bg-soft-info {
    background-color: rgba(13, 202, 240, 0.1);
}

.bg-soft-success {
    background-color: rgba(25, 135, 84, 0.1);
}

.bg-soft-warning {
    background-color: rgba(255, 193, 7, 0.1);
}

.bg-soft-danger {
    background-color: rgba(220, 53, 69, 0.1);
}

.bg-soft-secondary {
    background-color: rgba(108, 117, 125, 0.1);
}

/* Tabs styling */
.nav-tabs-custom {
    border-bottom: 1px solid #dee2e6;
}

.nav-tabs-custom .nav-link {
    border: none;
    padding: 0.65rem 1.25rem;
    color: #6c757d;
    font-weight: 500;
    border-radius: 0;
}

.nav-tabs-custom .nav-link:hover {
    color: #0d6efd;
    background: transparent;
}

.nav-tabs-custom .nav-link.active {
    color: #0d6efd;
    border-bottom: 2px solid #0d6efd;
    background: transparent;
}

/* Modal styling */
.modal-xl {
    max-width: 1200px;
}

/* Table hover effects */
.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.04);
    cursor: pointer;
}


/* Code styling */
code {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 768px) {
    .steps-wrapper {
        flex-direction: column;
        gap: 1rem;
    }

    .step-item {
        padding: 0.75rem;
    }

    .step-connector {
        display: none;
    }

    .form-card-header {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
        padding: 1rem;
    }

    .form-card-body {
        padding: 1rem;
    }

    .form-card-footer {
        padding: 1rem;
    }

    .form-card-footer .d-flex {
        flex-direction: column;
        gap: 0.75rem;
    }

    .form-card-footer .d-flex>div {
        width: 100%;
    }

    .form-card-footer .btn {
        width: 100%;
        justify-content: center;
    }

    .application-header {
        padding: 1rem 0;
    }

    .application-title {
        font-size: 1.3rem;
    }

    .status-badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.8rem;
    }
}

/* Print Styles */
@media print {
    .application-header {
        background: #1a3a2a !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        position: static;
    }

    .steps-container {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ddd;
    }

    .form-card {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ddd;
    }

    .btn {
        display: none !important;
    }
}