/* ElectroMercat - Custom Styles */
/* Contains styles for Confirmation, Contact, Login, and Admin pages */

/* =========================================
   Confirmation View
   ========================================= */
.confirmation-view {
    text-align: center;
    padding: 2rem 0;
    animation: fadeIn 0.5s ease-out;
}

.success-icon {
    font-size: 5rem;
    color: #10B981;
    /* var(--success-color) */
    margin-bottom: 1.5rem;
    animation: popIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.booking-id {
    background: #F8FAFC;
    border: 2px dashed #FFD72B;
    /* var(--primary-color) */
    padding: 1rem 2rem;
    font-size: 1.8rem;
    font-weight: 800;
    color: #121212;
    /* var(--text-primary) */
    border-radius: 12px;
    margin: 2rem auto;
    width: fit-content;
    display: inline-block;
    min-width: 250px;
}

@keyframes popIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    80% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* =========================================
   Contact Page Styles
   ========================================= */
/* Modern Action Buttons (Add, Filter, etc.) */
.btn-add,
.btn-primary,
.btn-save {
    background: linear-gradient(135deg, #FFD72B, #F5C400);
    color: #121212;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(255, 215, 43, 0.3);
    text-transform: none;
}

.btn-add:hover,
.btn-primary:hover,
.btn-save:hover {
    background: linear-gradient(135deg, #F5C400, #E5B400);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 215, 43, 0.4);
}

.btn-add:active,
.btn-primary:active,
.btn-save:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(255, 215, 43, 0.3);
}

.btn-add i,
.btn-primary i,
.btn-save i {
    font-size: 1.1rem;
}

.hero-contact {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('assets/hero-home.png');
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    text-align: center;
    color: white;
}

.contact-info-card {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: -60px;
    margin-bottom: 60px;
    position: relative;
    z-index: 10;
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
    border-top: none;
}

.contact-item {
    background: white;
    padding: 30px 20px;
    border-radius: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-top: 6px solid #FFD72B;
    /* var(--primary-color) */
    text-align: center;
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.contact-item:hover {
    transform: translateY(-5px);
}

.contact-icon {
    width: 70px;
    height: 70px;
    background: #FFD72B;
    /* var(--primary-color) */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.8rem;
    color: #121212;
    box-shadow: 0 4px 15px rgba(255, 215, 43, 0.4);
}

.contact-item h3 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: #121212;
}

.contact-item p,
.contact-item a {
    color: #555555;
    font-size: 1rem;
    line-height: 1.6;
    text-decoration: none;
}

.contact-item a:hover {
    color: #F5C400;
    /* var(--primary-dark) */
    text-decoration: underline;
}

.map-container {
    height: 450px;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-bottom: 60px;
    border: 4px solid white;
}

/* =========================================
   Login Page Enhancements
   ========================================= */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.8)), url('assets/hero-home.png');
    background-size: cover;
    background-position: center;
    font-family: 'Nunito', sans-serif;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 3.5rem 2.5rem;
    border-radius: 20px;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-top: 6px solid #FFD72B;
    /* var(--primary-color) */
    animation: fadeIn 0.8s ease-out;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo {
    width: 80px;
    height: 80px;
    background: #FFD72B;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: #121212;
    box-shadow: 0 5px 15px rgba(255, 215, 43, 0.4);
    animation: bounceIn 1s;
}

.login-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1a202c;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: #718096;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: #4a5568;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s;
    background: #f8fafc;
}

.form-group input:focus {
    border-color: #FFD72B;
    box-shadow: 0 0 0 3px rgba(255, 215, 43, 0.2);
    outline: none;
    background: white;
}

.login-btn {
    width: 100%;
    padding: 14px;
    background: #FFD72B;
    color: #121212;
    font-weight: 800;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 6px -1px rgba(255, 215, 43, 0.3);
}

.login-btn:hover {
    background: #F5C400;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(255, 215, 43, 0.4);
}

.login-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
    font-size: 0.9rem;
    color: #718096;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #718096;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    transition: color 0.3s;
}

.back-link:hover {
    color: #121212;
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
    }
}

/* =========================================
   Admin Shared Styles
   ========================================= */
.admin-container {
    padding: 40px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.admin-header {
    background: white;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 6px solid #FFD72B;
}
}

.stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.stat-box {
    background: white;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
}

.stat-box h3 {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: #555555;
    margin-bottom: 10px;
}

.stat-box .value {
    font-size: 2.5rem;
    font-weight: 800;
}

/* Tables */
table.admin-table,
.campings-table,
.products-table,
.users-table,
.inventory-table {
    width: 100%;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-collapse: collapse;
}

.reservations-table {
    width: 100%;
    max-width: 100%;
    background: white;
    border-radius: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.admin-table th,
.campings-table th,
.products-table th,
.reservations-table th,
.users-table th,
.inventory-table th {
    background: #F3F4F6;
    padding: 15px 20px;
    text-align: left;
    font-weight: 800;
    color: #121212;
    border-bottom: 2px solid #E3E6F0;
}

.admin-table td,
.campings-table td,
.products-table td,
.campings-table td,
.products-table td,
.reservations-table td,
.users-table td,
.inventory-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #E3E6F0;
    white-space: nowrap;
}

.reservations-table td {
    white-space: normal;
}

.admin-table tr:hover {
    background: #F9FAFB;
}

#reservations-table {
    width: 100%;
    background: white;
    border-collapse: collapse;
    table-layout: fixed;
    min-width: 100%;
}

#reservations-table th,
#reservations-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #E3E6F0;
}

#reservations-table th {
    background: #F3F4F6;
    font-weight: 800;
    color: #121212;
    border-bottom: 2px solid #E3E6F0;
}

#reservations-table tr:hover {
    background: #F9FAFB;
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-header {
    padding: 25px 35px;
    border-bottom: 1px solid #E5E7EB;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title-icon {
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-close {
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    color: inherit;
}

.modal-body {
    padding: 35px;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: #4a5568;
    font-size: 0.9rem;
}

.form-input-focus {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #E2E8F0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
}

.form-input-focus:focus {
    outline: none;
    border-color: #FFD72B;
    box-shadow: 0 0 0 4px rgba(255, 193, 7, 0.2);
}

.modal-footer {
    padding: 25px 35px;
    background: #F9FAFB;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    border-top: 1px solid #E5E7EB;
}

.btn-form-submit {
    background: #FFD72B;
    color: #121212;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: transform 0.2s;
}

.btn-form-submit:hover {
    transform: translateY(-2px);
    background: #F5C400;
}

.btn-form-cancel {
    background: white;
    border: 2px solid #E2E8F0;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-form-cancel:hover {
    background: #F3F4F6;
}

/* Print and General Action Buttons */
.btn-print-general,
.btn-print {
    background: #FFD72B;
    color: #121212;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
}

.btn-print-general:hover,
.btn-print:hover {
    background: #F5C400;
}

.btn-print-general:active,
.btn-print:active {
    opacity: 0.9;
}

/* =========================================
   Modern Search Filters
   ========================================= */
.filters {
    background: white;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-bottom: 25px;
    border-left: 6px solid #FFD72B;
}

.filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-weight: 700;
    font-size: 0.9rem;
    color: #4a5568;
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-group label i {
    color: #FFD72B;
    font-size: 0.85rem;
}

.filter-group input[type="text"],
.filter-group input[type="date"],
.filter-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #E2E8F0;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    background: #F8FAFC;
    color: #1a202c;
    transition: all 0.3s ease;
    outline: none;
}

.filter-group input[type="text"]:focus,
.filter-group input[type="date"]:focus,
.filter-group select:focus {
    border-color: #FFD72B;
    background: white;
    box-shadow: 0 0 0 4px rgba(255, 215, 43, 0.15);
    transform: translateY(-1px);
}

.filter-group input[type="text"]:hover,
.filter-group input[type="date"]:hover,
.filter-group select:hover {
    border-color: #CBD5E0;
    background: white;
}

.filter-group input[type="text"]::placeholder {
    color: #A0AEC0;
    font-style: italic;
}

.filter-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234a5568' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 35px;
}

.btn-filter {
    background: linear-gradient(135deg, #FFD72B, #F5C400);
    color: #121212;
    border: none;
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 6px -1px rgba(255, 215, 43, 0.3);
    min-height: 48px;
}

.btn-filter:hover {
    background: linear-gradient(135deg, #F5C400, #E5B400);
    transform: translateY(-2px);
    box-shadow: 0 8px 12px -2px rgba(255, 215, 43, 0.4);
}

.btn-filter:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px -1px rgba(255, 215, 43, 0.3);
}

.btn-filter i {
    font-size: 1.1rem;
}

/* Responsive adjustments for filters */
@media (max-width: 1024px) {
    .filters {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .filters {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .btn-filter {
        width: 100%;
    }
}

/* =========================================
   Modern Action Buttons & Status Selectors
   ========================================= */

/* Action Buttons Container */
.reservations-table td>div {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

/* Base Action Button Style */
.btn-action {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-action:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Edit Button - Green */
.btn-action.btn-edit {
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
}

.btn-action.btn-edit:hover {
    background: linear-gradient(135deg, #059669, #047857);
}

/* Delete/Danger Button - Red */
.btn-action.btn-delete {
    background: linear-gradient(135deg, #EF4444, #DC2626);
    color: white;
}

.btn-action.btn-delete:hover {
    background: linear-gradient(135deg, #DC2626, #B91C1C);
}

/* Email Button - Corporate Yellow */
.btn-action.btn-email {
    background: linear-gradient(135deg, #FFD72B, #F5C400);
    color: #121212;
}

.btn-action.btn-email:hover {
    background: linear-gradient(135deg, #F5C400, #E5B400);
}

/* Status Select Dropdown */
.status-select {
    padding: 8px 32px 8px 12px;
    border: 2px solid #E2E8F0;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    min-width: 130px;
    transition: all 0.3s ease;
    outline: none;
    appearance: none;
    background-color: white;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234a5568' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.status-select:focus {
    border-color: #FFD72B;
    box-shadow: 0 0 0 3px rgba(255, 215, 43, 0.2);
}

.status-select:hover {
    border-color: #CBD5E0;
}

/* =========================================
   Dropdown Menu Styles
   ========================================= */
/* .nav-menu styles moved to style.css for mobile compatibility */
/*
.nav-menu {
    display: flex;
    align-items: center;
    gap: 15px;
    list-style: none;
    margin: 0;
    padding: 0;
}
*/

.nav-dropdown {
    position: relative;
    padding: 10px 0;
    /* Add padding to bridge gap to menu */
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 180px;
    display: none;
    z-index: 1000;
    border: 1px solid #E2E8F0;
    margin-top: 0;
}

.nav-dropdown:hover .dropdown-menu {
    display: block;
    animation: fadeIn 0.2s ease-out;
}

.dropdown-menu li {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.dropdown-menu a:hover {
    background: #FFD72B;
    color: #121212;
}

.dropdown-toggle i {
    margin-left: 4px;
    font-size: 0.8em;
    transition: transform 0.2s;
}

.nav-dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

/* Mobile adjustments */
@media (max-width: 968px) {
    /* .nav-menu mobile styles moved to style.css */
    /*
    .nav-menu {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    */

    .nav-dropdown {
        width: 100%;
        padding: 0;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        padding-left: 20px;
        width: 100%;
        display: none;
        /* JS toggle would be better, but basic CSS hover works */
        background: rgba(0, 0, 0, 0.02);
    }

    .nav-dropdown:hover .dropdown-menu {
        display: block;
    }

    .dropdown-toggle {
        width: 100%;
        display: flex;
        justify-content: space-between;
    }
}

/* Status Colors */
.status-select option[value="pendiente"] {
    background-color: #FEF3C7;
    color: #92400E;
}

.status-select option[value="confirmada"] {
    background-color: #D1FAE5;
    color: #065F46;
}

.status-select option[value="cancelada"] {
    background-color: #FEE2E2;
    color: #991B1B;
}

.status-select option[value="completada"] {
    background-color: #DBEAFE;
    color: #1E40AF;
}

/* Dynamic status select background based on selected value */
.status-select[data-status="pendiente"] {
    background-color: #FEF3C7;
    color: #92400E;
    border-color: #FCD34D;
}

.status-select[data-status="confirmada"] {
    background-color: #D1FAE5;
    color: #065F46;
    border-color: #34D399;
}

.status-select[data-status="cancelada"] {
    background-color: #FEE2E2;
    color: #991B1B;
    border-color: #F87171;
}

.status-select[data-status="completada"] {
    background-color: #DBEAFE;
    color: #1E40AF;
    border-color: #60A5FA;
}

/* Save Status Button */
.btn-save-status {
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
    animation: slideIn 0.3s ease-out;
}

.btn-save-status:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.4);
}

.btn-save-status:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(16, 185, 129, 0.3);
}

.btn-save-status:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-save-status i {
    font-size: 0.9rem;
}

/* Slide in animation for save button */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Status Badge Styles (for display purposes) */
.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.status-badge.pendiente {
    background-color: #FEF3C7;
    color: #92400E;
}

.status-badge.confirmada {
    background-color: #D1FAE5;
    color: #065F46;
}

.status-badge.cancelada {
    background-color: #FEE2E2;
    color: #991B1B;
}

.status-badge.completada {
    background-color: #DBEAFE;
    color: #1E40AF;
}

/* Tooltip for action buttons */
.btn-action::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: #1a202c;
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1000;
}

.btn-action:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .btn-action {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }

    .status-select {
        min-width: 110px;
        font-size: 0.85rem;
        padding: 6px 28px 6px 10px;
    }

    .btn-save-status {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

/* =========================================
   User Info & Logout Button (Top Bar)
   ========================================= */
.admin-info-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    /* Pushes everything to the right */
    padding-left: 20px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: #F8FAFC;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #1a202c;
    border: 1px solid #E2E8F0;
    white-space: nowrap;
}

.user-name-text {
    font-weight: 700;
}

.user-info i {
    color: #FFD72B;
    font-size: 0.95rem;
}

.user-info small {
    color: #718096;
    font-weight: 600;
}

.logout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #EF4444, #DC2626);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
    font-size: 1rem;
}

.logout-btn:hover {
    background: linear-gradient(135deg, #DC2626, #B91C1C);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3);
}

/* Ensure header nav doesn't cover everything */
nav {
    margin-left: 2rem;
}

/* =========================================
   Modern Modals & Forms (Dashboard System)
   ========================================= */

/* Modal Backdrop with Glassmorphism */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.65);
    /* Slate-900 with opacity */
    backdrop-filter: blur(10px);
    display: none;
    /* Hidden by default */
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1rem;
    animation: fadeInModal 0.3s ease-out;
}

/* Admin Shared Layout & Components */
.admin-container {
    padding: 40px 8px;
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
    overflow-x: hidden;
}

.content-container {
    display: flex;
    gap: 20px;
    max-width: 100%;
    width: 100%;
}

.sidebar {
    width: 280px;
    background: white;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    height: fit-content;
}

.main-content {
    flex-grow: 1;
    min-width: 0;
    overflow-x: auto;
    max-width: 100%;
}

/* Responsive Layout for Admin Pages */
@media (max-width: 1024px) {
    .content-container {
        flex-direction: column;
        gap: 20px;
    }

    .sidebar {
        width: 100%;
        height: auto;
    }
    
    .admin-container {
        padding: 30px 8px;
    }
}

@media (max-width: 768px) {
    .admin-container {
        padding: 20px 8px;
    }
    
    .sidebar {
        width: 100%;
        padding: 20px;
    }
}

.stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.stat-box {
    background: white;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
}

.stat-box h3 {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: #555555;
    margin-bottom: 10px;
}

.stat-box .value {
    font-size: 2.5rem;
    font-weight: 800;
}

@keyframes fadeInModal {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Modal Content Container */
.modal-content {
    background: #ffffff;
    width: 100%;
    max-width: 650px;
    max-height: 90vh;
    border-radius: 28px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden !important;
    display: flex;
    flex-direction: column;
    animation: slideInModal 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 215, 43, 0.1);
}

@keyframes slideInModal {
    from {
        transform: translateY(30px) scale(0.95);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Specific Sizes */
.modal-content.small {
    max-width: 450px;
}

.modal-content.large {
    max-width: 850px;
}

/* Modal Header */
.modal-header {
    background: #ffffff;
    padding: 24px 32px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.modal-user-header {
    background: linear-gradient(to bottom, #f8fafc, #ffffff);
}

.modal-title-icon {
    display: flex !important;
    align-items: center !important;
    gap: 14px;
    font-size: 1.6rem !important;
    font-weight: 900 !important;
    color: #0f172a !important;
    margin: 0 !important;
    letter-spacing: -0.02em;
}

.modal-title-icon i {
    color: #FFD72B;
    background: #0f172a;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 1.3rem;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.15);
}

.modal-close {
    background: #f1f5f9;
    color: #475569;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-close:hover {
    background: #ef4444;
    color: white;
    transform: rotate(90deg) scale(1.1);
}

/* Modal Body / Form Scroll Area */
.modal-body {
    padding: 32px;
    overflow-y: auto;
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f8fafc;
}

/* Form Layout (Improved) */
.user-form-improved {
    display: grid;
    gap: 24px;
}

/* Section Headings inside Forms */
.form-section-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1f5f9;
    margin-bottom: 5px;
    letter-spacing: -0.01em;
}

.form-section-title i {
    color: #FFD72B;
    font-size: 1.2rem;
}

/* Form Groups */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group label i {
    color: #94a3b8;
    font-size: 0.95rem;
}

/* Modern Inputs */
.form-input-focus,
.form-input-disabled,
.modal-body input[type="text"],
.modal-body input[type="email"],
.modal-body input[type="password"],
.modal-body input[type="number"],
.modal-body input[type="tel"],
.modal-body input[type="url"],
.modal-body input[type="date"],
.modal-body select,
.modal-body textarea {
    width: 100%;
    padding: 14px 18px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    font-size: 1rem;
    color: #0f172a;
    transition: all 0.3s ease;
    outline: none;
    box-sizing: border-box;
}

.form-input-focus:focus,
.modal-body input:focus,
.modal-body select:focus,
.modal-body textarea:focus {
    border-color: #FFD72B;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(255, 215, 43, 0.2);
    transform: translateY(-1px);
}

.form-input-disabled {
    background: #f1f5f9 !important;
    color: #64748b !important;
    cursor: not-allowed;
    border-style: dashed;
}

.form-hint {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Checkbox Modernization */
.checkbox-group {
    background: #f8fafc;
    padding: 16px 20px;
    border-radius: 14px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.checkbox-group:hover {
    border-color: #cbd5e1;
    background: #f1f5f9;
}

.checkbox-label {
    cursor: pointer;
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
}

.checkbox-input {
    width: 22px !important;
    height: 22px !important;
    accent-color: #FFD72B;
    cursor: pointer;
}

/* Modal Footer */
.modal-footer {
    padding: 24px 32px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: flex-end;
    gap: 16px;
}

/* Footer Buttons */
.btn-form-cancel {
    background: #ffffff;
    color: #475569;
    border: 2px solid #e2e8f0;
    padding: 12px 24px;
    border-radius: 14px;
    font-weight: 750;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.95rem;
}

.btn-form-cancel:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
    transform: translateY(-1px);
}

.btn-form-submit {
    background: linear-gradient(135deg, #FFD72B, #F5C400) !important;
    color: #1a1a1a !important;
    border: none !important;
    padding: 14px 32px !important;
    border-radius: 14px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    box-shadow: 0 6px 15px rgba(255, 215, 43, 0.4) !important;
    font-size: 1rem !important;
}

.btn-form-submit:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 20px rgba(255, 215, 43, 0.5) !important;
}

.btn-form-submit:active {
    transform: translateY(0);
}

/* Animations Scrollbar */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f8fafc;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Base Buttons used in Modals */
.btn-secondary {
    background: #ffffff;
    color: #475569;
    border: 2px solid #e2e8f0;
    padding: 12px 24px;
    border-radius: 14px;
    font-weight: 750;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-secondary:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 14px;
    font-weight: 750;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.25);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(239, 68, 68, 0.35);
}

@media (max-width: 1024px) {
    .user-name-text {
        display: none;
        /* Hide name on small tablets */
    }
}

@media (max-width: 768px) {
    .admin-info-top {
        margin-left: auto;
        padding-left: 10px;
    }

    .user-info small {
        display: none;
    }
}
/* Logo Slider */
/* Logo Slider */
.logo-slider-section {
    padding: 40px 0;
    overflow: hidden;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    width: 100%;
}

.logo-slider-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
    overflow: visible;
}

.logo-slider-track {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    width: max-content !important;
    animation: scroll-left 60s linear infinite;
    gap: 0;
    padding: 15px 0;
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.slider-item {
    flex: 0 0 220px !important;
    width: 220px !important;
    min-width: 220px !important;
    box-sizing: border-box;
    padding: 0 20px;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center;
}

.slider-image-wrapper {
    width: 120px;
    height: 120px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.slider-item:hover .slider-image-wrapper {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: #FFD72B;
}

.slider-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.slider-item span {
    display: block;
    width: 100%;
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Premium Map Pin */
.frigo-marker-pin {
    width: 44px;
    height: 44px;
    border-radius: 50% 50% 50% 0;
    background: #fff;
    position: absolute;
    transform: rotate(-45deg);
    left: 50%;
    top: 50%;
    margin: -40px 0 0 -22px;
    border: 2px solid #FFD72B;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.frigo-marker-pin::after {
    content: '';
    width: 36px;
    height: 36px;
    background: #fff;
    position: absolute;
    border-radius: 50%;
    z-index: 1;
}

.frigo-marker-pin img {
    width: 28px;
    height: 28px;
    transform: rotate(45deg);
    position: relative;
    z-index: 10;
    object-fit: contain;
}

.frigo-marker-pin:hover {
    transform: rotate(-45deg) scale(1.15);
    box-shadow: 0 6px 15px rgba(0,0,0,0.35);
    z-index: 999 !important;
}

.custom-div-icon {
    background: none !important;
    border: none !important;
}
