/* dashboard/css/style.css */

:root {
    --bg-dark: #121214;
    --sidebar-bg: #1e1e24;
    --card-bg: #232329;
    --border-color: #2e2e38;
    --text-primary: #f5f5f7;
    --text-secondary: #a0a0ab;
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --accent-green: #10b981;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Outfit', 'Inter', sans-serif;
    overflow-x: hidden;
}

/* Sidebar Styles */
.sidebar {
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.sidebar .nav-link {
    color: #e4e4e7 !important; /* Texto luminoso zinc-200 */
    padding: 0.8rem 1.2rem;
    font-weight: 500;
    border-radius: 8px;
    margin: 0.2rem 0.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
}

.sidebar .nav-link:hover, .sidebar .nav-link.active {
    color: #ffffff !important;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.sidebar .nav-link i {
    color: #60a5fa !important; /* Iconos azul luminoso */
}

.sidebar .nav-link:hover i, .sidebar .nav-link.active i {
    color: #ffffff !important; /* Iconos blancos en hover o activo */
}

.sidebar-brand {
    font-weight: 700;
    font-size: 1.25rem;
    background: linear-gradient(to right, #60a5fa, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding: 1.5rem;
}

/* Premium Card Design */
.card-premium {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    border-color: rgba(96, 165, 250, 0.3);
}

/* Input Fields */
.form-control, .form-select {
    background-color: #1e1e24;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 8px;
}

.form-control:focus, .form-select:focus {
    background-color: #1e1e24;
    border-color: var(--accent-blue);
    color: #ffffff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Buttons */
.btn-primary-gradient {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    border: none;
    color: white;
    font-weight: 600;
    transition: filter 0.2s ease;
}

.btn-primary-gradient:hover {
    filter: brightness(1.1);
    color: white;
}

/* Table styling */
.table-premium {
    background-color: var(--card-bg);
    color: var(--text-primary);
    border-radius: 12px;
    overflow: hidden;
}

.table-premium th {
    background-color: #1e1e24;
    border-bottom: 2px solid var(--border-color);
    color: var(--text-secondary);
    font-weight: 600;
}

.table-premium td {
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

/* Receipt / Ticket print styles */
@media print {
    body {
        background-color: #ffffff !important;
        color: #000000 !important;
        margin: 0;
        padding: 0;
        font-family: 'Courier New', Courier, monospace;
        font-size: 12px;
    }
    .no-print {
        display: none !important;
    }
    .ticket-container {
        width: 80mm;
        max-width: 80mm;
        margin: 0;
        padding: 5mm;
        box-shadow: none !important;
        border: none !important;
    }
}

.ticket-container {
    width: 80mm;
    background-color: #ffffff;
    color: #000000;
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.ticket-header {
    text-align: center;
    margin-bottom: 10px;
    border-bottom: 1px dashed #000;
    padding-bottom: 10px;
}

.ticket-footer {
    text-align: center;
    margin-top: 15px;
    border-top: 1px dashed #000;
    padding-top: 10px;
    font-size: 11px;
}

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

.ticket-table th, .ticket-table td {
    text-align: left;
    padding: 3px 0;
}

.ticket-table th.text-end, .ticket-table td.text-end {
    text-align: right;
}

/* Category Badges */
.badge-comida {
    background-color: #3b82f620;
    color: #60a5fa;
    border: 1px solid #3b82f640;
}

.badge-bebida {
    background-color: #10b98120;
    color: #34d399;
    border: 1px solid #10b98140;
}

.badge-trago {
    background-color: #8b5cf620;
    color: #a78bfa;
    border: 1px solid #8b5cf640;
}

/* Micro-animations */
.fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

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

/* Legibilidad y Contraste Luminous en Fondos Oscuros */
.sidebar .text-secondary, 
.card-premium .text-secondary, 
.modal-content .text-secondary,
.profile-section .text-secondary,
.form-text {
    color: #cbd5e1 !important; /* Slate-300 gris luminoso muy legible */
}

.form-label, 
.form-check-label, 
.modal-body label,
.card-premium label,
label {
    color: #f1f5f9 !important; /* Slate-100 blanco/gris muy claro */
    font-weight: 500;
}

/* Conservar texto negro/oscuro absoluto dentro de contenedores blancos como el ticket */
.ticket-container, 
.ticket-container *,
.ticket-table td,
.ticket-table th {
    color: #000000 !important;
}

