/* ===== TABS NAVIGATION (ADMIN) ===== */
.tabs-nav {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    justify-content: flex-start;
}
.tab-btn {
    background: var(--bg-card);
    color: var(--text-light);
    border: none;
    border-radius: 12px 12px 0 0;
    padding: 0.85em 2.2em;
    font-size: 1.08em;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0,217,255,0.08);
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    position: relative;
    outline: none;
}
.tab-btn:not(.active):hover {
    background: rgba(244,151,244,0.13);
    color: var(--primary);
    box-shadow: 0 4px 16px rgba(244,151,244,0.10);
}
.tab-btn.active {
    background: #2a2a44;
    color: var(--text-light);
    box-shadow: 0 6px 24px rgba(0,217,255,0.10);
    z-index: 2;
}
/* ===== ORDERS FILTER (MODAL) ===== */
.orders-filter {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 20px;
    padding: 1rem;
    background: rgba(0, 217, 255, 0.05);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    flex-wrap: wrap;
}
.orders-filter label {
    font-weight: 600;
    color: var(--primary);
    font-size: 1.05em;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.5em;
}
.orders-filter label i {
    font-size: 1.2em;
    color: var(--accent);
}
.orders-filter select {
    padding: 0.6em 1.2em;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-light);
    font-size: 0.95em;
    font-weight: 500;
    outline: none;
    transition: all 0.2s;
    cursor: pointer;
}
.orders-filter select:focus,
.orders-filter select:hover {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(244, 151, 244, 0.15);
}
.orders-count {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5em 1em;
    background: rgba(244, 151, 244, 0.1);
    border-radius: 8px;
    color: var(--accent);
    font-size: 0.95em;
}
/* ===== ORDERS TABLE (MODAL) ===== */
.orders-table-wrapper {
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 217, 255, 0.1);
    margin-bottom: 1.5rem;
    overflow-x: auto;
    overflow-y: visible;
    transform: rotateX(180deg);
}
.orders-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    min-width: 1200px;
    transform: rotateX(180deg);
}
.orders-table thead {
    background: linear-gradient(90deg, rgba(102, 221, 243, 0.2) 0%, rgba(244, 151, 244, 0.2) 100%);
    backdrop-filter: blur(10px);
}
.orders-table th {
    padding: 0.9rem 0.7rem;
    color: var(--primary);
    font-weight: 700;
    text-align: left;
    letter-spacing: 0.5px;
    font-size: 0.88em;
    text-transform: uppercase;
    border-bottom: 2px solid rgba(102, 221, 243, 0.3);
    white-space: nowrap;
}
.orders-table tbody tr {
    background: var(--bg-card);
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 217, 255, 0.1);
}
.orders-table tbody tr:hover {
    background: rgba(102, 221, 243, 0.05);
    box-shadow: 0 2px 8px rgba(102, 221, 243, 0.15);
}
.orders-table td {
    padding: 0.9rem 0.7rem;
    color: var(--text-secondary);
    vertical-align: top;
    font-size: 0.88em;
}
.orders-table td strong {
    color: var(--text-light);
}

/* Customer Info Styles - Orders Table Specific */
.orders-table .customer-info {
    min-width: 190px;
}
.orders-table .customer-name {
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.95em;
}
.orders-table .customer-name i {
    color: var(--primary);
    font-size: 0.9em;
}
.orders-table .customer-contact {
    font-size: 0.82em;
    margin-bottom: 0.18rem;
}
.orders-table .customer-contact a {
    color: var(--text-secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: color 0.2s;
}
.orders-table .customer-contact a:hover {
    color: var(--primary);
}
.orders-table .customer-contact i {
    font-size: 0.9em;
}

/* Products List Styles - Orders Table Specific */
.orders-table .products-cell {
    min-width: 240px;
}
.orders-table .products-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.orders-table .products-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(0, 217, 255, 0.08);
    gap: 0.45rem;
}
.orders-table .products-list li:last-child {
    border-bottom: none;
}
.orders-table .product-name {
    flex: 1;
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.95em;
}
.orders-table .product-qty {
    color: var(--accent);
    font-weight: 600;
    padding: 0.18em 0.45em;
    background: rgba(244, 151, 244, 0.1);
    border-radius: 4px;
    font-size: 0.88em;
}
.orders-table .product-price {
    color: var(--primary);
    font-weight: 600;
    min-width: 58px;
    text-align: right;
    font-size: 0.9em;
}

/* Order Total & Date - Orders Table Specific */
.orders-table .order-total {
    font-size: 1.1em;
    color: var(--success);
    white-space: nowrap;
}
.orders-table .order-date {
    color: var(--text-secondary);
    font-size: 0.85em;
    white-space: nowrap;
}

/* Status Badges - Orders Table Specific */
.orders-table .status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.38em 0.75em;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.82em;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: nowrap;
}
.orders-table .status-badge i {
    font-size: 1em;
}
.orders-table .status-pendiente {
    background: rgba(255, 170, 0, 0.2);
    color: #ffaa00;
    border: 1px solid rgba(255, 170, 0, 0.4);
}
.orders-table .status-reserva {
    background: rgba(0, 170, 255, 0.2);
    color: #00aaff;
    border: 1px solid rgba(0, 170, 255, 0.4);
}
.orders-table .status-pagado {
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
    border: 1px solid rgba(0, 255, 136, 0.4);
}
.orders-table .status-cancelado {
    background: rgba(255, 0, 102, 0.2);
    color: #ff0066;
    border: 1px solid rgba(255, 0, 102, 0.4);
}

/* Payment Method Badges - Orders Table Specific */
.orders-table .payment-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.38em 0.75em;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.82em;
    white-space: nowrap;
}
.orders-table .payment-badge i {
    font-size: 1em;
}
.orders-table .payment-transfer {
    background: rgba(102, 221, 243, 0.15);
    color: var(--primary);
    border: 1px solid rgba(102, 221, 243, 0.3);
}
.orders-table .payment-cash {
    background: rgba(0, 255, 136, 0.15);
    color: var(--success);
    border: 1px solid rgba(0, 255, 136, 0.3);
}

/* Countdown Timer - Orders Table Specific */
.orders-table .countdown-cell {
    text-align: center;
}
.orders-table .countdown-timer {
    display: inline-block;
    padding: 0.4em 0.8em;
    background: rgba(255, 170, 0, 0.15);
    color: #ffaa00;
    border-radius: 6px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    border: 1px solid rgba(255, 170, 0, 0.3);
}
.orders-table .no-timer {
    color: var(--text-secondary);
    opacity: 0.5;
}

/* Comprobante - Orders Table Specific */
.orders-table .comprobante-cell {
    text-align: center;
}
.orders-table .comprobante-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    text-decoration: none;
    transition: transform 0.2s;
}
.orders-table .comprobante-link:hover {
    transform: scale(1.05);
}
.orders-table .comprobante-thumb {
    max-width: 65px;
    max-height: 65px;
    border-radius: 7px;
    border: 2px solid rgba(102, 221, 243, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    object-fit: cover;
}
.orders-table .comprobante-text {
    font-size: 0.78em;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.28rem;
}
.orders-table .no-comprobante {
    color: var(--text-secondary);
    opacity: 0.5;
    font-size: 0.85em;
}

/* Action Buttons - Orders Table Specific */
.orders-table .actions-cell {
    text-align: center;
    white-space: nowrap;
}
.orders-table .btn-action {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45em 0.9em;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.82em;
    cursor: pointer;
    transition: all 0.2s;
    margin: 0.18rem;
}
.orders-table .btn-confirm {
    background: linear-gradient(135deg, #00ff88, #00cc6f);
    color: #0a0a0f;
    box-shadow: 0 2px 8px rgba(0, 255, 136, 0.3);
}
.orders-table .btn-confirm:hover {
    background: linear-gradient(135deg, #00ff88, #00ff88);
    box-shadow: 0 4px 12px rgba(0, 255, 136, 0.5);
    transform: translateY(-1px);
}
.orders-table .btn-cancel {
    background: linear-gradient(135deg, #ff0066, #cc0052);
    color: #fff;
    box-shadow: 0 2px 8px rgba(255, 0, 102, 0.3);
}
.orders-table .btn-cancel:hover {
    background: linear-gradient(135deg, #ff0066, #ff0066);
    box-shadow: 0 4px 12px rgba(255, 0, 102, 0.5);
    transform: translateY(-1px);
}
.orders-table .badge-confirmed,
.orders-table .badge-cancelled {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.38em 0.75em;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.82em;
}
.orders-table .badge-confirmed {
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
    border: 1px solid rgba(0, 255, 136, 0.4);
}
.orders-table .badge-cancelled {
    background: rgba(255, 0, 102, 0.2);
    color: #ff0066;
    border: 1px solid rgba(255, 0, 102, 0.4);
}

/* ===== MOBILE CARDS VIEW ===== */
.orders-cards-mobile {
    display: none;
}

.order-card-mobile {
    background: var(--bg-card);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}
.order-card-mobile:hover {
    box-shadow: 0 6px 24px rgba(102, 221, 243, 0.2);
    transform: translateY(-2px);
}
.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(0, 217, 255, 0.2);
}
.order-card-id {
    font-size: 1.2em;
    font-weight: 700;
    color: var(--primary);
}
.order-card-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.85em;
    margin-bottom: 0.8rem;
}
.order-card-customer {
    margin-bottom: 0.8rem;
    padding: 0.8rem;
    background: rgba(102, 221, 243, 0.05);
    border-radius: 8px;
    border-left: 3px solid var(--primary);
}
.order-card-customer > div {
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.order-card-customer a {
    color: var(--text-secondary);
    text-decoration: none;
}
.order-card-customer a:hover {
    color: var(--primary);
}
.order-card-products {
    margin-bottom: 0.8rem;
}
.order-card-products strong {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--text-light);
}
.order-card-products ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.order-card-products li {
    padding: 0.4rem;
    background: rgba(0, 217, 255, 0.05);
    margin-bottom: 0.3rem;
    border-radius: 4px;
    font-size: 0.9em;
}
.order-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(0, 217, 255, 0.2);
}
.order-card-total {
    font-size: 1.1em;
    color: var(--success);
}
.order-card-countdown {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem;
    background: rgba(255, 170, 0, 0.15);
    border-radius: 8px;
    margin-bottom: 0.8rem;
    color: #ffaa00;
    font-weight: 600;
}
.order-card-comprobante {
    margin-bottom: 0.8rem;
    text-align: center;
}
.order-card-comprobante a {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}
.order-card-comprobante img {
    max-width: 150px;
    border-radius: 8px;
    border: 2px solid rgba(102, 221, 243, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.order-card-comprobante span {
    color: var(--primary);
    font-size: 0.9em;
}
.order-card-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.order-card-actions .btn-action {
    flex: 1;
    justify-content: center;
    min-width: 120px;
}

/* Responsive */
@media (max-width: 1400px) {
    .orders-table-wrapper {
        display: none;
    }
    .orders-cards-mobile {
        display: block;
    }
    .orders-filter {
        flex-direction: column;
        align-items: flex-start;
    }
    .orders-count {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 1024px) {
    .products-table,
    .orders-table {
        min-width: 900px;
        font-size: 0.85em;
    }
    
    .products-table th,
    .products-table td,
    .orders-table th,
    .orders-table td {
        padding: 0.7rem 0.5rem;
    }
}

@media (max-width: 768px) {
    .products-table {
        min-width: 800px;
        font-size: 0.82em;
    }
    
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 8px;
    }
    
    .tabs-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 0.5rem;
    }
    
    .tab-btn {
        padding: 0.7em 1.5em;
        font-size: 0.95em;
        white-space: nowrap;
    }
}
/**
 * ============================================================================
 * PANEL DE ADMINISTRACIÓN - ESTILOS
 * ============================================================================
 * Tema tecnológico oscuro con acentos cyan/magenta
 */

:root {
    --primary: #66ddf3e6;
    --accent: #f497f4e3;
    --bg-dark: #0a0a0f;
    --bg-card: #16162a;
    --text-light: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --border-color: rgba(0, 217, 255, 0.2);
    --success: #00ff88;
    --danger: #ff0066;
    --warning: #ffaa00;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #0a0a0f 0%, #16162a 100%);
    color: var(--text-light);
    min-height: 100vh;
}

/* ===== HEADER ===== */
.admin-header {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.15), rgba(255, 0, 255, 0.1));
    border-bottom: 2px solid var(--border-color);
    padding: 1.5rem 2rem;
    position: sticky;
    top: 0;
    z-index: 999;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 217, 255, 0.2);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.brand-info h1 {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), #00a8cc);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.2rem;
}

.subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.header-actions {
    display: flex;
    gap: 1rem;
}

.btn-icon {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--border-color);
    color: var(--primary);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-icon:hover {
    background: rgba(0, 217, 255, 0.2);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.4);
    transform: scale(1.1);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 217, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
}

.user-info i {
    font-size: 1.2rem;
    color: var(--primary);
}

.btn-logout {
    background: rgba(255, 0, 102, 0.15);
    border: 1px solid rgba(255, 0, 102, 0.3);
}

.btn-logout:hover {
    background: rgba(255, 0, 102, 0.25);
    border-color: rgba(255, 0, 102, 0.5);
    box-shadow: 0 0 20px rgba(255, 0, 102, 0.3);
}

/* ===== DROPDOWN MENU ===== */
.dropdown-menu {
    position: relative;
    display: inline-block;
}

.dropdown-menu .btn-icon {
    cursor: pointer;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    background: linear-gradient(135deg, rgba(22, 22, 42, 0.98), rgba(26, 26, 50, 0.98));
    min-width: 220px;
    box-shadow: 0 8px 30px rgba(0, 217, 255, 0.3);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    z-index: 1000;
    overflow: hidden;
    animation: fadeInDown 0.3s ease;
}

.dropdown-content a {
    color: var(--text-primary);
    padding: 12px 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    border-bottom: 1px solid var(--border-color);
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.15), rgba(255, 0, 255, 0.1));
    padding-left: 25px;
    color: var(--primary);
}

.dropdown-content a i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== CONTAINER ===== */
.admin-container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
}

/* ===== STATS GRID ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, rgba(22, 22, 42, 0.9), rgba(26, 26, 50, 0.9));
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 217, 255, 0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 217, 255, 0.2);
    border-color: var(--primary);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 217, 255, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-light);
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.3);
}

/* ===== ACTIONS BAR ===== */
.actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #00a8cc);
    color: var(--text-light);
    border: none;
    padding: 0.9rem 2rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 217, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 217, 255, 0.5);
}

.search-box {
    background: rgba(22, 22, 42, 0.8);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 0.8rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 300px;
}

.search-box i {
    color: var(--primary);
    font-size: 1.1rem;
}

.search-box input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-light);
    font-size: 0.95rem;
    width: 100%;
}

.search-box input::placeholder {
    color: var(--text-secondary);
}

/* ===== TABLE ===== */
.table-container {
    background: rgba(22, 22, 42, 0.6);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 217, 255, 0.15);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Scrollbar personalizado para table-container */
.table-container::-webkit-scrollbar {
    height: 8px;
}

.table-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

.products-table {
    width: 100%;
    border-collapse: collapse;
}

.products-table thead {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.15), rgba(255, 0, 255, 0.1));
}

.products-table th {
    padding: 1.2rem 1rem;
    text-align: left;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    border-bottom: 2px solid var(--border-color);
}

.products-table tbody tr {
    border-bottom: 1px solid rgba(0, 217, 255, 0.1);
    transition: all 0.3s ease;
}

.products-table tbody tr:hover {
    background: rgba(0, 217, 255, 0.05);
}

.products-table td {
    padding: 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.product-image-cell {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: contain;
    background: rgba(10, 10, 20, 0.5);
    padding: 0.3rem;
    border: 1px solid var(--border-color);
}

.badge {
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-samsung { background: rgba(0, 123, 255, 0.2); color: #0080ff; }
.badge-lg { background: rgba(220, 53, 69, 0.2); color: #ff5566; }
.badge-midea { background: rgba(255, 193, 7, 0.2); color: #ffaa00; }
.badge-carrier { background: rgba(40, 167, 69, 0.2); color: #00ff88; }

.badge-power { background: rgba(255, 0, 255, 0.2); color: var(--accent); }
.badge-control { background: rgba(0, 217, 255, 0.2); color: var(--primary); }
.badge-display { background: rgba(0, 255, 136, 0.2); color: var(--success); }

/* Badges para módulo de finanzas */
.badge-venta { background: rgba(0, 255, 136, 0.2); color: var(--success); }
.badge-reparacion { background: rgba(0, 217, 255, 0.2); color: var(--primary); }
.badge-chequeo { background: rgba(255, 170, 0, 0.2); color: var(--warning); }

.badge-payment { background: rgba(255, 0, 255, 0.15); color: var(--accent); }
.badge-service { background: rgba(0, 217, 255, 0.15); color: var(--primary); }

.badge-expense-materiales_taller { background: rgba(255, 0, 102, 0.2); color: var(--danger); }
.badge-expense-materiales_gastables { background: rgba(255, 170, 0, 0.2); color: var(--warning); }
.badge-expense-mensajero { background: rgba(138, 43, 226, 0.2); color: #a855f7; }
.badge-expense-otros { background: rgba(0, 217, 255, 0.2); color: var(--primary); }

.stock-badge {
    padding: 0.3rem 0.7rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.85rem;
}

.stock-high { background: rgba(0, 255, 136, 0.2); color: var(--success); }
.stock-medium { background: rgba(255, 170, 0, 0.2); color: var(--warning); }
.stock-low { background: rgba(255, 0, 102, 0.2); color: var(--danger); }

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-edit, .btn-delete {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    color: var(--primary);
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-edit:hover {
    background: rgba(0, 217, 255, 0.2);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.4);
}

.btn-delete {
    color: var(--danger);
}

.btn-delete:hover {
    background: rgba(255, 0, 102, 0.2);
    border-color: var(--danger);
    box-shadow: 0 0 15px rgba(255, 0, 102, 0.4);
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    background: linear-gradient(135deg, rgba(22, 22, 42, 0.95), rgba(26, 26, 50, 0.95));
    border: 2px solid var(--border-color);
    border-radius: 20px;
    max-width: 1100px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 0 60px rgba(0, 217, 255, 0.3);
    animation: modalSlideUp 0.4s ease;
}

.modal-small {
    max-width: 500px;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 2rem;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.modal-close {
    background: rgba(255, 0, 100, 0.2);
    border: 2px solid rgba(255, 0, 255, 0.3);
    color: var(--accent);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 0, 100, 0.4);
    transform: rotate(90deg);
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.6);
}

.modal-body {
    padding: 2rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(10, 10, 20, 0.5);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.8rem;
    color: var(--text-light);
    font-size: 0.95rem;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.3);
}

/* Estilos para múltiples imágenes */
.images-input-container {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

#imagesInputs {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.image-input-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.image-url-input {
    flex: 1;
    background: rgba(10, 10, 20, 0.5);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.8rem;
    color: var(--text-light);
    font-size: 0.95rem;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
}

.image-url-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.3);
}

.btn-remove-image {
    background: rgba(220, 53, 69, 0.2);
    border: 2px solid rgba(220, 53, 69, 0.4);
    color: #dc3545;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.btn-remove-image:hover {
    background: rgba(220, 53, 69, 0.3);
    border-color: #dc3545;
    transform: scale(1.05);
}

.btn-add-image {
    background: rgba(0, 217, 255, 0.1);
    border: 2px dashed var(--primary);
    color: var(--primary);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
}

.btn-add-image:hover {
    background: rgba(0, 217, 255, 0.2);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.3);
}

.form-hint {
    font-size: 0.85rem;
    color: var(--text-secondary);
    opacity: 0.7;
    margin-top: 0.3rem;
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 2px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--border-color);
    color: var(--text-light);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger), #cc0050);
    border: none;
    color: var(--text-light);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 0, 102, 0.5);
}

.delete-warning {
    text-align: center;
    padding: 2rem 1rem;
}

.delete-warning i {
    font-size: 4rem;
    color: var(--danger);
    margin-bottom: 1rem;
}

.delete-warning .product-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin: 1rem 0;
}

.warning-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ===== TOAST ===== */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.9), rgba(0, 150, 200, 0.9));
    color: var(--text-light);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 600;
    box-shadow: 0 8px 30px rgba(0, 217, 255, 0.4);
    transform: translateX(400px);
    transition: transform 0.4s ease;
    z-index: 2000;
}

.toast.show {
    transform: translateX(0);
}

.toast i {
    font-size: 1.5rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .admin-container {
        padding: 0 1rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .actions-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        min-width: auto;
    }
    
    .table-container {
        overflow-x: auto;
    }
    
    .products-table {
        min-width: 800px;
    }
}

/* ===== PASSWORD MODAL ===== */
.password-modal {
    max-width: 500px;
}

.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper input {
    flex: 1;
    padding-right: 3rem;
}

.toggle-password-btn {
    position: absolute;
    right: 0.8rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.toggle-password-btn:hover {
    color: var(--primary);
}

.toggle-password-btn i {
    font-size: 1.1rem;
}

.form-hint {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.form-group label i {
    margin-right: 0.5rem;
    color: var(--primary);
}

/* ===== PERMISSIONS STYLING ===== */
.permissions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.permission-group {
    background: rgba(10, 10, 20, 0.3);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 1.2rem;
}

.permission-group h4 {
    color: var(--primary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
}

.permission-group h4 i {
    font-size: 1.1rem;
}

.permission-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    padding: 0.4rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.permission-item:hover {
    background: rgba(0, 217, 255, 0.05);
}

.permission-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
}

.permission-item label {
    cursor: pointer;
    font-size: 0.9rem;
    margin: 0 !important;
    color: var(--text-light) !important;
    font-weight: 500 !important;
    user-select: none;
    text-align: center;
}

.text-truncate {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================================================
   MENÚ HAMBURGUESA ADMIN
   ============================================================================ */

/* Botón Hamburguesa Admin */
.hamburger-btn-admin {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
    flex-shrink: 0;
}

.hamburger-btn-admin span {
    width: 100%;
    height: 3px;
    background: linear-gradient(135deg, #00d9ff 0%, #ff00ff 100%);
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
}

.hamburger-btn-admin:hover span {
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.8);
}

.hamburger-btn-admin.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-btn-admin.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.hamburger-btn-admin.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Menú Lateral Admin */
.mobile-menu-admin {
    position: fixed;
    top: 0;
    left: -320px;
    width: 320px;
    height: 100vh;
    background: linear-gradient(180deg, rgba(10, 10, 15, 0.98) 0%, rgba(5, 5, 10, 0.98) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1002;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 5px 0 30px rgba(0, 0, 0, 0.5);
    border-right: 2px solid rgba(0, 217, 255, 0.2);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.mobile-menu-admin.active {
    left: 0;
}

/* Header del menú */
.mobile-menu-admin .mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 2px solid rgba(0, 217, 255, 0.15);
    background: rgba(0, 217, 255, 0.05);
}

.mobile-menu-admin .mobile-menu-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mobile-menu-admin .mobile-menu-logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.mobile-menu-admin .mobile-menu-logo h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    background: linear-gradient(135deg, #00d9ff 0%, #ff00ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mobile-menu-admin .mobile-menu-logo p {
    margin: 0;
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.mobile-menu-admin .close-menu-btn {
    background: transparent;
    border: none;
    color: var(--primary);
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-menu-admin .close-menu-btn:hover {
    background: rgba(0, 217, 255, 0.1);
    transform: rotate(90deg);
}

/* Lista del menú */
.mobile-menu-admin .mobile-menu-list {
    list-style: none;
    padding: 1rem 0;
    margin: 0;
    flex: 1;
}

.mobile-menu-admin .mobile-menu-list li {
    margin: 0;
}

.mobile-menu-admin .menu-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.mobile-menu-admin .menu-item i {
    font-size: 1.3rem;
    color: var(--primary);
    transition: all 0.3s ease;
    min-width: 24px;
}

.mobile-menu-admin .menu-item span {
    flex: 1;
}

.mobile-menu-admin .menu-item:hover {
    background: rgba(0, 217, 255, 0.1);
    padding-left: 2rem;
}

.mobile-menu-admin .menu-item:hover i {
    transform: scale(1.2);
    filter: drop-shadow(0 0 10px rgba(0, 217, 255, 0.8));
}

.mobile-menu-admin .menu-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(135deg, #00d9ff 0%, #ff00ff 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.mobile-menu-admin .menu-item:hover::before {
    transform: scaleY(1);
}

.mobile-menu-admin .menu-item-logout {
    color: #ff4444;
}

.mobile-menu-admin .menu-item-logout i {
    color: #ff4444;
}

.mobile-menu-admin .menu-divider {
    height: 1px;
    background: rgba(0, 217, 255, 0.1);
    margin: 0.5rem 1.5rem;
}

/* Footer del menú con stats */
.mobile-menu-admin .mobile-menu-footer {
    padding: 1.5rem;
    border-top: 2px solid rgba(0, 217, 255, 0.15);
    background: rgba(0, 217, 255, 0.03);
}

.stats-mobile {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.stat-mobile {
    background: rgba(0, 217, 255, 0.05);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 8px;
    padding: 0.75rem;
    text-align: center;
}

.stat-mobile i {
    font-size: 1.5rem;
    color: var(--primary);
    display: block;
    margin-bottom: 0.25rem;
}

.stat-mobile span {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    display: block;
}

.stat-mobile small {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.mobile-menu-admin .copyright {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin: 0;
}

/* Overlay del menú admin */
.menu-overlay-admin {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-overlay-admin.active {
    opacity: 1;
    visibility: visible;
}

/* Responsive Admin */
@media (max-width: 1024px) {
    .hamburger-btn-admin {
        display: flex !important;
    }
    
    .header-actions {
        display: none;
    }
    
    .brand-info h1 {
        font-size: 1.2rem;
    }
    
    .subtitle {
        font-size: 0.75rem;
    }
    
    /* Stats Grid - Tablet */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-admin {
        width: 280px;
        left: -280px;
    }
    
    .brand {
        gap: 0.5rem;
    }
    
    .logo {
        width: 40px;
        height: 40px;
    }
    
    .brand-info h1 {
        font-size: 1rem;
    }
    
    .subtitle {
        display: none;
    }
    
    .admin-header {
        padding: 1rem;
    }
    
    /* Stats Grid - Móvil */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
}

/* ===== MODAL COMPROBANTE ===== */
.comprobante-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.comprobante-modal-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 217, 255, 0.3);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.comprobante-modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10001;
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
}

.comprobante-modal-close:hover,
.comprobante-modal-close:focus {
    color: var(--primary);
    transform: scale(1.2);
}
