/* --- CONFIGURACIÓN DE COLORES Y VARIABLES --- */
:root {
    --primary: #6366f1;         /* Índigo Vibrante */
    --primary-dark: #4f46e5;
    --secondary: #ec4899;       /* Rosa fucsia para detalles */
    --success: #10b981;        /* Esmeralda */
    --warning: #f59e0b;        /* Ámbar */
    --danger: #ef4444;         /* Coral */
    --dark-deep: #1e1b4b;      /* Azul noche para Sidebar */
    --bg-app: #f1f5f9;         /* Fondo suave */
    --glass: rgba(255, 255, 255, 0.9);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.1);
}

/* --- BASE Y RESPONSIVE --- */
body {
    background-color: var(--bg-app);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #1e293b;
    overflow-x: hidden;
}
nav{
    background-color: var(--dark-deep);
}

/* --- SIDEBAR RESPONSIVE --- */
.sidebar {
    background: var(--dark-deep) !important;
    min-height: 100vh;
    transition: all 0.3s;
    z-index: 1000;
}

.sidebar .nav-link {
    color: #a5b4fc !important;
    padding: 12px 20px;
    margin: 5px 15px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white !important;
}

.sidebar .nav-link.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

/* Ajuste móvil para Sidebar */
@media (max-width: 768px) {
    .sidebar {
        width: 100% !important;
        min-height: auto;
        position: relative;
    }
}

/* --- TARJETAS Y CONTENEDORES --- */
.card {
    border: none !important;
    border-radius: 16px !important;
    box-shadow: var(--shadow-md) !important;
    background: var(--glass) !important;
    backdrop-filter: blur(10px);
    margin-bottom: 20px;
}

.card-header {
    background: transparent !important;
    border-bottom: 1px solid rgba(0,0,0,0.05) !important;
    padding: 20px !important;
}

/* --- TABLAS RESPONSIVE --- */
.table-responsive {
    border-radius: 12px;
    overflow: hidden;
    background: white;
}

.table thead th {
    background-color: #eef2ff !important;
    color: var(--primary) !important;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.1em;
    padding: 15px !important;
    border: none !important;
}

.table tbody td {
    padding: 12px 15px !important;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
}

/* --- FORMULARIOS --- */
.form-label {
    font-weight: 600;
    color: #475569;
    font-size: 0.85rem;
}

.form-control, .form-select {
    border: 2px solid #e2e8f0 !important;
    border-radius: 10px !important;
    padding: 10px 15px !important;
    transition: all 0.2s !important;
}

.form-control:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1) !important;
}

/* Estilo especial para el Vale Informativo */
input[readonly] {
    background-color: #fffbeb !important;
    border: 2px dashed var(--warning) !important;
    color: #92400e !important;
    font-weight: bold;
}

/* --- BOTONES VIBRANTES --- */
.btn {
    border-radius: 12px !important;
    padding: 10px 20px !important;
    font-weight: 600 !important;
    transition: all 0.3s !important;
}

.btn-success {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    border: none !important;
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1, #4f46e5) !important;
    border: none !important;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important;
}

/* --- TOTAL TICKET (ZONA POS) --- */
.total-display {
    background: #1e293b;
    color: #38bdf8;
    padding: 20px;
    border-radius: 16px;
    text-align: right;
    border-left: 8px solid var(--primary);
}

.total-display h4 {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

/* --- MODALES --- */
.modal-content {
    border-radius: 20px !important;
    border: none !important;
}

.modal-header {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    border-radius: 20px 20px 0 0 !important;
}

/* --- LOGO DE TEXTO MODERNO --- */
.logo-text {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    margin: 0;
    letter-spacing: -1px;
    color: #ffffff; /* Color principal */
    display: flex;
    align-items: center;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.logo-text span {
    background: linear-gradient(135deg, #9a9aec 0%, #8f5874 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-left: 2px;
}

/* El Badge de versión ahora más estilizado para encajar con el texto */
.app-version-badge {
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.7rem;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 3px 10px;
    border-radius: 6px;
    font-weight: 600;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    align-self: center;
}

/* Efecto hover sutil para el logo */
.logo-wrapper:hover .logo-text {
    transform: scale(1.02);
    transition: transform 0.2s ease;
}

/* Créditos sutiles */
.credits-text {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Ajuste para que el logo no se vea pegado en móviles */
@media (max-width: 576px) {
    #log-empre {
        max-height: 30px;
    }
    .app-version-badge {
        font-size: 0.65rem;
    }
}

.footer-app-text {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 2rem;
}

.footer-app-text .brand {
    font-weight: 700;
    color: var(--primary);
}

.footer-app-text .version-tag {
    background: #e2e8f0;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
    margin-left: 5px;
}
