/* Custom CSS for NMA Supplier Registration Portal - Enterprise Edition */
:root {
    --primary-color: #0b2d71;
    --primary-dark: #081f4d;
    --primary-light: #1a4291;
    --secondary-color: #0066b2;
    --secondary-dark: #004d85;
    --secondary-light: #1a7bc4;
    --success-color: #0066b2;
    --danger-color: #dc3545;
    --warning-color: #fd7e14;
    --info-color: #0066b2;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --dark-gray: #495057;
    --white: #ffffff;
    --border-color: #dee2e6;
    --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    --card-shadow-hover: 0 2px 6px rgba(0, 0, 0, 0.08);
    --border-radius: 0px;
    --border-radius-lg: 0px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-family-primary: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    --font-family-heading: "Inter", "Segoe UI", system-ui, sans-serif;
    --banner-height: 48px;
}

/* Announcement Banner */
.announcement-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--banner-height);
    background: linear-gradient(135deg, #0b2d71 0%, #004d85 100%);
    color: white;
    z-index: 9999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    animation: slideDown 0.5s ease-out;
}

    .announcement-banner.hidden {
        animation: slideUp 0.3s ease-out forwards;
    }

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(0);
        opacity: 1;
    }

    to {
        transform: translateY(-100%);
        opacity: 0;
    }
}

.announcement-container {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 100%;
    padding: 0 1rem;
    gap: 1rem;
}

.announcement-icon {
    flex-shrink: 0;
    font-size: 1.2rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

.announcement-content {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: var(--banner-height);
    display: flex;
    align-items: center;
}

.announcement-slider {
    display: flex;
    align-items: center;
    animation: scroll 30s linear infinite;
    white-space: nowrap;
}

    .announcement-slider:hover {
        animation-play-state: paused;
    }

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.announcement-item {
    display: inline-flex;
    align-items: center;
    padding: 0 3rem;
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
}

    .announcement-item .badge {
        margin-right: 0.5rem;
        padding: 0.25rem 0.5rem;
        font-size: 0.7rem;
        border-radius: 3px;
        text-transform: uppercase;
        font-weight: 600;
    }

    .announcement-item.important .badge {
        background: #fd7e14;
    }

    .announcement-item.info .badge {
        background: #17a2b8;
    }

    .announcement-item.success .badge {
        background: #28a745;
    }

.announcement-close {
    flex-shrink: 0;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s ease;
}

    .announcement-close:hover {
        background: rgba(255, 255, 255, 0.1);
    }

/* Adjust body padding when banner is visible */
body {
    padding-top: var(--banner-height);
}

    body.banner-closed {
        padding-top: 0;
    }

/* Global Styles */
* {
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    font-family: var(--font-family-primary);
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.6;
    color: #1a252f;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-family-heading);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #0f1419;
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
}

h3 {
    font-size: 1.75rem;
    font-weight: 700;
}

h4 {
    font-size: 1.5rem;
    font-weight: 600;
}

h5 {
    font-size: 1.25rem;
    font-weight: 600;
}

h6 {
    font-size: 1.125rem;
    font-weight: 600;
}

p,
li,
td,
th,
label,
span {
    font-weight: 500;
}

.lead {
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.7;
}

/* Card Styles - Enterprise Design */
.card,
.slider.cards > .slider-wrap > .cards > .card {
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--white);
    display: flex;
    flex-direction: column;
    width: 100%;
    box-shadow: var(--card-shadow);
    position: relative;
    min-width: 0;
    word-wrap: break-word;
    background-clip: border-box;
    transition: var(--transition);
}

    .card:hover {
        box-shadow: var(--card-shadow-hover);
        transform: translateY(-2px);
    }

.custom-card {
    background: var(--white);
    box-shadow: var(--card-shadow);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    margin-bottom: 2rem;
    transition: var(--transition);
    overflow: hidden;
}

    .custom-card:hover {
        box-shadow: var(--card-shadow-hover);
    }

.card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border-bottom: none;
    padding: 2rem 2.5rem;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0 !important;
}

    .card-header h2 {
        color: var(--white);
        margin: 0;
        font-size: 1.75rem;
        font-weight: 700;
    }

.card-body {
    padding: 2.5rem;
    font-weight: 500;
}

.slider.cards > .slider-wrap > .cards > .card {
    height: 258px;
    width: 275px;
    min-width: 275px;
    max-width: 275px;
    margin-right: 11px;
    box-shadow: var(--card-shadow);
    float: left;
}

/* Sidebar Styles */
.sidebar {
    background: linear-gradient(180deg, var(--white) 0%, #f8f9fa 100%);
    min-height: calc(100vh - 76px);
    border-right: 1px solid var(--border-color);
    padding: 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.main-content {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: calc(100vh - 76px);
    padding: 0;
}

/* Progress Steps */
.progress-steps {
    list-style: none;
    padding: 1.5rem 1rem;
    margin: 0;
}

.step {
    display: flex;
    align-items: center;
    padding: 1.25rem 1.5rem;
    margin-bottom: 0.75rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    border-left: 6px solid transparent;
    background: transparent;
    position: relative;
    font-weight: 600;
}

    .step::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 6px;
        background: transparent;
        border-radius: 0;
        transition: var(--transition);
    }

    .step:hover {
        background: linear-gradient(135deg, rgba(11, 45, 113, 0.08) 0%, rgba(11, 45, 113, 0.04) 100%);
        transform: translateX(6px);
        font-weight: 700;
    }

    .step.active {
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
        color: var(--white);
        box-shadow: 0 2px 4px rgba(11, 45, 113, 0.15);
        font-weight: 700;
    }

        .step.active::before {
            background: var(--white);
        }

    .step.completed {
        background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
        color: var(--white);
        box-shadow: 0 2px 4px rgba(0, 102, 178, 0.15);
        font-weight: 700;
    }

        .step.completed::before {
            background: var(--white);
        }

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.2);
    margin-right: 1.25rem;
    font-size: 1rem;
    font-weight: 700;
    border: 3px solid rgba(255, 255, 255, 0.4);
    transition: var(--transition);
}

.step.active .step-number,
.step.completed .step-number {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.step-title {
    font-size: 1rem;
    font-weight: inherit;
    letter-spacing: 0.02em;
}

/* Form Steps */
.form-step {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

    .form-step.active {
        display: block;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Cards */
.section-card {
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

    .section-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 6px;
        background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    }

    .section-card:hover {
        box-shadow: var(--card-shadow-hover);
        transform: translateY(-2px);
    }

.section-title {
    color: var(--primary-color);
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 3px solid var(--medium-gray);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    letter-spacing: -0.02em;
}

    .section-title i {
        margin-right: 1rem;
        color: var(--primary-color);
        font-size: 1.5rem;
    }

/* Form Styles */
.required::after {
    content: " *";
    color: var(--danger-color);
    font-weight: 700;
}

.form-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    letter-spacing: 0.01em;
}

.form-control,
.form-select {
    border: 3px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1rem 1.25rem;
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition);
    background-color: var(--white);
    line-height: 1.5;
    color: #1a252f;
}

    .form-control:focus,
    .form-select:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(11, 45, 113, 0.1);
        outline: none;
        background-color: #fafbfc;
    }

    .form-control:hover:not(:focus),
    .form-select:hover:not(:focus) {
        border-color: var(--secondary-color);
    }

    .form-control.is-invalid,
    .form-select.is-invalid {
        border-color: var(--danger-color);
        background-color: #fdf2f2;
    }

    .form-control.is-valid,
    .form-select.is-valid {
        border-color: var(--secondary-color);
        background-color: #f0f8ff;
    }

.category-type-checkbox-group {
    border: 3px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--white);
    padding: 0.5rem 0.25rem;
}

    .category-type-checkbox-group.is-invalid {
        border-color: var(--danger-color);
        background-color: #fdf2f2;
    }

.category-type-option {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.55rem 1rem;
    margin: 0;
    font-weight: 500;
    color: #1a252f;
    cursor: pointer;
    border-radius: 6px;
    transition: background-color 0.15s ease;
    font-size: 0.97rem;
    line-height: 1.45;
}

    .category-type-option:hover {
        background-color: rgba(0, 102, 178, 0.07);
    }

    .category-type-option input[type="checkbox"] {
        margin-top: 0.18rem;
        flex-shrink: 0;
        width: 1.1rem;
        height: 1.1rem;
        accent-color: #0066b2;
        cursor: pointer;
    }

    .category-type-option:has(input:checked) {
        background-color: rgba(0, 102, 178, 0.12);
        color: #0066b2;
        font-weight: 600;
    }

.form-text {
    display: none !important;
}

.invalid-feedback {
    color: var(--danger-color);
    font-size: 0.875rem;
    font-weight: 600;
}

.valid-feedback {
    color: var(--secondary-color);
    font-size: 0.875rem;
    font-weight: 600;
}

/* Checkbox Styles - Bigger and Better Aligned */
.form-check-input {
    width: 1.5rem;
    height: 1.5rem;
    margin-top: 0.15rem;
    border: 2px solid var(--border-color);
    cursor: pointer;
}

    .form-check-input:checked {
        background-color: var(--primary-color);
        border-color: var(--primary-color);
    }

.form-check-label {
    font-weight: 400 !important;
    margin-left: 0.5rem;
    cursor: pointer;
    line-height: 1.5rem;
}

.form-check {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

/* Agreement Styles */
.agreement-section {
    border: 1px solid #dee2e6;
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
}

.agreement-text {
    font-size: 0.9rem;
    line-height: 1.6;
}

    .agreement-text h6 {
        color: var(--primary-color);
        margin-top: 15px;
        margin-bottom: 8px;
    }

    .agreement-text ol,
    .agreement-text ul {
        margin-bottom: 15px;
    }

    .agreement-text li {
        margin-bottom: 8px;
    }

/* Instruction Items */
.instruction-item {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

    .instruction-item h6 {
        color: var(--primary-color);
        margin-bottom: 10px;
    }

/* Contact Info */
.contact-info {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: var(--border-radius);
    border: 1px solid #dee2e6;
}

    .contact-info h6 {
        margin-bottom: 8px;
    }

    .contact-info p {
        margin-bottom: 5px;
    }

/* Buttons */
.btn {
    border-radius: var(--border-radius);
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    border: 3px solid transparent;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.02em;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
}

    .btn::before {
        content: "";
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s;
    }

    .btn:hover::before {
        left: 100%;
    }

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 1px 3px rgba(11, 45, 113, 0.15);
}

    .btn-primary:hover {
        background: linear-gradient(135deg, var(--primary-dark) 0%, #051229 100%);
        transform: translateY(-2px);
        box-shadow: 0 2px 6px rgba(11, 45, 113, 0.2);
        border-color: var(--primary-dark);
        color: var(--white);
    }

.btn-success {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
    color: var(--white);
    border-color: var(--secondary-color);
    box-shadow: 0 1px 3px rgba(0, 102, 178, 0.15);
}

    .btn-success:hover {
        background: linear-gradient(135deg, var(--secondary-dark) 0%, #003d66 100%);
        transform: translateY(-2px);
        box-shadow: 0 2px 6px rgba(0, 102, 178, 0.2);
        color: var(--white);
    }

.btn-outline-secondary {
    background: transparent;
    color: var(--dark-gray);
    border-color: var(--border-color);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    font-weight: 600;
}

    .btn-outline-secondary:hover {
        background: var(--dark-gray);
        color: var(--white);
        transform: translateY(-2px);
        box-shadow: 0 2px 4px rgba(73, 80, 87, 0.15);
    }

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color) 0%, #c82333 100%);
    color: var(--white);
    border-color: var(--danger-color);
    box-shadow: 0 1px 3px rgba(220, 53, 69, 0.15);
}

    .btn-danger:hover {
        background: linear-gradient(135deg, #c82333 0%, #a71e2a 100%);
        transform: translateY(-2px);
        box-shadow: 0 2px 6px rgba(220, 53, 69, 0.2);
        color: var(--white);
    }

.btn-lg {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    border-radius: var(--border-radius-lg);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Alerts */
.alert {
    border-radius: var(--border-radius-lg);
    border: none;
    box-shadow: var(--card-shadow);
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.6;
}

.alert-heading {
    margin-bottom: 1rem;
    font-weight: 700;
    font-size: 1.125rem;
}

.alert-info {
    background: linear-gradient(135deg, #e7f3ff 0%, #cce7ff 100%);
    color: #0c5460;
    border-left: 6px solid var(--secondary-color);
}

.alert-warning {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    color: #856404;
    border-left: 6px solid var(--warning-color);
}

.alert-success {
    background: linear-gradient(135deg, #e7f3ff 0%, #cce7ff 100%);
    color: #0c5460;
    border-left: 6px solid var(--secondary-color);
}

.alert-danger {
    background: linear-gradient(135deg, #ffeaea 0%, #ffcdd2 100%);
    color: #721c24;
    border-left: 6px solid var(--danger-color);
}

/* Accordion */
.accordion-item {
    border: 1px solid #dee2e6;
    border-radius: var(--border-radius);
    margin-bottom: 8px;
}

.accordion-button {
    background-color: #f8f9fa;
    border: none;
    font-weight: 500;
}

    .accordion-button:not(.collapsed) {
        background-color: var(--primary-color);
        color: white;
    }

    .accordion-button:focus {
        box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
        border-color: var(--primary-color);
    }

/* File Upload */
.form-control[type="file"] {
    padding: 8px 12px;
}

    .form-control[type="file"]::-webkit-file-upload-button {
        background-color: var(--primary-color);
        color: white;
        border: none;
        padding: 6px 12px;
        border-radius: 4px;
        margin-right: 12px;
        cursor: pointer;
    }

        .form-control[type="file"]::-webkit-file-upload-button:hover {
            background-color: #0056b3;
        }

/* Responsive Design */
@media (max-width: 768px) {

    /* Navigation bar mobile fixes */
    .navbar .navbar-brand img {
        width: 50px !important;
        height: 50px !important;
    }

    .navbar .navbar-brand span:first-of-type {
        font-size: 1rem !important;
    }

    .navbar .navbar-brand span:last-of-type {
        font-size: 0.65rem !important;
    }

    .navbar {
        padding: 0.5rem 1rem !important;
    }

    .navbar-toggler {
        padding: 0.25rem 0.5rem !important;
        font-size: 1rem !important;
    }

    .sidebar {
        position: fixed;
        top: 56px;
        left: -100%;
        width: 250px;
        height: calc(100vh - 56px);
        z-index: 1000;
        transition: left 0.3s ease;
    }

        .sidebar.show {
            left: 0;
        }

    .main-content {
        margin-left: 0;
        padding: 0 !important;
    }

    .section-card {
        padding: 16px;
        margin-bottom: 16px;
    }

    .container-fluid {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

        .container-fluid.py-4 {
            padding-top: 1rem !important;
            padding-bottom: 1rem !important;
        }

    .step {
        padding: 8px 12px;
        margin-bottom: 4px;
    }

    .step-title {
        font-size: 12px;
    }

    .step-number {
        width: 20px;
        height: 20px;
        font-size: 10px;
        margin-right: 8px;
    }

    /* Remove extra spacing on mobile */
    .row {
        margin-left: 0;
        margin-right: 0;
    }

    .col-md-6,
    .col-md-12,
    .col-lg-10,
    .col-lg-8 {
        padding-left: 8px;
        padding-right: 8px;
    }

    h1 {
        font-size: 1.75rem !important;
    }

    h2 {
        font-size: 1.5rem;
    }

    h4 {
        font-size: 1.25rem;
    }

    /* Fix agreement text overflow on mobile */
    .agreement-text {
        max-height: none !important;
        font-size: 0.85rem;
    }

        .agreement-text p,
        .agreement-text li {
            word-break: break-word;
            overflow-wrap: break-word;
        }

    .card-header h2 {
        font-size: 1.25rem;
    }
}

@media (max-width: 576px) {
    .card-body {
        padding: 12px !important;
    }

    .section-card {
        padding: 10px !important;
    }

    .btn-lg {
        padding: 10px 16px !important;
        font-size: 0.9rem !important;
    }

    .btn {
        padding: 0.75rem 1.25rem !important;
        font-size: 0.85rem !important;
    }

    .agreement-text {
        font-size: 0.8rem;
        max-height: none !important;
    }

    .instruction-item {
        padding: 10px !important;
        margin-bottom: 12px !important;
    }

    /* Additional mobile optimizations */
    .custom-card {
        margin-bottom: 1rem !important;
    }

    .card-header {
        padding: 1rem 1.25rem !important;
    }

    .form-label {
        font-size: 0.9rem;
    }

    .form-control,
    .form-select {
        padding: 0.75rem !important;
        font-size: 0.9rem !important;
    }

    /* Fix accordion on mobile */
    .accordion-button {
        padding: 0.75rem 1rem !important;
        font-size: 0.85rem !important;
    }

    .accordion-body {
        padding: 0.75rem !important;
    }
}

/* Print Styles */
@media print {

    .navbar,
    .sidebar,
    .btn {
        display: none !important;
    }

    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
    }

    .form-step {
        display: none !important;
    }

        .form-step.active {
            display: block !important;
        }

    .card {
        box-shadow: none !important;
        border: 1px solid #000 !important;
    }

    .text-primary {
        color: #000 !important;
    }

    .bg-primary {
        background-color: #000 !important;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #a8a8a8;
    }

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Validation States */
.was-validated .form-control:valid,
.was-validated .form-select:valid {
    border-color: var(--success-color);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23198754' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 8l3 3l6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.was-validated .form-control:invalid,
.was-validated .form-select:invalid {
    border-color: var(--danger-color);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23dc3545' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 2l12 12M14 2L2 14'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --light-gray: #2d3748;
        --card-shadow: 2px 2px 0 0 #4a5568;
    }

    body {
        background-color: var(--light-gray);
        color: #e2e8f0;
    }

    .card,
    .custom-card,
    .section-card {
        background-color: #1a202c;
        color: #e2e8f0;
        border-color: #4a5568;
    }

    .sidebar {
        background-color: #2d3748;
        border-color: #4a5568;
    }

    .form-control,
    .form-select {
        background-color: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }

        .form-control:focus,
        .form-select:focus {
            background-color: #2d3748;
            border-color: var(--primary-color);
            color: #e2e8f0;
        }
}

/* Additional Enterprise Styling */
.navbar-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.form-step {
    animation: slideInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading states */
.btn.loading {
    position: relative;
    color: transparent;
}

    .btn.loading::after {
        content: "";
        position: absolute;
        width: 16px;
        height: 16px;
        top: 50%;
        left: 50%;
        margin: -8px 0 0 -8px;
        border: 2px solid transparent;
        border-top: 2px solid currentColor;
        border-radius: 50%;
        animation: spin 1s linear infinite;
        color: inherit;
    }

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Professional spacing */
.container-fluid.py-4 {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
}

/* Enhanced focus states */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Improved accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Professional table styling (if needed) */
.table {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

    .table th {
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
        color: var(--white);
        font-weight: 600;
        border: none;
        padding: 1rem;
    }

    .table td {
        padding: 0.875rem 1rem;
        border-color: var(--border-color);
        vertical-align: middle;
    }

/* Enhanced file upload styling */
.form-control[type="file"] {
    padding: 0.75rem;
    border: 2px dashed var(--border-color);
    background: #f8f9fa;
    transition: var(--transition);
}

    .form-control[type="file"]:hover {
        border-color: var(--primary-color);
        background: #f0f8ff;
    }

    .form-control[type="file"]:focus {
        border-color: var(--primary-color);
        border-style: solid;
        background: var(--white);
    }

/* Progress indicator improvements */
.progress {
    background-color: rgba(11, 45, 113, 0.1);
    border-radius: 0;
    overflow: hidden;
    height: 6px;
}

.progress-bar {
    transition: width 0.6s ease-in-out;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

/* Status badges */
.badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius);
}

.badge-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.badge-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #1e7e34 100%);
    color: var(--white);
}

/* Enterprise footer (if needed) */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: var(--white);
    padding: 2rem 0;
    margin-top: 3rem;
}

    .footer a {
        color: rgba(255, 255, 255, 0.8);
        text-decoration: none;
        transition: var(--transition);
    }

        .footer a:hover {
            color: var(--white);
            text-decoration: underline;
        }
