﻿* {
    box-sizing: border-box;
}

body {
    background-color: #f5f5f7;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.orders-container {
    background: white;
    border-radius: 0;
    padding: 24px;
    margin: 0;
    max-width: 100%;
    box-shadow: none;
}

.orders-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

    .orders-header h2 {
        font-size: 28px;
        font-weight: 600;
        margin: 0;
        color: #1d1d1f;
    }

.header-controls {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.search-box {
    position: relative;
    min-width: 250px;
}

    .search-box input {
        padding: 10px 16px 10px 40px;
        border: 1px solid #d2d2d7;
        border-radius: 8px;
        font-size: 14px;
        width: 100%;
    }

        .search-box input:focus {
            outline: none;
            border-color: #0071e3;
            box-shadow: 0 0 0 3px rgba(0,113,227,0.1);
        }

    .search-box i {
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
        color: #86868b;
    }

.filter-select {
    padding: 10px 36px 10px 16px;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2386868b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    min-width: 150px;
}

.orders-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

    .orders-table thead {
        background-color: #f9f9fb;
    }

    .orders-table th {
        padding: 14px 16px;
        text-align: left;
        font-size: 12px;
        font-weight: 600;
        color: #86868b;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        border-bottom: 1px solid #e5e5ea;
    }

    .orders-table td {
        padding: 14px 14px;
        border-bottom: 1px solid #e5e5ea;
        font-size: 14px;
        color: #1d1d1f;
        vertical-align: middle;
    }

    .orders-table tbody tr {
        transition: background-color 0.2s;
    }

        .orders-table tbody tr:hover {
            background-color: #fafafa;
        }

.order-id {
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 4px;
}

.order-sub {
    font-size: 12px;
    color: #86868b;
}

.customer-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.customer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.customer-details {
    min-width: 0;
}

.customer-name {
    font-weight: 500;
    color: #1d1d1f;
    margin-bottom: 2px;
}

.customer-email {
    font-size: 13px;
    color: #86868b;
}

.item-description {
    font-weight: 500;
    margin-bottom: 2px;
}

.item-details {
    font-size: 13px;
    color: #86868b;
}

.status-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.status-pending {
    background-color: #fff3e0;
    color: #e65100;
}

.status-processing {
    background-color: #e0f2f1;
    color: #00695c;
}

.status-delivered {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.status-shipped {
    background-color: #e3f2fd;
    color: #1565c0;
}

.action-btn {
    background: white;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

    .action-btn:hover {
        background-color: #f5f5f7;
        border-color: #b8b8bb;
    }

.dropdown-menu {
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    padding: 8px;
    min-width: 180px;
}

.dropdown-item {
    padding: 10px 5px;
    border-radius: 6px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .dropdown-item:hover {
        background-color: #f5f5f7;
    }

    .dropdown-item i {
        width: 16px;
        font-size: 14px;

    }

    .dropdown-item.text-danger:hover {
        background-color: #ffebee;
    }


.button-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-secondary,
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-secondary {
    background-color: white;
    color: #4b5563;
    border: 1px solid #d1d5db;
}

    .btn-secondary:hover {
        background-color: #f3f4f6;
        border-color: #9ca3af;
    }

    .btn-secondary:active {
        transform: scale(0.98);
    }

.btn-primary {
    background-color: #6366f1;
    color: white;
    border: 1px solid ##6366f1;
}

    .btn-primary:hover {
        background-color: #6366f1;
        border-color: #6366f1;
    }

    .btn-primary:active {
        transform: scale(0.98);
    }

    .btn-secondary i,
    .btn-primary i {
        font-size: 14px;
    }



@media (max-width: 1200px) {
    .orders-table {
        font-size: 13px;
    }

        .orders-table td {
            padding: 11px 12px;
        }
}

@media (max-width: 992px) {
    .orders-container {
        padding: 16px;
        margin: 0;
    }

    .table-responsive {
        border-radius: 8px;
        overflow-x: auto;
    }

    .orders-table {
        min-width: 900px;
    }
}

@media (max-width: 768px) {
    .orders-header {
        flex-direction: column;
        align-items: stretch;
    }

    .header-controls {
        width: 100%;
        flex-direction: column;
    }

    .search-box,
    .filter-select {
        width: 100%;
    }

    .button-group {
        width: 100%;
        flex-direction: column;
    }

    .btn-secondary,
    .btn-primary {
        width: 100%;
        justify-content: center;
    }
}

.modal-dialog-top-center {
    position: absolute;
    top: 5%;  controls how far from top; adjust to taste 
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
}

.modal-content {
    border-radius: 12px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}


.btn-primary {
    background-color: #6366f1;
    border-color: #6366f1;
}

    .btn-primary:hover {
        background-color: #6366f1;
        border-color: #6366f1;
    }

    .btn-primary:hover {
        background-color: #5558e3;
    }

.field-validation-error,
.text-danger {
    color: red;
    font-size: 0.875rem;
    margin-top: 4px;
}

 .floating-alert {
            position: fixed;
            top: 20px;
            left: 50%;
            transform: translateX(-50%);
            padding: 8px 16px;
            border-radius: 5px;
            font-size: 14px;
            z-index: 1055;
            display: none;
            min-width: 220px;
            text-align: center;
            box-shadow: 0 2px 6px rgba(0,0,0,0.2);
            background-color: #fff; 
            color: #000; 
            line-height: 1.4;
        }

            .floating-alert i {
                margin-right: 8px;
                font-size: 16px;
                vertical-align: middle;
            }

            .floating-alert.success i {
                color: #28a745;
            }

            .floating-alert.error i {
                color: #dc3545;
            }

            .floating-alert.warning i {
                color: #ffc107;
            } 

 .floating-alert {
            position: fixed;
            top: 20px;
            left: 50%;
            transform: translateX(-50%);
            padding: 14px 20px;
            border-radius: 8px;
            font-size: 14px;
            z-index: 1060;
            display: none;
            min-width: 300px;
            text-align: center;
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
            background-color: #fff;
            color: #000;
            animation: slideDown 0.3s ease;
        }

        @keyframes slideDown {
            from

        {
            transform: translateX(-50%) translateY(-20px);
            opacity: 0;
        }

        to {
            transform: translateX(-50%) translateY(0);
            opacity: 1;
        }

        }

        .floating-alert.show {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }

        .floating-alert i {
            font-size: 18px;
        }

        .floating-alert.success i {
            color: #28a745;
        }

        .floating-alert.error i {
            color: #dc3545;
        }

        .floating-alert.warning i {
            color: #ffc107;
        } 

.floating-alert {
    position: fixed;
    top: 20px;
    left: 50%;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 1060;
    display: none;
    min-width: 300px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    background-color: #fff;
    color: #000;
    opacity: 0;
}

@keyframes slideDown {
    from {
        transform: translate(-50%, -20px);
        opacity: 0;
    }

    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

.floating-alert.show {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    animation: slideDown 0.3s ease forwards;
}

.floating-alert i {
    font-size: 18px;
}

.floating-alert.success i {
    color: #28a745;
}

.floating-alert.error i {
    color: #dc3545;
}

.floating-alert.warning i {
    color: #ffc107;
}

.file-size-note {
    font-size: 12px;
    color: #6c757d;
    margin-top: 8px;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1050;
}


.modal-overlay-registration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    overflow-y: auto;  
    padding: 20px; 
}

    .modal-overlay-registration.show {
        display: flex;
        align-items: flex-start;
        justify-content: center;
        padding-top: 50px;  Adjust spacing from top 
    }

.confirm-modal {
    background: #fff;
/*     padding: 25px;*/ 
    border-radius: 12px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    animation: popIn 0.25s ease;
}

.confirm-modal-content {
    padding: 30px;
    text-align: center;
}

.confirm-icon {
    width: 60px;
    height: 60px;
    background: #fee2e2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

    .confirm-icon svg {
        width: 30px;
        height: 30px;
        color: var(--danger);
    }

.confirm-modal h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.confirm-modal p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 25px;
}

.confirm-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

#deleteModal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

@keyframes popIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.page-container {
    max-width: 1200px;
    margin: 0 auto;
}

 Registration Link Modal 
.registration-modal {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: modalSlideDown 0.3s ease-out;
}

@keyframes modalSlideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e9ecef;
}

    .modal-header h2 {
        font-size: 18px;
        font-weight: 600;
        color: #1a1a1a;
    }

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6c757d;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s;
}

    .close-btn:hover {
        background: #f8f9fa;
    }

.modal-body {
    padding: 25px;
}

.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        font-size: 14px;
        font-weight: 500;
        color: #1a1a1a;
    }

    .form-group input {
        width: 100%;
        padding: 12px 15px;
        border: 1px solid #e9ecef;
        border-radius: 8px;
        font-size: 14px;
        transition: all 0.2s;
    }

        .form-group input:focus {
            outline: none;
            border-color: #6366f1;
            box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
        }

.info-box {
    background: #e0f2fe;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

    .info-box svg {
        flex-shrink: 0;
        margin-top: 2px;
    }

    .info-box p {
        font-size: 13px;
        color: #0c4a6e;
        line-height: 1.5;
    }

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px 25px;
    border-top: 1px solid #e9ecef;
}

.btn-secondary {
    background: #f8f9fa;
    color: #6c757d;
}

    .btn-secondary:hover {
        background: #e9ecef;
    }

.btn-send {
    background: #6366f1;
    color: white;
    position: relative;
}

    .btn-send:hover:not(:disabled) {
        background: #5558e3;
    }

    .btn-send:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

    .btn-send.loading::after {
        content: '';
        width: 16px;
        height: 16px;
        border: 2px solid white;
        border-top-color: transparent;
        border-radius: 50%;
        animation: spin 0.6s linear infinite;
        margin-left: 8px;
    }

@keyframes spin {
    to {
        transform: rotate( 60deg);
    }
}

 Success/Error Messages 
.message {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
    display: none;
    align-items: center;
    gap: 10px;
}

    .message.show {
        display: flex;
    }

.message-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.message-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.error-text {
    color: #dc2626;
    font-size: 13px;
    margin-top: 5px;
    display: none;
}

    .error-text.show {
        display: block;
    }

 Modal overlay 
#registrationModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 50px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

     Show overlay 
    #registrationModal.show {
        opacity: 1;
        pointer-events: auto;
    }

 Modal content 
.registration-modal {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(-50px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

 Slide in 
#registrationModal.show .registration-modal {
    transform: translateY(0);
    opacity: 1;
}

 Slide out 
#registrationModal.hide .registration-modal {
    transform: translateY(-50px);
    opacity: 0;
}


/* ===== Import Modal =====*/ 
.import-modal {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(-50px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    max-height: 90vh;  Limit height 
    overflow-y: auto;  Allow internal scrolling 
}

 Slide Animations 
#importModal.show .import-modal {
    transform: translateY(0);
    opacity: 1;
}

#importModal.hide .import-modal {
    transform: translateY(-50px);
    opacity: 0;
}

/* Modal Overlay (Scrollable on mobile)*/ 
.modal-overlay-registration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    overflow-y: auto;  ✅ allow scrolling on mobile 
    padding: 20px;
}

    .modal-overlay-registration.show {
        display: flex;
    }

/* Keyframes*/ 
@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

 
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e9ecef;
}

    .modal-header h2 {
        font-size: 20px;
        font-weight: 600;
        color: #1a1a1a;
        margin: 0;
    }
 
.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6c757d;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background 0.2s;
}

    .close-btn:hover {
        background: #f8f9fa;
    }

 Body .modal-body {
    padding: 25px;
}


.upload-section {
    margin-bottom: 20px;
}

    .upload-section label {
        display: block;
        margin-bottom: 10px;
        font-size: 14px;
        font-weight: 500;
        color: #1a1a1a;
    }


.file-upload-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
}


.file-input-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #f8f9fa;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 500;
    color: #4b5563;
    white-space: nowrap;
    flex-shrink: 0;
}

    .file-input-label:hover {
        background: #e9ecef;
        border-color: #9ca3af;
    }

    .file-input-label i {
        font-size: 14px;
    }


#importFileInput {
    display: none;
}


.file-name-display {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    color: #6c757d;
    background: #fafafa;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden; 
    text-overflow: ellipsis; 
}


.info-box {
    background: #e0f2fe;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 20px;
}

.info-box-icon {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.info-box i {
    color: #0284c7;
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.info-box-content {
    flex: 1;
}

.info-box-title {
    font-size: 13px;
    font-weight: 600;
    color: #0c4a6e;
    margin-bottom: 4px;
}

.info-box p {
    font-size: 12px;
    color: #0c4a6e;
    margin: 0;
    line-height: 1.5;
}

.info-box-example {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #075985;
    margin-top: 6px;
}


.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 25px;
    border-top: 1px solid #e9ecef;
}


 .btn-cancel {
    padding: 10px 24px;
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

    .btn-cancel:hover {
        background: #e9ecef;
        border-color: #9ca3af;
    }

.btn-import {
    padding: 10px 24px;
    background: #6366f1;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

    .btn-import:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

    .btn-import .spinner {
        display: none;
        width: 16px;
        height: 16px;
        border: 2px solid white;
        border-top-color: transparent;
        border-radius: 50%;
        animation: spin 0.6s linear infinite;
    }

    .btn-import.loading .spinner {
        display: inline-block;
    }

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 480px) {
    .import-modal, .registration-modal {
        width: 100%;
        border-radius: 10px;
        max-height: 90vh;
    }

    .modal-header,
    .modal-footer,
    .modal-body {
        padding: 16px;
    }

        .modal-header h2 {
            font-size: 18px;
        }

    .btn-cancel,
    .btn-import,
    .btn-primary,
    .btn-secondary {
        font-size: 13px;
        padding: 8px 16px;
    }

    .file-name-display {
        font-size: 13px;
    }

    .file-upload-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .file-input-label {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 360px) {
    .modal-header h2 {
        font-size: 16px;
    }

    .btn-cancel,
    .btn-import {
        font-size: 12px;
        padding: 7px 14px;
    }

    .file-name-display {
        font-size: 12px;
    }
}


/* repite css */
/* Modal Overlay */
.modal-overlay-registration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: flex-start;
    justify-content: center;
    z-index: 1050;
    overflow-y: auto;
    padding: 20px;
}

    .modal-overlay-registration.show {
        display: flex;
        padding-top: 50px;
    }

/* Import Modal */
.import-modal {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(-50px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

#importModal.show .import-modal {
    transform: translateY(0);
    opacity: 1;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e9ecef;
}

    .modal-header h2 {
        font-size: 20px;
        font-weight: 600;
        color: #1a1a1a;
        margin: 0;
    }

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6c757d;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background 0.2s;
}

    .close-btn:hover {
        background: #f8f9fa;
    }

.modal-body {
    padding: 25px;
}

.upload-section {
    margin-bottom: 20px;
}

    .upload-section label {
        display: block;
        margin-bottom: 10px;
        font-size: 14px;
        font-weight: 500;
        color: #1a1a1a;
    }

.file-upload-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.file-input-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #f8f9fa;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 500;
    color: #4b5563;
    white-space: nowrap;
}

    .file-input-label:hover {
        background: #e9ecef;
        border-color: #9ca3af;
    }

#importFileInput {
    display: none;
}

.file-name-display {
    flex: 1;
    min-width: 150px;
    padding: 10px 15px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    color: #6c757d;
    background: #fafafa;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-size-note {
    font-size: 12px;
    color: #6c757d;
    margin-top: 8px;
}

.info-box {
    background: #e0f2fe;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 20px;
}

.info-box-icon {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.info-box i {
    color: #0284c7;
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.info-box-content {
    flex: 1;
}

.info-box-title {
    font-size: 13px;
    font-weight: 600;
    color: #0c4a6e;
    margin-bottom: 4px;
}

.info-box p {
    font-size: 12px;
    color: #0c4a6e;
    margin: 0;
    line-height: 1.5;
}

.info-box-example {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #075985;
    margin-top: 6px;
    word-break: break-all;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 25px;
    border-top: 1px solid #e9ecef;
}

.btn-cancel {
    padding: 10px 24px;
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

    .btn-cancel:hover {
        background: #e9ecef;
        border-color: #9ca3af;
    }

.btn-import {
    padding: 10px 24px;
    background: #6366f1;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

    .btn-import:hover {
        background: #5558e3;
    }

    .btn-import:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

    .btn-import .spinner {
        display: none;
        width: 16px;
        height: 16px;
        border: 2px solid white;
        border-top-color: transparent;
        border-radius: 50%;
        animation: spin 0.6s linear infinite;
    }

    .btn-import.loading .spinner {
        display: inline-block;
    }

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Styles for 768px and below */
@media (max-width: 768px) {
    .orders-container {
        padding: 16px;
    }

    .orders-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

        .orders-header h2 {
            font-size: 24px;
            text-align: center;
        }

    .header-controls {
        width: 100%;
        flex-direction: column;
        gap: 12px;
    }

    .button-group {
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }

    .btn-secondary,
    .btn-primary {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }

    .search-box {
        width: 100%;
        min-width: auto;
    }

        .search-box input {
            width: 100%;
        }
}

/* Responsive for 475px and below */
@media (max-width: 475px) {
    .orders-container {
        padding: 12px;
    }

    .orders-header h2 {
        font-size: 22px;
    }

    .btn-secondary,
    .btn-primary {
        font-size: 13px;
        padding: 10px 16px;
    }

    .import-modal {
        max-width: 95%;
        margin: 10px;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 16px;
    }

        .modal-header h2 {
            font-size: 18px;
        }

    .file-upload-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .file-input-label {
        width: 100%;
        justify-content: center;
    }

    .file-name-display {
        width: 100%;
        min-width: auto;
    }

    .info-box-example {
        font-size: 11px;
    }

    .modal-footer {
        flex-direction: column;
        gap: 10px;
    }

    .btn-cancel,
    .btn-import {
        width: 100%;
        justify-content: center;
    }
}

/* Responsive for 425px and below */
@media (max-width: 425px) {
    .orders-header h2 {
        font-size: 20px;
    }

    .btn-secondary i,
    .btn-primary i {
        font-size: 13px;
    }

    .modal-header h2 {
        font-size: 17px;
    }

    .info-box {
        padding: 12px;
    }

    .info-box-title {
        font-size: 12px;
    }

    .info-box p {
        font-size: 11px;
    }
}

/* Responsive for 375px and below */
@media (max-width: 375px) {
    .orders-container {
        padding: 10px;
    }

    .orders-header {
        gap: 10px;
    }

        .orders-header h2 {
            font-size: 18px;
        }

    .btn-secondary,
    .btn-primary {
        font-size: 12px;
        padding: 9px 14px;
        gap: 6px;
    }

    .search-box input {
        font-size: 13px;
        padding: 9px 14px 9px 36px;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 14px;
    }

        .modal-header h2 {
            font-size: 16px;
        }

    .file-input-label {
        font-size: 13px;
        padding: 9px 16px;
    }

    .file-name-display {
        font-size: 13px;
        padding: 9px 12px;
    }

    .btn-cancel,
    .btn-import {
        font-size: 13px;
        padding: 9px 18px;
    }
}

/* Responsive for 320px */
@media (max-width: 320px) {
    .orders-container {
        padding: 8px;
    }

    .orders-header h2 {
        font-size: 16px;
    }

    .btn-secondary,
    .btn-primary {
        font-size: 11px;
        padding: 8px 12px;
        gap: 5px;
    }

        .btn-secondary i,
        .btn-primary i {
            font-size: 11px;
        }

    .search-box input {
        font-size: 12px;
        padding: 8px 12px 8px 32px;
    }

    .search-box i {
        font-size: 12px;
        left: 12px;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 12px;
    }

        .modal-header h2 {
            font-size: 15px;
        }

    .close-btn {
        width: 28px;
        height: 28px;
        font-size: 20px;
    }

    .upload-section label {
        font-size: 13px;
    }

    .file-input-label {
        font-size: 12px;
        padding: 8px 14px;
    }

    .file-name-display {
        font-size: 12px;
        padding: 8px 10px;
    }

    .file-size-note {
        font-size: 11px;
    }

    .info-box {
        padding: 10px;
    }

        .info-box i {
            font-size: 16px;
        }

    .info-box-title {
        font-size: 11px;
    }

    .info-box p {
        font-size: 10px;
    }

    .info-box-example {
        font-size: 10px;
    }

    .btn-cancel,
    .btn-import {
        font-size: 12px;
        padding: 8px 16px;
    }

    .modal-footer {
        gap: 8px;
    }
}

/* Demo table styles */
.demo-table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
}

    .demo-table thead {
        background-color: #f9f9fb;
    }

    .demo-table th {
        padding: 12px;
        text-align: left;
        font-size: 12px;
        font-weight: 600;
        color: #86868b;
        border-bottom: 1px solid #e5e5ea;
    }

    .demo-table td {
        padding: 12px;
        border-bottom: 1px solid #e5e5ea;
        font-size: 14px;
    }

@media (max-width: 768px) {
    .demo-table {
        font-size: 12px;
    }

        .demo-table th,
        .demo-table td {
            padding: 8px;
            font-size: 11px;
        }
}

/* Modal Overlay */
.modal-overlay-registration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    overflow-y: auto;
    padding: 20px;
}

    .modal-overlay-registration.show {
        display: flex;
        align-items: flex-start;
        justify-content: center;
        padding-top: 50px;
        Adjust spacing from top
    }

/* Import Modal */
.import-modal {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(-50px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

#importModal.show .import-modal {
    transform: translateY(0);
    opacity: 1;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e9ecef;
}

    .modal-header h2 {
        font-size: 20px;
        font-weight: 600;
        color: #1a1a1a;
        margin: 0;
    }

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6c757d;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background 0.2s;
}

    .close-btn:hover {
        background: #f8f9fa;
    }

.modal-body {
    padding: 25px;
}

.upload-section {
    margin-bottom: 20px;
}

    .upload-section label {
        display: block;
        margin-bottom: 10px;
        font-size: 14px;
        font-weight: 500;
        color: #1a1a1a;
    }

.file-upload-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.file-input-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #f8f9fa;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 500;
    color: #4b5563;
    white-space: nowrap;
}

    .file-input-label:hover {
        background: #e9ecef;
        border-color: #9ca3af;
    }

#importFileInput {
    display: none;
}

.file-name-display {
    flex: 1;
    min-width: 150px;
    padding: 10px 15px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    color: #6c757d;
    background: #fafafa;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-size-note {
    font-size: 12px;
    color: #6c757d;
    margin-top: 8px;
}

.info-box {
    background: #e0f2fe;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 20px;
}

.info-box-icon {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.info-box i {
    color: #0284c7;
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.info-box-content {
    flex: 1;
}

.info-box-title {
    font-size: 13px;
    font-weight: 600;
    color: #0c4a6e;
    margin-bottom: 4px;
}

.info-box p {
    font-size: 12px;
    color: #0c4a6e;
    margin: 0;
    line-height: 1.5;
}

.info-box-example {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #075985;
    margin-top: 6px;
    word-break: break-all;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 25px;
    border-top: 1px solid #e9ecef;
}

.btn-cancel {
    padding: 10px 24px;
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

    .btn-cancel:hover {
        background: #e9ecef;
        border-color: #9ca3af;
    }

.btn-import {
    padding: 10px 24px;
    background: #6366f1;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

    .btn-import:hover {
        background: #5558e3;
    }

    .btn-import:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

    .btn-import .spinner {
        display: none;
        width: 16px;
        height: 16px;
        border: 2px solid white;
        border-top-color: transparent;
        border-radius: 50%;
        animation: spin 0.6s linear infinite;
    }

    .btn-import.loading .spinner {
        display: inline-block;
    }

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Styles for 768px and below */
@media (max-width: 768px) {
    .orders-container {
        padding: 16px;
    }

    .orders-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

        .orders-header h2 {
            font-size: 24px;
            text-align: center;
        }

    .header-controls {
        width: 100%;
        flex-direction: column;
        gap: 12px;
    }

    .button-group {
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }

    .btn-secondary,
    .btn-primary {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }

    .search-box {
        width: 100%;
        min-width: auto;
    }

        .search-box input {
            width: 100%;
        }
}

/* Responsive for 475px and below */
@media (max-width: 475px) {
    .orders-container {
        padding: 12px;
    }

    .orders-header h2 {
        font-size: 22px;
    }

    .btn-secondary,
    .btn-primary {
        font-size: 13px;
        padding: 10px 16px;
    }

    .import-modal {
        max-width: 95%;
        margin: 10px;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 16px;
    }

        .modal-header h2 {
            font-size: 18px;
        }

    .file-upload-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .file-input-label {
        width: 100%;
        justify-content: center;
    }

    .file-name-display {
        width: 100%;
        min-width: auto;
    }

    .info-box-example {
        font-size: 11px;
    }

    .modal-footer {
        flex-direction: column;
        gap: 10px;
    }

    .btn-cancel,
    .btn-import {
        width: 100%;
        justify-content: center;
    }
}

/* Responsive for 425px and below */
@media (max-width: 425px) {
    .orders-header h2 {
        font-size: 20px;
    }

    .btn-secondary i,
    .btn-primary i {
        font-size: 13px;
    }

    .modal-header h2 {
        font-size: 17px;
    }

    .info-box {
        padding: 12px;
    }

    .info-box-title {
        font-size: 12px;
    }

    .info-box p {
        font-size: 11px;
    }
}

/* Responsive for 375px and below */
@media (max-width: 375px) {
    .orders-container {
        padding: 10px;
    }

    .orders-header {
        gap: 10px;
    }

        .orders-header h2 {
            font-size: 18px;
        }

    .btn-secondary,
    .btn-primary {
        font-size: 12px;
        padding: 9px 14px;
        gap: 6px;
    }

    .search-box input {
        font-size: 13px;
        padding: 9px 14px 9px 36px;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 14px;
    }

        .modal-header h2 {
            font-size: 16px;
        }

    .file-input-label {
        font-size: 13px;
        padding: 9px 16px;
    }

    .file-name-display {
        font-size: 13px;
        padding: 9px 12px;
    }

    .btn-cancel,
    .btn-import {
        font-size: 13px;
        padding: 9px 18px;
    }
}

/* Responsive for 320px */
@media (max-width: 320px) {
    .orders-container {
        padding: 8px;
    }

    .orders-header h2 {
        font-size: 16px;
    }

    .btn-secondary,
    .btn-primary {
        font-size: 11px;
        padding: 8px 12px;
        gap: 5px;
    }

        .btn-secondary i,
        .btn-primary i {
            font-size: 11px;
        }

    .search-box input {
        font-size: 12px;
        padding: 8px 12px 8px 32px;
    }

    .search-box i {
        font-size: 12px;
        left: 12px;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 12px;
    }

        .modal-header h2 {
            font-size: 15px;
        }

    .close-btn {
        width: 28px;
        height: 28px;
        font-size: 20px;
    }

    .upload-section label {
        font-size: 13px;
    }

    .file-input-label {
        font-size: 12px;
        padding: 8px 14px;
    }

    .file-name-display {
        font-size: 12px;
        padding: 8px 10px;
    }

    .file-size-note {
        font-size: 11px;
    }

    .info-box {
        padding: 10px;
    }

        .info-box i {
            font-size: 16px;
        }

    .info-box-title {
        font-size: 11px;
    }

    .info-box p {
        font-size: 10px;
    }

    .info-box-example {
        font-size: 10px;
    }

    .btn-cancel,
    .btn-import {
        font-size: 12px;
        padding: 8px 16px;
    }

    .modal-footer {
        gap: 8px;
    }
}

/* Demo table styles */
.demo-table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
}

    .demo-table thead {
        background-color: #f9f9fb;
    }

    .demo-table th {
        padding: 12px;
        text-align: left;
        font-size: 12px;
        font-weight: 600;
        color: #86868b;
        border-bottom: 1px solid #e5e5ea;
    }

    .demo-table td {
        padding: 12px;
        border-bottom: 1px solid #e5e5ea;
        font-size: 14px;
    }

@media (max-width: 768px) {
    .demo-table {
        font-size: 12px;
    }

        .demo-table th,
        .demo-table td {
            padding: 8px;
            font-size: 11px;
        }
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1050;
}


.modal-overlay-registration {
    display: none; /* stays hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 1050;
}

    .modal-overlay-registration.show {
        display: flex;
        align-items: flex-start;
        justify-content: center;
        padding-top: 50px; /* Adjust spacing from top */
    }

.confirm-modal {
    background: #fff;
    /* padding: 25px; */
    border-radius: 12px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    animation: popIn 0.25s ease;
}

.confirm-modal-content {
    padding: 30px;
    text-align: center;
}

.confirm-icon {
    width: 60px;
    height: 60px;
    background: #fee2e2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

    .confirm-icon svg {
        width: 30px;
        height: 30px;
        color: var(--danger);
    }

.confirm-modal h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.confirm-modal p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 25px;
}

.confirm-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

#deleteModal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

@@keyframes popIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.page-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Registration Link Modal */
.registration-modal {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: modalSlideDown 0.3s ease-out;
}

@@keyframes modalSlideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e9ecef;
}

    .modal-header h2 {
        font-size: 18px;
        font-weight: 600;
        color: #1a1a1a;
    }

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6c757d;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s;
}

    .close-btn:hover {
        background: #f8f9fa;
    }

.modal-body {
    padding: 25px;
}

.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        font-size: 14px;
        font-weight: 500;
        color: #1a1a1a;
    }

    .form-group input {
        width: 100%;
        padding: 12px 15px;
        border: 1px solid #e9ecef;
        border-radius: 8px;
        font-size: 14px;
        transition: all 0.2s;
    }

        .form-group input:focus {
            outline: none;
            border-color: #6366f1;
            box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
        }

.info-box {
    background: #e0f2fe;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

    .info-box svg {
        flex-shrink: 0;
        margin-top: 2px;
    }

    .info-box p {
        font-size: 13px;
        color: #0c4a6e;
        line-height: 1.5;
    }

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px 25px;
    border-top: 1px solid #e9ecef;
}

.btn-secondary {
    background: #f8f9fa;
    color: #6c757d;
}

    .btn-secondary:hover {
        background: #e9ecef;
    }

.btn-send {
    background: #6366f1;
    color: white;
    position: relative;
}

    .btn-send:hover:not(:disabled) {
        background: #5558e3;
    }

    .btn-send:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

    .btn-send.loading::after {
        content: '';
        width: 16px;
        height: 16px;
        border: 2px solid white;
        border-top-color: transparent;
        border-radius: 50%;
        animation: spin 0.6s linear infinite;
        margin-left: 8px;
    }

@@keyframes spin {
    to {
        transform: rotate( 60deg);
    }
}

/* Success/Error Messages */
.message {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
    display: none;
    align-items: center;
    gap: 10px;
}

    .message.show {
        display: flex;
    }

.message-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.message-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.error-text {
    color: #dc2626;
    font-size: 13px;
    margin-top: 5px;
    display: none;
}

    .error-text.show {
        display: block;
    }

/* Modal overlay */
#registrationModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 50px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

    /* Show overlay */
    #registrationModal.show {
        opacity: 1;
        pointer-events: auto;
    }

/* Modal content */
.registration-modal {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(-50px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Slide in */
#registrationModal.show .registration-modal {
    transform: translateY(0);
    opacity: 1;
}

/* Slide out */
#registrationModal.hide .registration-modal {
    transform: translateY(-50px);
    opacity: 0;
}


/* Import Modal */
.import-modal {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(-50px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Slide In */
#importModal.show .import-modal {
    transform: translateY(0);
    opacity: 1;
}

/* Slide Out*/
#importModal.hide .import-modal {
    transform: translateY(-50px);
    opacity: 0;
}

.modal-overlay-registration.show .import-modal {
    transform: translateY(0);
    opacity: 1;
}

@@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e9ecef;
}

    .modal-header h2 {
        font-size: 20px;
        font-weight: 600;
        color: #1a1a1a;
        margin: 0;
    }

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6c757d;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background 0.2s;
}

    .close-btn:hover {
        background: #f8f9fa;
    }

.modal-body {
    padding: 25px;
}

.upload-section {
    margin-bottom: 20px;
}

    .upload-section label {
        display: block;
        margin-bottom: 10px;
        font-size: 14px;
        font-weight: 500;
        color: #1a1a1a;
    }

.file-upload-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.file-input-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #f8f9fa;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 500;
    color: #4b5563;
}

    .file-input-label:hover {
        background: #e9ecef;
        border-color: #9ca3af;
    }

    .file-input-label i {
        font-size: 14px;
    }

#importFileInput {
    display: none;
}

.file-name-display {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    color: #6c757d;
    background: #fafafa;
    margin-bottom: 10px;
}

.info-box {
    background: #e0f2fe;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 20px;
}

.info-box-icon {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.info-box i {
    color: #0284c7;
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.info-box-content {
    flex: 1;
}

.info-box-title {
    font-size: 13px;
    font-weight: 600;
    color: #0c4a6e;
    margin-bottom: 4px;
}

.info-box p {
    font-size: 12px;
    color: #0c4a6e;
    margin: 0;
    line-height: 1.5;
}

.info-box-example {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #075985;
    margin-top: 6px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 25px;
    border-top: 1px solid #e9ecef;
}

.btn-cancel {
    padding: 10px 24px;
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

    .btn-cancel:hover {
        background: #e9ecef;
        border-color: #9ca3af;
    }

.btn-import {
    padding: 10px 24px;
    background: #6366f1;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

    /* .btn-import:hover:not(:disabled) {
            background: #5558e3;
            transform: translateY(-1px);
        } */

    .btn-import:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

    .btn-import .spinner {
        display: none;
        width: 16px;
        height: 16px;
        border: 2px solid white;
        border-top-color: transparent;
        border-radius: 50%;
        animation: spin 0.6s linear infinite;
    }

    .btn-import.loading .spinner {
        display: inline-block;
    }

@@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}