/* assets/css/app.css - Estilos corporativos Angel Divino Bus S.A.C. */
:root {
    --adb-purple: #59258b;
    --adb-purple-light: #7c3aed;
    --adb-purple-dark: #3b1461;
    --adb-teal: #00baa4;
    --adb-teal-dark: #008f7d;
    --adb-teal-light: #4de2d1;
    --adb-bg: #f8fafc;
    --adb-card-bg: #ffffff;
    --adb-text: #1e293b;
    --adb-muted: #64748b;
    --adb-border: #e2e8f0;
    --adb-success: #10b981;
    --adb-warning: #f59e0b;
    --adb-danger: #ef4444;
}

body {
    background-color: var(--adb-bg);
    color: var(--adb-text);
    font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    min-height: 100vh;
}

/* Navbar & Brand - Ultra-sleek single-row layout */
/* Navbar & Brand - Ultra-sleek single-row layout */
.navbar-adb-top {
    background: linear-gradient(135deg, #270c47 0%, #3d1468 45%, #59258b 100%);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
    height: 50px;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1030;
    display: flex;
    align-items: center;
    overflow: visible !important;
}

.adb-navbar-inner {
    width: 100%;
    padding: 0 0.85rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    height: 100%;
    flex-wrap: nowrap;
    overflow: visible !important;
}

/* Brand */
.adb-nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #fff;
    flex-shrink: 0;
    white-space: nowrap;
}
.adb-nav-brand:hover {
    color: #fff;
}
.adb-nav-logo {
    height: 28px;
    width: auto;
    background: #fff;
    padding: 2px 5px;
    border-radius: 5px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.adb-nav-brand-text {
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: -0.2px;
    color: #ffffff;
}

/* Nav Menu Items - Single Row */
.adb-nav-menu {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    flex-grow: 1;
    justify-content: center;
    flex-wrap: nowrap;
    white-space: nowrap;
    overflow: visible !important;
}

.adb-nav-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0.28rem 0.48rem;
    border-radius: 7px;
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    font-size: 0.79rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.15s ease-in-out;
    line-height: 1;
}

.adb-nav-item i {
    font-size: 0.82rem;
    opacity: 0.9;
}

.adb-nav-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
}

.adb-nav-item.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.25);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

/* Nav Actions (Right) */
.adb-nav-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    white-space: nowrap;
    overflow: visible !important;
}

.adb-btn-action {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0.28rem 0.6rem;
    border-radius: 16px;
    font-size: 0.77rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1;
    transition: all 0.2s ease;
}

.adb-btn-kiosco {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.08);
}
.adb-btn-kiosco:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.22);
    border-color: #fff;
}

.adb-btn-qr {
    color: #38bdf8;
    border: 1px solid #38bdf8;
    background: rgba(56, 189, 248, 0.1);
}
.adb-btn-qr:hover {
    color: #fff;
    background: #0284c7;
    border-color: #0284c7;
}

.adb-user-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.28rem 0.65rem;
    border-radius: 16px;
    background: #ffffff;
    color: #1e293b;
    border: none;
    font-size: 0.79rem;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    line-height: 1;
    cursor: pointer;
}
.adb-user-pill:hover, .adb-user-pill:focus {
    background: #f8fafc;
    color: #0f172a;
}

.adb-profile-wrapper {
    position: relative !important;
    display: inline-block !important;
}

.adb-custom-menu {
    display: none;
    position: absolute !important;
    top: calc(100% + 8px) !important;
    right: 0 !important;
    width: 250px !important;
    background: #ffffff !important;
    border-radius: 12px !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25) !important;
    border: 1px solid #e2e8f0 !important;
    z-index: 9999999 !important;
    padding: 6px 0 !important;
}

.adb-custom-menu.is-active {
    display: block !important;
}

.adb-menu-header {
    padding: 10px 14px !important;
    background: #f8fafc !important;
    border-bottom: 1px solid #f1f5f9 !important;
    margin-bottom: 4px !important;
}

.adb-menu-item {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 8px 14px !important;
    font-size: 0.82rem !important;
    color: #334155 !important;
    text-decoration: none !important;
    transition: background 0.15s ease !important;
    font-weight: 500 !important;
    cursor: pointer !important;
}

.adb-menu-item:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}

.adb-menu-item i {
    width: 18px !important;
    text-align: center !important;
    font-size: 0.9rem !important;
}

.adb-menu-divider {
    height: 1px !important;
    background: #f1f5f9 !important;
    margin: 4px 0 !important;
}


/* Cards & Layout */
.adb-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--adb-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.adb-card:hover {
    box-shadow: 0 8px 30px rgba(89, 37, 139, 0.08);
}

.card-header-adb {
    background: #fff;
    border-bottom: 1px solid var(--adb-border);
    padding: 1.25rem 1.5rem;
    font-weight: 700;
    color: var(--adb-purple);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Primary Buttons */
.btn-adb-primary {
    background: linear-gradient(135deg, var(--adb-purple) 0%, #7c3aed 100%);
    color: #fff;
    border: none;
    font-weight: 600;
    padding: 0.65rem 1.4rem;
    border-radius: 10px;
    transition: all 0.25s ease;
}

.btn-adb-primary:hover, .btn-adb-primary:focus {
    background: linear-gradient(135deg, #4a1d77 0%, var(--adb-purple) 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(89, 37, 139, 0.3);
}

.btn-adb-teal {
    background: linear-gradient(135deg, var(--adb-teal-dark) 0%, var(--adb-teal) 100%);
    color: #fff;
    border: none;
    font-weight: 600;
    padding: 0.65rem 1.4rem;
    border-radius: 10px;
    transition: all 0.25s ease;
}

.btn-adb-teal:hover, .btn-adb-teal:focus {
    background: linear-gradient(135deg, #007a6a 0%, var(--adb-teal-dark) 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 186, 164, 0.3);
}

/* Badges */
.badge-kiosco {
    background-color: #e0e7ff;
    color: #4338ca;
    font-weight: 600;
}
.badge-qr {
    background-color: #d1fae5;
    color: #065f46;
    font-weight: 600;
}
.badge-movil {
    background-color: #fef3c7;
    color: #92400e;
    font-weight: 600;
}

/* Kiosk Clock */
.digital-clock-display {
    font-family: 'Courier New', Courier, monospace, monospace;
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--adb-purple-dark);
    text-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

/* Kiosk Keypad */
.keypad-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: 320px;
    margin: 0 auto;
}

.keypad-btn {
    height: 64px;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: var(--adb-purple);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.15s ease;
}

.keypad-btn:active, .keypad-btn:hover {
    background: var(--adb-purple);
    color: #fff;
    transform: scale(0.97);
}

/* Sidebar for Admin */
.admin-sidebar {
    background: #fff;
    border-right: 1px solid var(--adb-border);
    min-height: calc(100vh - 72px);
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.85rem 1.25rem;
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    border-radius: 10px;
    margin: 4px 12px;
    transition: all 0.2s ease;
}

.sidebar-link:hover, .sidebar-link.active {
    background: rgba(89, 37, 139, 0.08);
    color: var(--adb-purple);
    font-weight: 600;
}

.sidebar-link i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

/* Fotocheck / Carnet Printing */
.carnet-card {
    width: 85.6mm;
    height: 53.98mm;
    border: 2px solid var(--adb-purple);
    border-radius: 12px;
    background: linear-gradient(135deg, #ffffff 60%, rgba(89, 37, 139, 0.05) 100%);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 8px 12px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.carnet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid var(--adb-teal);
    padding-bottom: 4px;
}

@media print {
    body {
        background: #fff !important;
    }
    .no-print {
        display: none !important;
    }
    .print-only {
        display: block !important;
    }
}
