﻿
:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --accent-color: #1abc9c;
    --success-color: #27ae60;
    --warning-color: #e74c3c;
    --edit-color: #8e44ad; /* ADD THIS LINE */
    --edit-hover: #9b59b6;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --dark-gray: #6c757d;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --gradient-brand: linear-gradient(135deg, #fc466b, #3f5efb);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}


.input-error {
    border: 2px solid #dc3545 !important;
    background-color: #fff5f5;
}

.container-modern {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}



.no-container .container-modern {
    max-width: 100%;
    padding: 0;
}


.breadcrumb-modern {
    background: white;
    border-radius: var(--border-radius);
    padding: 15px 20px;
    box-shadow: var(--box-shadow);
    margin-bottom: 25px;
}

    .breadcrumb-modern .breadcrumb {
        margin: 0;
        background: transparent;
        padding: 0;
    }

    .breadcrumb-modern .breadcrumb-item a {
        color: var(--primary-color);
        text-decoration: none;
        font-weight: 500;
        transition: var(--transition);
    }

        .breadcrumb-modern .breadcrumb-item a:hover {
            color: var(--secondary-color);
        }

    .breadcrumb-modern .breadcrumb-item.active {
        color: var(--dark-gray);
        font-weight: 600;
    }

.form-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
    margin-bottom: 30px;
}

.form-header {
    border-bottom: 2px solid var(--light-gray);
    padding-bottom: 15px;
    margin-bottom: 25px;
}

    .form-header h2 {
        color: var(--secondary-color);
        font-weight: 600;
        margin: 0;
        font-size: 24px;
    }

.form-group {
    margin-bottom: 25px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.control-label {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 8px;
    width: 100%;
}

.required-field::after {
    content: " *";
    color: var(--warning-color);
}

.form-control-modern {
    border: 2px solid var(--medium-gray);
    border-radius: var(--border-radius);
    padding: 10px 15px;
    font-size: 14px;
    transition: var(--transition);
    width: 100%;
    box-sizing: border-box;
}

    .form-control-modern:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
        outline: none;
    }

.select-modern {
    border: 2px solid var(--medium-gray);
    border-radius: var(--border-radius);
    padding: 10px 15px;
    font-size: 14px;
    transition: var(--transition);
    background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23333' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E") no-repeat right 15px center;
    background-size: 12px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
}

    .select-modern:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
        outline: none;
    }

.textarea-modern {
    border: 2px solid var(--medium-gray);
    border-radius: var(--border-radius);
    padding: 12px 15px;
    font-size: 14px;
    transition: var(--transition);
    resize: vertical;
    min-height: 100px;
    width: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

    .textarea-modern:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
        outline: none;
    }

.btn-container {
    display: flex;
    justify-content: flex-start;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--medium-gray);
}

.btn-back {
    background: var(--light-gray);
    color: var(--dark-gray);
    border: 2px solid var(--medium-gray);
    border-radius: var(--border-radius);
    padding: 10px 20px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
}

    .btn-back:hover {
        background: var(--medium-gray);
        color: var(--secondary-color);
        text-decoration: none;
    }

.btn-create {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    border-radius: var(--border-radius);
    padding: 10px 25px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

    .btn-create:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    }

.alert-modern {
    border-radius: var(--border-radius);
    padding: 15px 20px;
    margin-bottom: 20px;
    border: none;
    font-weight: 500;
}

.alert-error {
    background-color: rgba(231, 76, 60, 0.1);
    color: var(--warning-color);
    border-left: 4px solid var(--warning-color);
}

.alert-success {
    background-color: rgba(39, 174, 96, 0.1);
    color: var(--success-color);
    border-left: 4px solid var(--success-color);
}

.validation-message {
    color: var(--warning-color);
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

@media (min-width: 768px) {
    .control-label {
        width: 200px;
        text-align: right;
        padding-right: 20px;
        margin-bottom: 0;
    }

    .form-control-container {
        flex: 1;
    }

    .form-control-modern, .select-modern, .textarea-modern {
        max-width: 400px;
    }
}

@media (max-width: 767px) {
    .form-card {
        padding: 20px 15px;
    }

    .btn-container {
        flex-direction: column;
    }

    .btn-back, .btn-create {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}


:root {
    --pwd-primary: #3498db;
    --pwd-secondary: #2c3e50;
    --pwd-accent: #1abc9c;
    --pwd-success: #27ae60;
    --pwd-warning: #e74c3c;
    --pwd-light: #f8f9fa;
    --pwd-medium: #e9ecef;
    --pwd-dark: #6c757d;
    --pwd-radius: 8px;
    --pwd-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --pwd-transition: all 0.3s ease;
}

.pwd-body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.pwd-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.pwd-breadcrumb-wrapper {
    background: white;
    border-radius: var(--pwd-radius);
    padding: 15px 20px;
    box-shadow: var(--pwd-shadow);
    margin-bottom: 25px;
}

    .pwd-breadcrumb-wrapper .breadcrumb {
        margin: 0;
        background: transparent;
        padding: 0;
    }

    .pwd-breadcrumb-wrapper .breadcrumb-item a {
        color: var(--pwd-primary);
        text-decoration: none;
        font-weight: 500;
        transition: var(--pwd-transition);
    }

        .pwd-breadcrumb-wrapper .breadcrumb-item a:hover {
            color: var(--pwd-secondary);
        }

    .pwd-breadcrumb-wrapper .breadcrumb-item.active {
        color: var(--pwd-dark);
        font-weight: 600;
    }

.pwd-form-panel {
    background: white;
    border-radius: var(--pwd-radius);
    box-shadow: var(--pwd-shadow);
    padding: 30px;
    margin-bottom: 30px;
}

.pwd-form-heading {
    border-bottom: 2px solid var(--pwd-light);
    padding-bottom: 15px;
    margin-bottom: 25px;
}

    .pwd-form-heading h3 {
        color: var(--pwd-secondary);
        font-weight: 600;
        margin: 0;
        font-size: 24px;
    }

.pwd-field-group {
    margin-bottom: 25px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.pwd-field-label {
    font-weight: 600;
    color: var(--pwd-secondary);
    margin-bottom: 8px;
    width: 100%;
}

.pwd-input-container {
    position: relative;
    width: 100%;
}

.pwd-input-field {
    border: 2px solid var(--pwd-medium);
    border-radius: var(--pwd-radius);
    padding: 12px 45px 12px 15px;
    font-size: 14px;
    transition: var(--pwd-transition);
    width: 100%;
    box-sizing: border-box;
}

    .pwd-input-field:focus {
        border-color: var(--pwd-primary);
        box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
        outline: none;
    }

.pwd-eye-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--pwd-dark);
    transition: var(--pwd-transition);
    z-index: 2;
}

    .pwd-eye-toggle:hover {
        color: var(--pwd-primary);
    }

.pwd-action-bar {
    display: flex;
    justify-content: flex-start;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--pwd-medium);
}

.pwd-submit-btn {
    background: linear-gradient(135deg, var(--pwd-primary), var(--pwd-accent));
    color: white;
    border: none;
    border-radius: var(--pwd-radius);
    padding: 12px 30px;
    font-weight: 600;
    transition: var(--pwd-transition);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

    .pwd-submit-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    }

.pwd-message-box {
    border-radius: var(--pwd-radius);
    padding: 15px 20px;
    margin-bottom: 20px;
    border: none;
    font-weight: 500;
}

.pwd-message-error {
    background-color: rgba(231, 76, 60, 0.1);
    color: var(--pwd-warning);
    border-left: 4px solid var(--pwd-warning);
}

.pwd-message-success {
    background-color: rgba(39, 174, 96, 0.1);
    color: var(--pwd-success);
    border-left: 4px solid var(--pwd-success);
}

.pwd-error-text {
    color: var(--pwd-warning);
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.pwd-logo-section {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--pwd-medium);
}

.pwd-logo-image {
    height: 25px;
    width: auto;
    opacity: 0.7;
    transition: var(--pwd-transition);
}

    .pwd-logo-image:hover {
        opacity: 1;
    }

@media (min-width: 768px) {
    .pwd-field-label {
        width: 200px;
        text-align: right;
        padding-right: 20px;
        margin-bottom: 0;
    }

    .pwd-input-container {
        flex: 1;
    }

    .pwd-input-field {
        max-width: 300px;
    }
}

@media (max-width: 767px) {
    .pwd-form-panel {
        padding: 20px 15px;
    }

    .pwd-action-bar {
        flex-direction: column;
    }

    .pwd-submit-btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

#password-toggle {
    cursor: pointer;
    display: none;
    position: absolute;
    right: 10px;
    top: 10px;
}


.pwd-input-container {
    position: relative;
    width: 100%;
    display: inline-block;
}

.pwd-input-field {
    border: 2px solid var(--pwd-medium);
    border-radius: var(--pwd-radius);
    padding: 12px 40px 12px 15px; /* Increased right padding for icon */
    font-size: 14px;
    transition: var(--pwd-transition);
    width: 100%;
    box-sizing: border-box;
}

.pwd-eye-toggle {
    position: absolute;
    right: 12px; /* Adjusted to be inside the border */
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--pwd-dark);
    transition: var(--pwd-transition);
    z-index: 2;
    background: white; /* Add background to blend with input */
    padding: 4px;
    border-radius: 3px;
}

    .pwd-eye-toggle:hover {
        color: var(--pwd-primary);
        background: var(--pwd-light);
    }

@media (min-width: 768px) {
    .pwd-input-field {
        max-width: 300px;
    }

    .pwd-input-container {
        max-width: 300px;
    }
}


/*USER SHOW DATA*/
:root {
    --usr-primary: #3498db;
    --usr-secondary: #2c3e50;
    --usr-accent: #1abc9c;
    --usr-success: #27ae60;
    --usr-warning: #e74c3c;
    --usr-light: #f8f9fa;
    --usr-medium: #e9ecef;
    --usr-dark: #6c757d;
    --usr-radius: 8px;
    --usr-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --usr-transition: all 0.3s ease;
}

.usr-body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.usr-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.usr-breadcrumb-wrapper {
    background: white;
    border-radius: var(--usr-radius);
    padding: 15px 20px;
    box-shadow: var(--usr-shadow);
    margin-bottom: 25px;
}

    .usr-breadcrumb-wrapper .breadcrumb {
        margin: 0;
        background: transparent;
        padding: 0;
    }

    .usr-breadcrumb-wrapper .breadcrumb-item a {
        color: var(--usr-primary);
        text-decoration: none;
        font-weight: 500;
        transition: var(--usr-transition);
    }

        .usr-breadcrumb-wrapper .breadcrumb-item a:hover {
            color: var(--usr-secondary);
        }

    .usr-breadcrumb-wrapper .breadcrumb-item.active {
        color: var(--usr-dark);
        font-weight: 600;
    }

.usr-header-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 0 10px;
}

.usr-main-title {
    color: var(--usr-secondary);
    font-weight: 600;
    margin: 0;
    font-size: 28px;
}

.usr-create-btn {
    background: linear-gradient(135deg, var(--usr-primary), var(--usr-accent));
    color: white;
    border: none;
    border-radius: var(--usr-radius);
    padding: 10px 20px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--usr-transition);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: inline-block;
}

    .usr-create-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
        color: white;
        text-decoration: none;
    }

.usr-message-box {
    border-radius: var(--usr-radius);
    padding: 15px 20px;
    margin-bottom: 20px;
    border: none;
    font-weight: 500;
}

.usr-message-error {
    background-color: rgba(231, 76, 60, 0.1);
    color: var(--usr-warning);
    border-left: 4px solid var(--usr-warning);
}

.usr-message-success {
    background-color: rgba(39, 174, 96, 0.1);
    color: var(--usr-success);
    border-left: 4px solid var(--usr-success);
}

.usr-table-container {
    background: white;
    border-radius: var(--usr-radius);
    box-shadow: var(--usr-shadow);
    padding: 20px;
    overflow: hidden;
}

/* DataTables Modern Styling - Fixed for sorting icons */
#user {
    width: 100% !important;
    border-collapse: separate;
    border-spacing: 0;
    border: none;
}

    /* ===== Improved Table Header Look ===== */
    #user thead th {
  
        background-color: #f1f4f8;
        color: #34495e;
        font-weight: 600;
        font-size: 14px;
        text-align: center;
        padding: 12px;
        border-bottom: 2px solid #dcdde1;
        position: relative;
        transition: background-color 0.3s ease, color 0.3s ease;
    }

        /* Hover effect for column headers */
        #user thead th:hover {
            background-color: #e9eef5;
            color: #2c3e50;
        }

        /* Sorting icons refinement */
        #user thead th.sorting:after,
        #user thead th.sorting_asc:after,
        #user thead th.sorting_desc:after {
            position: absolute;
            right: 10px;
            top: 50%;
            transform: translateY(-50%);
            font-size: 12px;
            opacity: 0.7;
            transition: opacity 0.2s ease;
            color: #3498db;
        }

        /* Neutral (sortable but not active) */
        /*#user thead th.sorting:after {
            content: "\2195";*/ /* ↕ */
        /*}*/

        /* Ascending */
        /*#user thead th.sorting_asc:after {
            content: "\2191";*/ /* ↑ */
            /*opacity: 1;
        }*/

        /* Descending */
        /*#user thead th.sorting_desc:after {
            content: "\2193";*/ /* ↓ */
            /*opacity: 1;
        }*/

        /* Subtle separation between headers */
        /*#user thead th + th {
            border-left: 1px solid #e2e5ea;
        }*/

/* Improve readability on mobile */
@media (max-width: 768px) {
    #user thead th {
        font-size: 13px;
        padding: 10px;
    }
}


    #user tbody td {
        padding: 12px;
        border-bottom: 1px solid var(--usr-medium);
        vertical-align: middle;
        font-size: 13px;
        text-align: center;
    }

    #user tbody tr {
        transition: var(--usr-transition);
    }

        #user tbody tr:hover {
            background-color: rgba(52, 152, 219, 0.05);
        }

        #user tbody tr:nth-child(even) {
            background-color: var(--usr-light);
        }

            #user tbody tr:nth-child(even):hover {
                background-color: rgba(52, 152, 219, 0.05);
            }

.usr-action-links {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
}

    .usr-action-links a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        border-radius: var(--usr-radius);
        transition: var(--usr-transition);
        text-decoration: none;
    }

        .usr-action-links a:hover {
            background-color: var(--usr-medium);
            transform: translateY(-1px);
        }

    .usr-action-links img {
        width: 16px;
        height: 16px;
        transition: var(--usr-transition);
    }

    .usr-action-links a:hover img {
        transform: scale(1.1);
    }

.usr-reset-btn {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--usr-radius);
    transition: var(--usr-transition);
}

    .usr-reset-btn:hover {
        background-color: var(--usr-medium);
        transform: translateY(-1px);
    }

    .usr-reset-btn img {
        width: 16px;
        height: 16px;
        transition: var(--usr-transition);
    }

    .usr-reset-btn:hover img {
        transform: scale(1.1);
    }

/* DataTables Custom Styling */
.dataTables_wrapper {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.dataTables_filter input {
    border: 2px solid var(--usr-medium);
    border-radius: var(--usr-radius);
    padding: 8px 12px;
    font-size: 14px;
    transition: var(--usr-transition);
}

    .dataTables_filter input:focus {
        border-color: var(--usr-primary);
        box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
        outline: none;
    }

.dataTables_length select {
    border: 2px solid var(--usr-medium);
    border-radius: var(--usr-radius);
    padding: 8px 12px;
    font-size: 14px;
    transition: var(--usr-transition);
}

    .dataTables_length select:focus {
        border-color: var(--usr-primary);
        box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
        outline: none;
    }

.dataTables_paginate .paginate_button {
    border: 1px solid var(--usr-medium) !important;
    border-radius: var(--usr-radius) !important;
    padding: 6px 12px !important;
    margin: 0 2px !important;
    transition: var(--usr-transition) !important;
}

    .dataTables_paginate .paginate_button:hover {
        background: var(--usr-primary) !important;
        color: white !important;
        border-color: var(--usr-primary) !important;
        
    }
/*
    .dataTables_paginate .paginate_button.current {
        background: var(--usr-primary) !important;
        color: white !important;
        border-color: var(--usr-primary) !important;
    }*/

/* Reset DataTables default background icons */
table.dataTable thead th {
    background-image: none !important;
    background-repeat: none !important;
    background-position: center right 10px !important;
    background-size: 12px !important;
    position: relative;
    border-bottom: 2px solid var(--gradient-brand);
    font-weight: 600;
    font-size: 1.2rem!important;
}



@media (max-width: 768px) {
    .usr-header-section {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .usr-create-btn {
        align-self: flex-start;
    }

    .usr-table-container {
        padding: 15px 10px;
        overflow-x: auto;
    }

    #user {
        min-width: 800px;
    }

    .usr-action-links {
        gap: 5px;
    }

        .usr-action-links a,
        .usr-reset-btn {
            width: 28px;
            height: 28px;
        }

            .usr-action-links img,
            .usr-reset-btn img {
                width: 14px;
                height: 14px;
            }


}
/*/USER SHOW data end/*/


/*===USER DETAILS===*/


.details-container {
    padding: 20px 0;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.detail-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 15px;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

    .detail-group:hover {
        background-color: var(--medium-gray);
    }

.detail-label {
    font-weight: 600;
    color: var(--secondary-color);
    width: 200px;
    padding-right: 20px;
    font-size: 14px;
}

.detail-value {
    flex: 1;
    color: var(--dark-gray);
    font-size: 14px;
}

    .detail-value .select-modern {
        background-color: white;
        border-color: var(--medium-gray);
        opacity: 0.8;
    }

@media (max-width: 767px) {
    .detail-group {
        flex-direction: column;
        align-items: flex-start;
    }

    .detail-label {
        width: 100%;
        padding-right: 0;
        margin-bottom: 8px;
    }

    .detail-value {
        width: 100%;
    }

    .btn-container {
        flex-direction: column;
    }

    .btn-create,
    .btn-back {
        width: 100%;
        text-align: center;
    }
}


.form-grid-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.form-grid-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.form-grid-item {
    margin-bottom: 0;
}

.form-grid-item-full {
    grid-column: 1 / -1;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .form-grid-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .form-grid-item-full {
        grid-column: 1;
    }
}


.form-grid-item .form-control-container,
.form-grid-item-full .form-control-container {
    flex: 1;
}

.form-grid-item .form-control-modern,
.form-grid-item .select-modern,
.form-grid-item-full .form-control-modern,
.form-grid-item-full .select-modern,
.form-grid-item-full .textarea-modern {
    max-width: 100%;
}
/*===USER DETAILS END===*/

/*===Buttons -==*/

.button-actions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #dee2e6;
}

.button-group-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
}

.btn-secondary-modern {
    background-color: #6c757d;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary-modern {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 10px 25px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary-modern:hover {
    background-color: #5a6268;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-primary-modern:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}


/* ====== GRADIENT BUTTON STYLES (GLOBAL) ====== */
/*.btn {
    border: none;
    color: #fff;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
}*/

.btn-sm {
    padding: 4px 10px;
    font-size: 13px;
}

.btn-primary {
    background: linear-gradient(45deg, #007bff, #0056d2);
}

    .btn-primary:hover {
        background: linear-gradient(45deg, #0056d2, #0041a8);
    }

.btn-success {
    background: linear-gradient(45deg, #28a745, #1f8c3b);
}

    .btn-success:hover {
        background: linear-gradient(45deg, #1f8c3b, #176d2f);
    }

.btn-danger {
    background: linear-gradient(45deg, #dc3545, #b02a37);
}

    .btn-danger:hover {
        background: linear-gradient(45deg, #b02a37, #8a1f2b);
    }

.btn-warning {
    background: #ffc107 linear-gradient(180deg,#ffca2c,#ffc107) repeat-x !important;
    color: #222;
}

    .btn-warning:hover {
        background: linear-gradient(45deg, #e0a800, #c69500);
    }

.btn-info {
    background: linear-gradient(45deg, #17a2b8, #117a8b);
}

    .btn-info:hover {
        background: linear-gradient(45deg, #117a8b, #0d5f6d);
    }

/* Optional shadow for better contrast */
.btn:hover {
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}



table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    text-align: center;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

    table.dataTable {
        margin: 0 !important;
    }

th, td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
    text-transform: capitalize;
}

.table tbody{
    font-weight:200!important;
}

.table thead,
.table th {
    text-align: center;
}



table.dataTable tfoot > tr > th, table.dataTable thead > tr > th {
    padding-left: 9px !important;
    text-align: center !important;
}


tr:nth-child(even) {
    background-color: #fdfdfd;
}

tr:hover {
    background-color: #f1f3f6;
}

caption {
    caption-side: top;
    font-size: 16px;
    font-weight: 600;
    color: #444;
    margin-bottom: 10px;
}

.table-tbody {
    font-weight: 200!important;
}


/*-==CSS SIZE ==*/

/* Enhanced SweetAlert2 Toast Sizing */
.swal2-toast {
    min-width: 420px !important;
/*    min-height: 110px !important;*/
    padding: 18px 28px !important;
    font-size: 17px !important;
    border-radius: 8px !important;
}

    .swal2-toast .swal2-title {
        font-size: 18px !important;
        margin-bottom: 0px !important;
        font-weight: 600 !important;
    }

    .swal2-toast .swal2-html-container {
        font-size: 16px !important;
        line-height: 1.6 !important;
        margin-top: 10px !important;
        padding: 0 !important;
    }

    .swal2-toast .swal2-icon {
        width: 36px !important;
        height: 36px !important;
        font-size: 20px !important;
        margin-right: 18px !important;
        border-width: 3px !important;
    }

    .swal2-toast .swal2-timer-progress-bar {
        height: 4px !important;
    }

body.swal2-toast-shown .swal2-container {
    box-sizing: border-box;
    width: 439px;
    max-width: 100%;
    background-color: rgba(0, 0, 0, 0);
    pointer-events: none;
}

/*===FONT AWESOME SELECTOR===*/

.icon-picker-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-icon-picker {
    padding: 8px 12px;
    background: #007bff;
    color: white;
    border-radius: 8px;
    border: none;
    cursor: pointer;
}

#iconPickerModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#iconPickerBox {
    background: white;
    width: 650px;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

#iconSearch {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.icon-grid {
    max-height: 350px;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}

.icon-item {
    text-align: center;
    padding: 10px;
    cursor: pointer;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

    .icon-item:hover {
        background: #007bff;
        color: white;
    }

    /*    /* Modern sidebar styles */
    /*    #left-panel {
        background: #2c3e50;
        color: white;
        width: 230px;
        height: 100vh;
        position: fixed;
        top: 0;
        left: 0;
        overflow-y: auto;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }*/


    /* Smooth slide animation */
    #left-panel nav li ul {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease, opacity 0.25s ease;
        opacity: 0;
    }

    #left-panel nav li.open > ul {
        max-height: 500px;
        opacity: 1;
    }



    /* Mobile responsive */
    @@media (max-width: 991px) {
        #left-panel {
            width: 260px;
            left: -260px;
            transition: left 0.3s ease;
            position: fixed;
            top: 0;
            z-index: 2000;
        }

            #left-panel.open {
                left: 0;
            }

        #menu-toggle {
            display: block;
            position: fixed;
            top: 15px;
            left: 15px;
            z-index: 3000;
            background: #3498db;
            color: white;
            border: none;
            padding: 10px 12px;
            border-radius: 5px;
            cursor: pointer;
            box-shadow: 0 2px 6px rgba(0,0,0,0.2);
        }
    }

    /* Desktop toggle button default hidden */
    #menu-toggle {
        display: none;
    }



    /* User info styling */
    #left-panel > div:first-child {
        padding: 1.2rem 1rem 1.5rem 1rem;
        text-align: center;
        border-bottom: 1px solid #34495e;
        margin-bottom: 1rem;
        background: #34495e;
    }

    /* Logo styling */
 /*   .sidebar-logo {
        width: 48px;
        height: 48px;
        margin: 0 auto 0.8rem auto;
        background: linear-gradient(135deg, #3498db, #2980b9);
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }*/

    .logo-icon {
        color: white;
        font-size: 1.4rem;
        font-weight: bold;
    }

    /* User name styling */
    #FullNameBKP {
        font-weight: 700;
        font-size: 1.1rem;
        color: #ecf0f1;
        display: block;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
        letter-spacing: 0.3px;
        background: linear-gradient(135deg, #3498db, #2980b9);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        padding: 0.8rem 0.5rem;
        border-radius: 6px;
        background-color: rgba(52, 152, 219, 0.1);
        border: 1px solid rgba(52, 152, 219, 0.3);
        margin-bottom: 10px;
        word-break: break-word;
    }

    /* Navigation styling */
    #left-panel nav ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    #left-panel nav li {
        margin-bottom: 0;
        position: relative;
    }

    #left-panel nav > ul > li > a {
        display: flex;
        align-items: center;
        padding: 0.85rem 1rem;
        color: #bdc3c7;
        text-decoration: none;
        border-left: 4px solid transparent;
        font-size: 1.0rem;
        font-weight: 500;
        transition: all 0.3s ease;
    }

        #left-panel nav > ul > li > a:hover {
            background: #34495e;
            color: #ecf0f1;
            border-left-color: #3498db;
        }

    #left-panel nav li.active > a {
        background: #34495e;
        color: #3498db;
        border-left-color: #3498db;
    }

    .menu-item-parent {
        flex: 1;
        margin-left: 0.5rem;
    }

    /* Icons */
    .nav-icon {
        width: 20px;
        text-align: center;
        font-size: 1rem;
        color: #95a5a6;
        transition: all 0.3s ease;
    }

    #left-panel nav li.active > a .nav-icon,
    #left-panel nav li > a:hover .nav-icon {
        color: #3498db;
    }

    /* Dropdown styling */
    #left-panel nav li ul {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        background: #1a252f;
        border-left: 3px solid #3498db;
    }

    #left-panel nav li.has-dropdown.open > ul {
        max-height: 1000px;
    }

    nav ul span.menu-item-parent {
        display: inline-block;
        margin: 0;
        padding: 0;
        font-size: 14px !important;
        font-weight: 600;
        margin-left: 10px;
    }

    #left-panel nav li ul li a {
        display: flex;
        align-items: center;
        padding: 0.7rem 1rem 0.7rem 2.5rem;
        color: #95a5a6;
        text-decoration: none;
        transition: all 0.3s ease;
        font-size: 0.9rem;
        border-bottom: 1px solid #2c3e50;
    }

    #left-panel nav li ul li:last-child a {
        border-bottom: none;
    }

    #left-panel nav li ul li a:hover {
        background: #2c3e50;
        color: #ecf0f1;
        padding-left: 2.8rem;
    }

    #left-panel nav li ul li.active a {
        color: #3498db;
        background: #2c3e50;
    }

    /* Dropdown arrow */
    .dropdown-arrow {
        margin-left: auto;
        font-size: 0.8rem;
        color: #7f8c8d;
        transition: all 0.3s ease;
    }

    #left-panel nav li.has-dropdown.open .dropdown-arrow {
        transform: rotate(180deg);
        color: #3498db;
    }

    /* Section dividers */
    .nav-divider {
        height: 1px;
        background: #34495e;
        margin: 0.5rem 1rem;
    }

    /* Badge for client-specific items */
    .client-badge {
        background: #e74c3c;
        color: white;
        font-size: 0.7rem;
        padding: 0.1rem 0.4rem;
        border-radius: 10px;
        margin-left: 0.5rem;
    }

    /* Adjust main content */
    .main-content {
        margin-left: 230px;
        min-height: 100vh;
        position: relative;
        z-index: 1; /* Lower than sidebar */
    }

   /*NEW TABLE DESIGN*/

/* Modern DataTable Container Styles - Generic */
.modern-data-table-container {
    width: 100%;
    overflow-x: auto;
}

/* Modern Table Styles - Generic */
.modern-table {
    width: 100% !important;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

    /* Modern Table Headers - Generic */
    .modern-table thead th {
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
        letter-spacing: 0.3px;
        text-transform: uppercase;
        font-size: 12px;
        font-weight: 700;
   /*     background: linear-gradient(to bottom, #f9fafb, #f3f4f6);*/
        padding: 16px 12px;
        color: #1e293b;
        border-bottom: 2px solid #e2e8f0;
        min-width: 100px;
    }

    /* Table cell styling */
    .modern-table tbody td {
        padding: 14px 12px;
        vertical-align: middle;
        font-size: 14px;
        color: #334155;
        border-bottom: 1px solid #f1f5f9;
    }

    /* Hover effect */
    .modern-table tbody tr:hover {
        background-color: #f8fafc;
        transition: all 0.2s ease;
    }

/* Action buttons styling - Generic */
.modern-btn-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    color: white;
    transition: all 0.2s ease;
}

    .modern-btn-warning:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(245, 158, 11, 0.3);
        color: white;
    }
/* Modern Edit Button Styles */
.modern-btn-edit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    /*  background: linear-gradient(135deg, var(--edit-color), #7d3c98);*/
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 6px 14px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

    .modern-btn-edit i {
        font-size: 12px;
        transition: transform 0.3s ease;
    }

    .modern-btn-edit:hover {
        background: linear-gradient(135deg, var(--edit-hover), #8e44ad);
        transform: translateY(-2px);
        box-shadow: 0 6px 14px rgba(142, 68, 173, 0.4);
        color: white;
        text-decoration: none;
    }

    .modern-btn-edit:active {
        transform: translateY(0);
    }

    /* Ripple effect */
    .modern-btn-edit::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.3);
        transform: translate(-50%, -50%);
        transition: width 0.6s, height 0.6s;
    }

    .modern-btn-edit:active::after {
        width: 200px;
        height: 200px;
    }

/* Action cell styling */
.action-cell {
    text-align: center;
    min-width: 100px;
}
/* DataTable Controls Layout - Fixed Alignment */
.dataTables_wrapper {
    margin-bottom: 20px;
}

    .dataTables_wrapper .row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 20px;
        flex-wrap: wrap;
    }

    .dataTables_wrapper .dataTables_filter {
        text-align: right;
        flex: 1;
    }

    .dataTables_wrapper .dataTables_length {
        flex: 1;
    }

    /* Modern Form Controls */
    .dataTables_wrapper .dataTables_filter input {
        margin-left: 10px;
        padding: 8px 12px;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        font-size: 14px;
        transition: all 0.2s ease;
        width: 250px;
    }

        .dataTables_wrapper .dataTables_filter input:focus {
            outline: none;
            border-color: #3b82f6;
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
        }

    .dataTables_wrapper .dataTables_length select {
        margin: 0 8px;
        padding: 8px 12px;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        font-size: 14px;
        background-color: white;
        cursor: pointer;
    }

        .dataTables_wrapper .dataTables_length select:focus {
            outline: none;
            border-color: #3b82f6;
        }

    /* Info and Pagination */
    .dataTables_wrapper .dataTables_info {
        padding-top: 10px;
        font-size: 14px;
        color: #64748b;
    }

    .dataTables_wrapper .dataTables_paginate {
        padding-top: 10px;
    }

        .dataTables_wrapper .dataTables_paginate .paginate_button {
            padding: 6px 12px;
            margin: 0 2px;
            border-radius: 6px;
            border: 1px solid #e2e8f0;
            background: white;
            color: #334155;
            font-size: 14px;
        }

            .dataTables_wrapper .dataTables_paginate .paginate_button.current {
                background: linear-gradient(135deg, #3b82f6, #2563eb);
                border-color: #3b82f6;
                color: white;
            }

            .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
                background: #f1f5f9;
                border-color: #cbd5e1;
            }

/* Responsive adjustments */
@media (max-width: 768px) {
    .dataTables_wrapper .row {
        flex-direction: column;
        align-items: stretch;
    }

    .dataTables_wrapper .dataTables_filter,
    .dataTables_wrapper .dataTables_length {
        text-align: left;
        margin-bottom: 10px;
    }

        .dataTables_wrapper .dataTables_filter input {
            width: 100%;
            margin-left: 0;
            margin-top: 8px;
        }
}

/* =========================================
   GLOBAL SCROLLBAR SYSTEM
========================================= */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.04);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: rgba(120,120,120,0.6);
    border-radius: 10px;
    transition: all 0.3s ease;
}

    ::-webkit-scrollbar-thumb:hover {
        background: rgba(80,80,80,0.9);
    }

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(120,120,120,0.6) rgba(0,0,0,0.04);
}

.table-responsive,
.dataTables_wrapper,
.usr-table-container {
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
}

/* Hide duplicate horizontal scrollbar */

.dataTables_scrollHead {
    overflow-x: hidden !important;
}

.dataTables_scrollHeadInner {
    width: 100% !important;
}

.dataTables_scrollBody {
    overflow-x: auto !important;
    overflow-y: auto !important;
}

.dataTables_scrollFoot {
    overflow-x: hidden !important;
}



/*==============//SFHCSO//============*/

/* =========================================
   CSV IMPORTER - MODERN ENHANCED STYLES
========================================= */

/* Card Container with Glass Effect */
.csv-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9) );
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

    .csv-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, #00c6ff, #0072ff, #7c3aed, #a855f7, #00c6ff );
        background-size: 200% 100%;
        animation: shimmer 3s ease infinite;
    }

/* Drop Zone - Enhanced */
.drop-zone {
    border: 2px dashed rgba(0, 198, 255, 0.3);
    border-radius: 16px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    position: relative;
    background: linear-gradient(145deg, rgba(0, 198, 255, 0.02), rgba(124, 58, 237, 0.02) );
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

    .drop-zone::after {
        content: '';
        position: absolute;
        inset: -2px;
        border-radius: 16px;
        padding: 2px;
        background: linear-gradient(135deg, #00c6ff, #7c3aed);
        mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        opacity: 0;
        transition: opacity 0.4s ease;
    }

    .drop-zone:hover {
        border-color: transparent;
        background: linear-gradient(145deg, rgba(0, 198, 255, 0.05), rgba(124, 58, 237, 0.05) );
        transform: translateY(-2px);
        box-shadow: 0 12px 40px rgba(0, 198, 255, 0.15);
    }

        .drop-zone:hover::after {
            opacity: 1;
        }

    .drop-zone.dragging {
        border-color: #00c6ff;
        background: linear-gradient(145deg, rgba(0, 198, 255, 0.1), rgba(124, 58, 237, 0.1) );
        animation: pulse 1.5s infinite;
    }

/* Upload Icon Animation */
.upload-icon-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 16px;
}

    .upload-icon-wrapper i {
        font-size: 48px;
        background: linear-gradient(135deg, #00c6ff, #7c3aed);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        position: relative;
        z-index: 2;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

.drop-zone:hover .upload-icon-wrapper i {
    transform: translateY(-8px) scale(1.1);
}

.pulse-ring {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid rgba(0, 198, 255, 0.5);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulseRing 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    z-index: 1;
}

@keyframes pulseRing {
    0% {
        width: 60px;
        height: 60px;
        opacity: 1;
    }

    100% {
        width: 120px;
        height: 120px;
        opacity: 0;
    }
}

/* Premium Upload Button */
.btn-upload-premium {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 198, 255, 0.3);
    letter-spacing: 0.3px;
}

    .btn-upload-premium::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent );
        transition: left 0.5s ease;
    }

    .btn-upload-premium:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0, 198, 255, 0.4);
        color: white;
    }

        .btn-upload-premium:hover::before {
            left: 100%;
        }

    .btn-upload-premium:active {
        transform: translateY(0);
        box-shadow: 0 2px 10px rgba(0, 198, 255, 0.2);
    }

    .btn-upload-premium:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
    }

/* Badge Premium */
.badge-premium {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(0, 198, 255, 0.1);
    border: 1px solid rgba(0, 198, 255, 0.2);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #00c6ff;
    transition: all 0.3s ease;
}

    .badge-premium:hover {
        background: rgba(0, 198, 255, 0.15);
        border-color: rgba(0, 198, 255, 0.3);
    }

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.5);
    animation: dotPulse 2s ease infinite;
}

@keyframes dotPulse {
    0%, 100% {
        box-shadow: 0 0 8px rgba(74, 222, 128, 0.5);
    }

    50% {
        box-shadow: 0 0 16px rgba(74, 222, 128, 0.8);
    }
}

/* File Preview List */
.file-preview-list {
    margin-top: 16px;
}

.file-tag {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: linear-gradient(145deg, rgba(0, 198, 255, 0.05), rgba(124, 58, 237, 0.05) );
    border: 1px solid rgba(0, 198, 255, 0.2);
    border-radius: 12px;
    position: relative;
    animation: slideInTag 0.4s ease;
    transition: all 0.3s ease;
}

    .file-tag:hover {
        border-color: rgba(0, 198, 255, 0.4);
        box-shadow: 0 4px 15px rgba(0, 198, 255, 0.1);
    }

.file-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(0, 198, 255, 0.3);
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

    .status-indicator.success {
        background: rgba(74, 222, 128, 0.1);
        color: #4ade80;
    }

    .status-indicator .dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: currentColor;
    }

.remove-file {
    margin-left: auto;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

    .remove-file:hover {
        background: rgba(239, 68, 68, 0.1);
        color: #ef4444;
    }

@keyframes slideInTag {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Premium Table Wrapper */
.table-premium-wrapper {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    margin-top: 20px;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.table-scroll {
    overflow-x: auto;
    max-height: 500px;
    overflow-y: auto;
}

.table-premium-wrapper table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
}

.table-premium-wrapper thead {
    position: sticky;
    top: 0;
    z-index: 10;
}

    .table-premium-wrapper thead th {
        background: linear-gradient(180deg, #f8fafc, #f1f5f9);
        padding: 14px 16px;
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: #475569;
        border-bottom: 2px solid #e2e8f0;
        position: relative;
    }

        .table-premium-wrapper thead th::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 100%;
            height: 2px;
            background: linear-gradient(90deg, #00c6ff, #7c3aed);
            transform: scaleX(0);
            transition: transform 0.3s ease;
        }

        .table-premium-wrapper thead th:hover::after {
            transform: scaleX(1);
        }

.table-premium-wrapper tbody td {
    padding: 12px 16px;
    font-size: 13px;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.2s ease;
}

.table-premium-wrapper tbody tr {
    transition: all 0.3s ease;
}

    .table-premium-wrapper tbody tr:hover {
        background: linear-gradient(90deg, rgba(0, 198, 255, 0.03), rgba(124, 58, 237, 0.03) );
        transform: scale(1.001);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    }

    .table-premium-wrapper tbody tr:nth-child(even) {
        background: rgba(248, 250, 252, 0.5);
    }

        .table-premium-wrapper tbody tr:nth-child(even):hover {
            background: linear-gradient(90deg, rgba(0, 198, 255, 0.05), rgba(124, 58, 237, 0.05) );
        }

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
}

    .empty-state i {
        font-size: 64px;
        margin-bottom: 20px;
        background: linear-gradient(135deg, #cbd5e1, #94a3b8);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        animation: float 3s ease-in-out infinite;
    }

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Quick Stats */
#quickStats {
    background: white;
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

    #quickStats > div > div {
        position: relative;
        overflow: hidden;
        border-radius: 12px;
        transition: all 0.3s ease;
    }

        #quickStats > div > div:hover {
            background: rgba(0, 198, 255, 0.05);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        }

/* SweetAlert2 Customization for Premium Look */
.swal2-popup-premium {
    border-radius: 20px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Loading Spinner Animation */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(0, 198, 255, 0.4);
    }

    50% {
        box-shadow: 0 0 0 15px rgba(0, 198, 255, 0);
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .csv-card {
        padding: 16px;
        border-radius: 12px;
    }

    .drop-zone {
        padding: 30px 16px;
    }

    .upload-icon-wrapper i {
        font-size: 36px;
    }

    .btn-upload-premium {
        padding: 8px 16px;
        font-size: 13px;
    }

    .table-premium-wrapper {
        border-radius: 12px;
    }

    .file-tag {
        flex-wrap: wrap;
        gap: 8px;
    }
}


/* Print Styles */
@media print {
    .csv-card,
    .table-premium-wrapper {
        box-shadow: none;
        border: 1px solid #e2e8f0;
    }

    .btn-upload-premium,
    .remove-file {
        display: none;
    }
}



/* =========================================
   CSV IMPORTER - LAYOUT FIX & ENHANCEMENTS
========================================= */

/* Container wrapper for proper spacing */
.csv-container {
    padding: 20px 24px;
    max-width: 1400px;
    margin: 0 auto;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Completely hide the default file input */
#fileInput {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    clip: rect(0, 0, 0, 0) !important;
    overflow: hidden !important;
    z-index: -1 !important;
}

/* Card Container with Glass Effect */
.csv-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9) );
    backdrop-filter: blur(20px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

    .csv-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, #00c6ff, #0072ff, #7c3aed, #a855f7, #00c6ff );
        background-size: 200% 100%;
        animation: shimmer 3s ease infinite;
    }

    .csv-card:hover {
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    }

/* Drop Zone - Enhanced */
.drop-zone {
    border: 2px dashed rgba(0, 198, 255, 0.3);
    border-radius: 16px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    position: relative;
    background: linear-gradient(145deg, rgba(0, 198, 255, 0.02), rgba(124, 58, 237, 0.02) );
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

    .drop-zone::after {
        content: '';
        position: absolute;
        inset: -2px;
        border-radius: 16px;
        padding: 2px;
        background: linear-gradient(135deg, #00c6ff, #7c3aed);
        mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        opacity: 0;
        transition: opacity 0.4s ease;
    }

    .drop-zone:hover {
        border-color: transparent;
        background: linear-gradient(145deg, rgba(0, 198, 255, 0.05), rgba(124, 58, 237, 0.05) );
        transform: translateY(-2px);
        box-shadow: 0 12px 40px rgba(0, 198, 255, 0.15);
    }

        .drop-zone:hover::after {
            opacity: 1;
        }

    .drop-zone.dragging {
        border-color: #00c6ff;
        background: linear-gradient(145deg, rgba(0, 198, 255, 0.1), rgba(124, 58, 237, 0.1) );
        animation: pulse 1.5s infinite;
    }

    .drop-zone h3 {
        color: #1e293b;
        font-size: 1.1rem;
        font-weight: 600;
        margin: 12px 0 4px;
    }

    .drop-zone p {
        color: #64748b;
        font-size: 0.85rem;
        margin: 0 0 8px;
    }

/* Upload Icon Animation */
.upload-icon-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 16px;
}

    .upload-icon-wrapper i {
        font-size: 48px;
        background: linear-gradient(135deg, #00c6ff, #7c3aed);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        position: relative;
        z-index: 2;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

.drop-zone:hover .upload-icon-wrapper i {
    transform: translateY(-8px) scale(1.1);
}

.pulse-ring {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid rgba(0, 198, 255, 0.5);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulseRing 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    z-index: 1;
}

@keyframes pulseRing {
    0% {
        width: 60px;
        height: 60px;
        opacity: 1;
    }

    100% {
        width: 120px;
        height: 120px;
        opacity: 0;
    }
}

/* Premium Upload Button */
.btn-upload-premium {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 198, 255, 0.3);
    letter-spacing: 0.3px;
    text-decoration: none;
}

    .btn-upload-premium::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent );
        transition: left 0.5s ease;
    }

    .btn-upload-premium:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0, 198, 255, 0.4);
        color: white;
        text-decoration: none;
    }

        .btn-upload-premium:hover::before {
            left: 100%;
        }

    .btn-upload-premium:active {
        transform: translateY(0);
        box-shadow: 0 2px 10px rgba(0, 198, 255, 0.2);
    }

    .btn-upload-premium:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
    }

        .btn-upload-premium:disabled::before {
            display: none;
        }

/* Badge Premium */
.badge-premium {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(0, 198, 255, 0.1);
    border: 1px solid rgba(0, 198, 255, 0.2);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #00c6ff;
    transition: all 0.3s ease;
}

    .badge-premium:hover {
        background: rgba(0, 198, 255, 0.15);
        border-color: rgba(0, 198, 255, 0.3);
    }

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.5);
    animation: dotPulse 2s ease infinite;
}

@keyframes dotPulse {
    0%, 100% {
        box-shadow: 0 0 8px rgba(74, 222, 128, 0.5);
    }

    50% {
        box-shadow: 0 0 16px rgba(74, 222, 128, 0.8);
    }
}

/* File Preview List */
.file-preview-list {
    margin-top: 16px;
}

.file-tag {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: linear-gradient(145deg, rgba(0, 198, 255, 0.05), rgba(124, 58, 237, 0.05) );
    border: 1px solid rgba(0, 198, 255, 0.2);
    border-radius: 12px;
    position: relative;
    animation: slideInTag 0.4s ease;
    transition: all 0.3s ease;
}

    .file-tag:hover {
        border-color: rgba(0, 198, 255, 0.4);
        box-shadow: 0 4px 15px rgba(0, 198, 255, 0.1);
    }

.file-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(0, 198, 255, 0.3);
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

    .status-indicator.success {
        background: rgba(74, 222, 128, 0.1);
        color: #4ade80;
    }

    .status-indicator .dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: currentColor;
    }

.remove-file {
    margin-left: auto;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

    .remove-file:hover {
        background: rgba(239, 68, 68, 0.1);
        color: #ef4444;
    }

@keyframes slideInTag {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Premium Table Wrapper */
.table-premium-wrapper {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    animation: fadeInUp 0.5s ease 0.1s both;
}

.table-scroll {
    overflow-x: auto;
    max-height: 500px;
    overflow-y: auto;
}

.table-premium-wrapper table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
}

.table-premium-wrapper thead {
    position: sticky;
    top: 0;
    z-index: 10;
}

    .table-premium-wrapper thead th {
        background: linear-gradient(180deg, #f8fafc, #f1f5f9);
        padding: 14px 16px;
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: #475569;
        border-bottom: 2px solid #e2e8f0;
        position: relative;
        white-space: nowrap;
    }

        .table-premium-wrapper thead th::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 100%;
            height: 2px;
            background: linear-gradient(90deg, #00c6ff, #7c3aed);
            transform: scaleX(0);
            transition: transform 0.3s ease;
        }

        .table-premium-wrapper thead th:hover::after {
            transform: scaleX(1);
        }

.table-premium-wrapper tbody td {
    padding: 12px 16px;
    font-size: 13px;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.2s ease;
}

.table-premium-wrapper tbody tr {
    transition: all 0.3s ease;
}

    .table-premium-wrapper tbody tr:hover {
        background: linear-gradient(90deg, rgba(0, 198, 255, 0.03), rgba(124, 58, 237, 0.03) );
        transform: scale(1.001);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    }

    .table-premium-wrapper tbody tr:nth-child(even) {
        background: rgba(248, 250, 252, 0.5);
    }

        .table-premium-wrapper tbody tr:nth-child(even):hover {
            background: linear-gradient(90deg, rgba(0, 198, 255, 0.05), rgba(124, 58, 237, 0.05) );
        }

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
}

    .empty-state i {
        font-size: 64px;
        margin-bottom: 20px;
        background: linear-gradient(135deg, #cbd5e1, #94a3b8);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        animation: float 3s ease-in-out infinite;
    }

    .empty-state p {
        font-size: 0.9rem;
        margin: 8px 0;
    }

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Quick Stats Cards */
#quickStats {
    animation: fadeInUp 0.5s ease 0.2s both;
}

    #quickStats > div > div {
        position: relative;
        overflow: hidden;
        border-radius: 12px;
        transition: all 0.3s ease;
        cursor: default;
    }

        #quickStats > div > div:hover {
            background: rgba(0, 198, 255, 0.05);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        }

/* Shimmer Animation */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* Pulse Animation */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(0, 198, 255, 0.4);
    }

    50% {
        box-shadow: 0 0 0 15px rgba(0, 198, 255, 0);
    }
}



/* =========================================
   RESPONSIVE ADJUSTMENTS
========================================= */

@media (max-width: 1200px) {
    .csv-container {
        padding: 16px 20px;
    }
}

@media (max-width: 768px) {
    .csv-container {
        padding: 12px 16px;
    }

    .csv-card {
        padding: 16px;
        border-radius: 12px;
    }

    .drop-zone {
        padding: 30px 16px;
    }

    .upload-icon-wrapper i {
        font-size: 36px;
    }

    .pulse-ring {
        width: 60px;
        height: 60px;
    }

    @keyframes pulseRing {
        0% {
            width: 50px;
            height: 50px;
            opacity: 1;
        }

        100% {
            width: 90px;
            height: 90px;
            opacity: 0;
        }
    }

    .btn-upload-premium {
        padding: 8px 16px;
        font-size: 13px;
    }

    .table-premium-wrapper {
        border-radius: 12px;
    }

    .table-scroll {
        max-height: 400px;
    }

    .file-tag {
        flex-wrap: wrap;
        gap: 8px;
        font-size: 0.85rem;
    }

    .drop-zone h3 {
        font-size: 1rem;
    }

    .drop-zone p {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .csv-container {
        padding: 8px 10px;
    }

    .csv-card {
        padding: 12px;
    }

    .drop-zone {
        padding: 20px 12px;
    }

    .badge-premium {
        padding: 6px 12px;
        font-size: 11px;
    }
}

/* =========================================
   PRINT STYLES
========================================= */

@media print {
    .csv-container {
        padding: 0;
        max-width: 100%;
    }

    .csv-card,
    .table-premium-wrapper {
        box-shadow: none;
        border: 1px solid #e2e8f0;
        break-inside: avoid;
    }

    .btn-upload-premium,
    .remove-file,
    .drop-zone,
    .file-preview-list,
    #btnImport,
    #btnProcess {
        display: none !important;
    }

    .table-premium-wrapper {
        page-break-inside: auto;
    }

        .table-premium-wrapper table {
            page-break-inside: auto;
        }

        .table-premium-wrapper tr {
            page-break-inside: avoid;
            page-break-after: auto;
        }
}


/* =========================================
   ENHANCED TABLE WITH STATIC HEADER & SMALLER TEXT
========================================= */

/* Premium Table Wrapper - Light Theme Only */
.table-premium-wrapper {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    animation: fadeInUp 0.5s ease 0.1s both;
    position: relative;
}

/* Static Header Container */
.table-scroll {
    overflow-x: auto;
    max-height: 500px;
    overflow-y: auto;
    position: relative;
}

/* Table Base Styles */
.table-premium-wrapper table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
    font-size: 0.75rem; /* Smaller text - 12px equivalent */
    min-width: 800px;
}

/* Static Sticky Header */
.table-premium-wrapper thead {
    position: sticky;
    top: 0;
    z-index: 20;
}

    /* Header Cells */
    .table-premium-wrapper thead th {
        background: linear-gradient(180deg, #f8fafc, #f1f5f9);
        padding: 10px 12px;
        font-size: 0.65rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.8px;
        color: #334155;
        border-bottom: 2px solid #e2e8f0;
        white-space: nowrap;
        position: relative;
        backdrop-filter: blur(8px);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        transition: all 0.2s ease;
    }

        /* Gradient accent line on hover */
        .table-premium-wrapper thead th::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 100%;
            height: 2px;
            background: linear-gradient(90deg, #00c6ff, #7c3aed);
            transform: scaleX(0);
            transition: transform 0.3s ease;
        }

        .table-premium-wrapper thead th:hover::after {
            transform: scaleX(1);
        }

        /* First column (row number) styling */
        .table-premium-wrapper thead th:first-child,
        .table-premium-wrapper tbody td:first-child {
            width: 40px;
            min-width: 40px;
            text-align: center;
            color: #64748b;
            font-size: 0.6rem;
            font-weight: 500;
        }

/* Body Cells */
.table-premium-wrapper tbody td {
    padding: 8px 12px;
    font-size: 0.7rem;
    color: #475569;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.2s ease;
    vertical-align: middle;
    white-space: nowrap;
}

/* Row hover effect with gradient */
.table-premium-wrapper tbody tr {
    transition: all 0.3s ease;
    position: relative;
}

    .table-premium-wrapper tbody tr:hover {
        background: linear-gradient(90deg, rgba(0, 198, 255, 0.04), rgba(124, 58, 237, 0.04));
        transform: scale(1.001);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    }

    /* Alternating row colors */
    .table-premium-wrapper tbody tr:nth-child(even) {
        background: rgba(248, 250, 252, 0.5);
    }

        .table-premium-wrapper tbody tr:nth-child(even):hover {
            background: linear-gradient(90deg, rgba(0, 198, 255, 0.06), rgba(124, 58, 237, 0.06));
        }

/* Row animation */
.table-premium-wrapper tbody tr {
    animation: fadeInRow 0.3s ease forwards;
}

@keyframes fadeInRow {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* More rows indicator */
.more-rows-indicator {
    text-align: center;
    color: #64748b;
    font-size: 0.7rem;
    padding: 1rem;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
    font-style: italic;
}

/* Custom Scrollbar for Table */
.table-scroll::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.table-scroll::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.table-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

    .table-scroll::-webkit-scrollbar-thumb:hover {
        background: #94a3b8;
    }

/* Fixed shadow on right when scrolling horizontally */
.table-scroll::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 100%;
    background: linear-gradient(to left, rgba(0, 0, 0, 0.05), transparent);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.table-scroll.scrolled-right::after {
    opacity: 1;
}


/* =========================================
   SWEETALERT2 - LIGHT THEME ONLY
========================================= */

.swal2-popup {
    background: #ffffff !important;
    color: #0b1a2b !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.swal2-title {
    color: #0b1a2b !important;
}

.swal2-html-container {
    color: #334155 !important;
}

.swal2-confirm {
    background: linear-gradient(135deg, #00c6ff, #0072ff) !important;
    color: white !important;
    border: none !important;
}

.swal2-cancel {
    background: #f1f5f9 !important;
    color: #334155 !important;
    border: 1px solid #e2e8f0 !important;
}

    .swal2-cancel:hover {
        background: #e2e8f0 !important;
    }

.swal2-validation-message {
    background: rgba(239, 68, 68, 0.1) !important;
    color: #dc2626 !important;
}

.swal2-icon.swal2-success {
    border-color: #22c55e !important;
    color: #22c55e !important;
}

    .swal2-icon.swal2-success [class^='swal2-success-line'] {
        background: #22c55e !important;
    }

.swal2-icon.swal2-error {
    border-color: #ef4444 !important;
    color: #ef4444 !important;
}

    .swal2-icon.swal2-error [class^='swal2-x-mark-line'] {
        background: #ef4444 !important;
    }

.swal2-icon.swal2-warning {
    border-color: #f59e0b !important;
    color: #f59e0b !important;
}

.swal2-icon.swal2-info {
    border-color: #3b82f6 !important;
    color: #3b82f6 !important;
}

.swal2-loader {
    border-color: #00c6ff transparent #00c6ff transparent !important;
}

.swal2-timer-progress-bar {
    background: linear-gradient(90deg, #00c6ff, #7c3aed) !important;
}

/* Toast styling */
.swal2-toast {
    background: #ffffff !important;
    color: #0b1a2b !important;
}

/* Loading overlay */
.table-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 30;
}


/* =========================================
   RESPONSIVE TABLE ADJUSTMENTS
========================================= */
@media (max-width: 768px) {
    .table-premium-wrapper table {
        font-size: 0.7rem;
        min-width: 600px;
    }

    .table-premium-wrapper thead th {
        padding: 8px 10px;
        font-size: 0.6rem;
    }

    .table-premium-wrapper tbody td {
        padding: 6px 10px;
        font-size: 0.65rem;
    }

    .table-scroll {
        max-height: 400px;
    }
}

@media (max-width: 480px) {
    .table-premium-wrapper table {
        font-size: 0.65rem;
        min-width: 500px;
    }

    .table-premium-wrapper thead th {
        padding: 6px 8px;
        font-size: 0.55rem;
        letter-spacing: 0.5px;
    }

    .table-premium-wrapper tbody td {
        padding: 5px 8px;
        font-size: 0.6rem;
    }
}


/* Bigger validation modal */
.swal2-popup-premium {
    width: 650px !important;
    max-width: 90vw !important;
}

.swal2-title-large {
    font-size: 1.4rem !important;
    padding: 20px 20px 10px !important;
}

/* Make validation steps text more readable */
.swal2-popup-premium .swal2-html-container {
    font-size: 14px !important;
    line-height: 1.6 !important;
}



/* Status Badge Styles */
#uploadStatusBadge {
    transition: all 0.3s ease;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid;
    transition: all 0.3s ease;
}

    .status-indicator .dot {
        display: inline-block;
        width: 6px;
        height: 6px;
        border-radius: 50%;
        margin-right: 6px;
        animation: pulse 2s infinite;
    }

    .status-indicator.processing .dot {
        animation: pulse 1s infinite;
    }

    .status-indicator i {
        font-size: 0.7rem;
        margin-right: 4px;
    }

/* Last Updated Badge */
#lastUpdated {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    padding: 4px 12px;
    background: var(--bg-secondary);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInTag {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Premium Status Badge Styles */
.status-badge-premium {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 24px;
    font-size: 0.75rem;
    font-weight: 500;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(148, 163, 184, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

    .status-badge-premium::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, transparent 50%);
        border-radius: 24px;
    }

/* Status-specific styles */
.status-waiting {
    border-color: rgba(148, 163, 184, 0.3);
    background: rgba(148, 163, 184, 0.05);
}

.status-loaded {
    border-color: rgba(34, 197, 94, 0.3);
    background: rgba(34, 197, 94, 0.05);
    box-shadow: 0 2px 12px rgba(34, 197, 94, 0.1);
}

.status-uploaded {
    border-color: rgba(59, 130, 246, 0.3);
    background: rgba(59, 130, 246, 0.05);
    box-shadow: 0 2px 12px rgba(59, 130, 246, 0.1);
}

.status-processing {
    border-color: rgba(245, 158, 11, 0.3);
    background: rgba(245, 158, 11, 0.05);
    box-shadow: 0 2px 12px rgba(245, 158, 11, 0.1);
}

.status-completed {
    border-color: rgba(34, 197, 94, 0.4);
    background: rgba(34, 197, 94, 0.08);
    box-shadow: 0 2px 16px rgba(34, 197, 94, 0.15);
}

/* Status glow effect */
.status-glow {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    filter: blur(20px);
    opacity: 0.15;
    top: 50%;
    left: 0;
    transform: translate(-30%, -50%);
}

/* Pulsing dot for active states */
.status-dot-pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    position: relative;
    z-index: 1;
}

.status-processing .status-dot-pulse {
    animation: statusPulse 1.5s ease-in-out infinite;
}

.status-completed .status-dot-pulse {
    animation: statusPulse 2s ease-in-out infinite;
}

/* Status text */
.status-text {
    position: relative;
    z-index: 1;
    letter-spacing: 0.3px;
}

/* Animations */
@keyframes statusSlideIn {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes statusPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.8);
        opacity: 0.5;
    }
}

/* Hover effect */
.status-badge-premium:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}


/*//===========*/


/* ========== MODERN UI/UX ENHANCEMENTS ========== */

/* Glass morphism effects */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Modern Stat Cards Redesign */
.stat-card {
    position: relative;
    border-radius: 20px;
    padding: 24px;
    background: white;
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

    .stat-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, #667eea, #764ba2);
        transform: scaleX(0);
        transition: transform 0.4s ease;
    }

    .stat-card:hover::before {
        transform: scaleX(1);
    }

    .stat-card .stat-icon {
        width: 48px;
        height: 48px;
        border-radius: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        margin-bottom: 16px;
        transition: all 0.3s ease;
    }

    .stat-card:hover .stat-icon {
        transform: scale(1.1) rotate(5deg);
    }

    .stat-card .stat-value {
        font-size: 2.5rem;
        font-weight: 800;
        background: linear-gradient(135deg, #2d3748, #1a202c);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        margin: 8px 0;
        line-height: 1.2;
    }

    .stat-card .stat-label {
        font-size: 0.875rem;
        color: #718096;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        font-weight: 600;
    }

    .stat-card .stat-trend {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        font-size: 0.8rem;
        font-weight: 600;
        padding: 4px 8px;
        border-radius: 20px;
        margin-top: 8px;
    }

.stat-trend.up {
    background: #c6f6d5;
    color: #22543d;
}

.stat-trend.down {
    background: #fed7d7;
    color: #822727;
}

/* Transfer History Modal Enhancement */
.transfer-history-container {
    max-height: 60vh;
    overflow-y: auto;
    border-radius: 12px;
}

.transfer-history-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
}

    .transfer-history-table thead th {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        padding: 16px;
        font-weight: 600;
        font-size: 0.9rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        border: none;
    }

        .transfer-history-table thead th:first-child {
            border-radius: 12px 0 0 12px;
        }

        .transfer-history-table thead th:last-child {
            border-radius: 0 12px 12px 0;
        }

    .transfer-history-table tbody tr {
        background: white;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        transition: all 0.3s ease;
        border-radius: 12px;
    }

        .transfer-history-table tbody tr:hover {
            transform: translateX(5px);
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
            background: #f8f9ff;
        }

    .transfer-history-table td {
        padding: 16px;
        vertical-align: middle;
        border: none;
    }

        .transfer-history-table td:first-child {
            border-radius: 12px 0 0 12px;
        }

        .transfer-history-table td:last-child {
            border-radius: 0 12px 12px 0;
        }

.status-badge {
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

    .status-badge.success {
        background: linear-gradient(135deg, #c6f6d5 0%, #9ae6b4 100%);
        color: #22543d;
        border: 1px solid #9ae6b4;
    }

    .status-badge.failed {
        background: linear-gradient(135deg, #fed7d7 0%, #feb2b2 100%);
        color: #822727;
        border: 1px solid #feb2b2;
    }

    .status-badge.processing {
        background: linear-gradient(135deg, #fefcbf 0%, #faf089 100%);
        color: #744210;
        border: 1px solid #faf089;
    }

/* Modern Table Enhancements */
#mainTable_wrapper {
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.dataTables_filter input {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 20px 12px 40px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #f8fafc;
    width: 300px;
}

    .dataTables_filter input:focus {
        border-color: #667eea;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        background: white;
        outline: none;
    }

.dataTables_length select {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 16px;
    background: #f8fafc;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .dataTables_length select:focus {
        border-color: #667eea;
        outline: none;
    }

#mainTable {
    border-collapse: separate;
    border-spacing: 0;
}

    #mainTable thead th {
        background: #f8fafc;
        color: #4a5568;
        font-weight: 700;
        font-size: 0.85rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        padding: 16px;
        border-bottom: 2px solid #e2e8f0;
    }

    #mainTable tbody td {
        padding: 16px;
        border-bottom: 1px solid #f1f5f9;
        vertical-align: middle;
    }

    #mainTable tbody tr {
        transition: all 0.3s ease;
    }

        #mainTable tbody tr:hover {
            background: #f8f9ff;
            transform: scale(1.01);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        }

/* Modern Action Buttons */
.action-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

    .action-btn::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background: rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        transition: width 0.6s, height 0.6s;
    }

    .action-btn:hover::after {
        width: 100px;
        height: 100px;
    }

    .action-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    }

    .action-btn:active {
        transform: translateY(0);
    }

/* Tooltip Enhancement */
[title] {
    position: relative;
}

    [title]:hover::before {
        content: attr(title);
        position: absolute;
        bottom: calc(100% + 8px);
        left: 50%;
        transform: translateX(-50%);
        background: #1a202c;
        color: white;
        padding: 6px 12px;
        border-radius: 8px;
        font-size: 0.75rem;
        white-space: nowrap;
        z-index: 1000;
        pointer-events: none;
    }

/* Modern Modal Enhancements */
.swal2-popup {
    border-radius: 24px !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15) !important;
}

.swal2-title {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #2d3748 !important;
}

.swal2-html-container {
    font-size: 1rem !important;
    color: #4a5568 !important;
}

.swal2-confirm {
    border-radius: 12px !important;
    padding: 12px 24px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.swal2-cancel {
    border-radius: 12px !important;
    padding: 12px 24px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

/* Loading States */
.loading-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Empty State Enhancement */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

    .empty-state .empty-icon {
        font-size: 4rem;
        margin-bottom: 20px;
        opacity: 0.5;
        animation: float 3s ease-in-out infinite;
    }

    .empty-state .empty-title {
        font-size: 1.5rem;
        font-weight: 700;
        color: #4a5568;
        margin-bottom: 8px;
    }

    .empty-state .empty-description {
        color: #a0aec0;
        font-size: 1rem;
    }

/* Notification Badge */
.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 20px;
    height: 20px;
    background: #f56565;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    border: 2px solid white;
    animation: pulse 2s infinite;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .stat-card {
        padding: 16px;
    }

        .stat-card .stat-value {
            font-size: 2rem;
        }

    .dataTables_filter input {
        width: 100%;
        margin-bottom: 12px;
    }

    .action-btn {
        width: 32px;
        height: 32px;
    }
}

/* Custom Scrollbar for Modals */
.swal2-html-container::-webkit-scrollbar {
    width: 6px;
}

.swal2-html-container::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.swal2-html-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}