/* ─────────────────────────────────────────────────────────────────────────────
   URBANADMIN — MODERN DESIGN SYSTEM (ECUADOR 2026)
   ───────────────────────────────────────────────────────────────────────────── */

:root {
    --bg-primary: #0b0f19;
    --bg-secondary: #111827;
    --bg-card: rgba(17, 24, 39, 0.75);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.16);

    --text-primary: #f9fafb;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;

    --color-primary: #4f46e5;
    --color-primary-hover: #4338ca;
    --color-emerald: #10b981;
    --color-amber: #f59e0b;
    --color-rose: #f43f5e;
    --color-purple: #8b5cf6;
    --color-indigo: #6366f1;
    --color-whatsapp: #25d366;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 20px rgba(79, 70, 229, 0.25);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
}

/* ──────────────── Top Navigation Bar ──────────────── */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 1.75rem;
    background: rgba(17, 24, 39, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 50;
}

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

.brand-icon {
    font-size: 1.8rem;
    background: rgba(79, 70, 229, 0.2);
    padding: 0.35rem 0.5rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(79, 70, 229, 0.4);
}

.brand-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-subtitle {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: block;
}

.user-switcher-bar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(0, 0, 0, 0.35);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
}

.switcher-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.nav-user-profile {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.avatar {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--color-primary), var(--color-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

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

.user-info strong {
    font-size: 0.85rem;
}

.role-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.1rem 0.4rem;
    border-radius: var(--radius-sm);
    background: rgba(79, 70, 229, 0.25);
    color: #a5b4fc;
    display: inline-block;
    width: fit-content;
}

/* ──────────────── Layout ──────────────── */
.main-container {
    display: flex;
    min-height: calc(100vh - 65px);
}

.sidebar {
    width: 260px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.25rem 0.75rem;
    position: sticky;
    top: 65px;
    height: calc(100vh - 65px);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    width: 100%;
    position: relative;
}

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

.nav-item.active {
    background: rgba(79, 70, 229, 0.15);
    color: #a5b4fc;
    border: 1px solid rgba(79, 70, 229, 0.35);
    font-weight: 600;
}

.nav-icon {
    font-size: 1.1rem;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    position: absolute;
    right: 12px;
}

.badge-dot.warning { background: var(--color-amber); }

.legal-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.4);
    padding: 0.65rem 0.75rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.legal-badge .badge-icon {
    font-size: 1.2rem;
}

.legal-badge strong {
    font-size: 0.75rem;
    color: #fde68a;
    display: block;
}

.legal-badge p {
    font-size: 0.65rem;
    color: var(--text-muted);
}

/* ──────────────── Content Area ──────────────── */
.content-area {
    flex: 1;
    padding: 2rem;
    background: radial-gradient(circle at top right, rgba(79, 70, 229, 0.05) 0%, transparent 60%);
    overflow-y: auto;
}

.view-panel {
    display: none;
    animation: fadeIn 0.25s ease forwards;
}

.view-panel.active {
    display: block;
}

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

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.75rem;
}

.panel-header h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
}

/* ──────────────── Stats Grid ──────────────── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.75rem;
}

.stat-card {
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-hover);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.bg-emerald { background: rgba(16, 185, 129, 0.15); border: 1px solid rgba(16, 185, 129, 0.3); color: var(--color-emerald); }
.bg-amber { background: rgba(245, 158, 11, 0.15); border: 1px solid rgba(245, 158, 11, 0.3); color: var(--color-amber); }
.bg-rose { background: rgba(244, 63, 94, 0.15); border: 1px solid rgba(244, 63, 94, 0.3); color: var(--color-rose); }
.bg-indigo { background: rgba(99, 102, 241, 0.15); border: 1px solid rgba(99, 102, 241, 0.3); color: var(--color-indigo); }
.bg-purple { background: rgba(139, 92, 246, 0.15); border: 1px solid rgba(139, 92, 246, 0.3); color: var(--color-purple); }

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: block;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0.15rem 0;
}

.stat-trend {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.stat-trend.positive { color: var(--color-emerald); font-weight: 600; }
.stat-trend.negative { color: var(--color-rose); font-weight: 600; }

/* ──────────────── Cards & Tables ──────────────── */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.glass-card {
    box-shadow: var(--shadow-md);
}

.card-header {
    margin-bottom: 1.25rem;
}

.card-header h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.budget-breakdown {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.budget-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: var(--radius-full);
}

.compliance-status {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.compliance-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.9rem;
}

.compliance-row strong {
    margin-left: auto;
}

.dot-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.dot-indicator.green { background: var(--color-emerald); box-shadow: 0 0 8px var(--color-emerald); }
.dot-indicator.red { background: var(--color-rose); box-shadow: 0 0 8px var(--color-rose); }

/* ──────────────── Tables ──────────────── */
.table-responsive {
    overflow-x: auto;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    text-align: left;
}

.custom-table th {
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-weight: 600;
}

.custom-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.custom-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* ──────────────── Badges & Alerts ──────────────── */
.badge-status {
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
    display: inline-block;
}

.badge-status.success { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-status.warning { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-status.danger { background: rgba(244, 63, 94, 0.15); color: #fb7185; border: 1px solid rgba(244, 63, 94, 0.3); }

.alert-box {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.alert-box.info { background: rgba(99, 102, 241, 0.1); border: 1px solid rgba(99, 102, 241, 0.3); color: #c7d2fe; }
.alert-box.error { background: rgba(244, 63, 94, 0.12); border: 1px solid rgba(244, 63, 94, 0.35); color: #fecdd3; }

.alert-box.warning-legal {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fef3c7;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.legal-icon { font-size: 2rem; }
.legal-content h4 { font-family: var(--font-heading); font-size: 0.95rem; margin-bottom: 0.2rem; color: #fde68a; }

/* ──────────────── Forms & Buttons ──────────────── */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 0.35rem;
    font-weight: 500;
}

.form-control, .custom-select {
    width: 100%;
    padding: 0.65rem 0.9rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.88rem;
    transition: border-color 0.2s ease;
}

.form-control:focus, .custom-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
}
.btn-primary:hover { background: var(--color-primary-hover); transform: translateY(-1px); }

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

.btn-success { background: var(--color-emerald); color: #fff; }
.btn-success:hover { background: #059669; }

.btn-whatsapp { background: var(--color-whatsapp); color: #fff; }
.btn-whatsapp:hover { background: #1eb956; }

.btn-pay {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: #fff;
    padding: 0.35rem 0.75rem;
    font-size: 0.78rem;
}

/* ──────────────── Amenities Grid ──────────────── */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.amenity-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.amenity-header {
    height: 120px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.3), rgba(16, 185, 129, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.amenity-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.amenity-body h4 { font-family: var(--font-heading); font-size: 1.1rem; margin-bottom: 0.35rem; }
.amenity-body p { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.75rem; }

.amenity-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ──────────────── Gate QR & Scanner ──────────────── */
.gate-grid, .guard-scanner-grid, .comms-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.qr-box {
    background: #fff;
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    display: inline-block;
    margin: 1rem auto;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.15);
}

.validation-card {
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-top: 1.25rem;
    transition: all 0.3s ease;
}

.validation-card.neutral { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border-color); }
.validation-card.authorized { background: rgba(16, 185, 129, 0.15); border: 1px solid var(--color-emerald); color: #a7f3d0; }
.validation-card.denied { background: rgba(244, 63, 94, 0.15); border: 1px solid var(--color-rose); color: #fecdd3; }

.validation-icon { font-size: 2.5rem; }

.input-with-button {
    display: flex;
    gap: 0.5rem;
}

.text-mono { font-family: monospace; }

/* ──────────────── Modal ──────────────── */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.modal-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 480px;
    padding: 1.5rem;
    box-shadow: var(--shadow-glow);
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    position: relative;
}

.btn-close {
    position: absolute;
    right: 0;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
}

.pay-summary {
    background: rgba(0, 0, 0, 0.35);
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
}

.text-highlight { color: #38bdf8; font-size: 1.2rem; }

.payphone-info-box {
    background: rgba(2, 132, 199, 0.1);
    border: 1px dashed rgba(2, 132, 199, 0.35);
    padding: 1rem;
    border-radius: var(--radius-md);
    font-size: 0.82rem;
    margin-bottom: 1.25rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* ──────────────── 7. ASAMBLEAS & VOTACIÓN DIGITAL ──────────────── */
.assembly-hero {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.2) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 1px solid rgba(79, 70, 229, 0.35);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.quorum-box {
    background: rgba(0, 0, 0, 0.4);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    min-width: 240px;
}

.quorum-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.topics-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 1rem;
}

.topic-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    backdrop-filter: blur(12px);
    transition: transform 0.2s, border-color 0.2s;
}

.topic-card:hover {
    border-color: var(--border-hover);
}

.topic-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.vote-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
}

.btn-vote {
    padding: 0.65rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.btn-vote-favor {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.3);
}
.btn-vote-favor:hover { background: rgba(16, 185, 129, 0.3); }

.btn-vote-contra {
    background: rgba(244, 63, 94, 0.15);
    color: #fb7185;
    border-color: rgba(244, 63, 94, 0.3);
}
.btn-vote-contra:hover { background: rgba(244, 63, 94, 0.3); }

.btn-vote-abs {
    background: rgba(156, 163, 175, 0.15);
    color: #d1d5db;
    border-color: rgba(156, 163, 175, 0.3);
}
.btn-vote-abs:hover { background: rgba(156, 163, 175, 0.3); }

.vote-result-row {
    margin-top: 0.75rem;
}
.vote-result-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    margin-bottom: 0.25rem;
}

/* ──────────────── 8. PAQUETERÍA Y ENCOMIENDAS ──────────────── */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
    margin-top: 1rem;
}

.package-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.package-pin-box {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.05));
    border: 1px dashed rgba(245, 158, 11, 0.4);
    border-radius: var(--radius-md);
    padding: 0.75rem;
    text-align: center;
    margin: 0.75rem 0;
}

.package-pin-code {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 4px;
    color: #fbbf24;
    font-family: monospace;
}

/* ──────────────── 9. TICKETS PQRS & MANTENIMIENTO ──────────────── */
.tickets-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1.5rem;
}

.ticket-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 0.75rem;
    transition: all 0.2s;
}
.ticket-item:hover { border-color: var(--border-hover); }

.ticket-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.ticket-priority {
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
    font-weight: 700;
}
.ticket-priority.HIGH, .ticket-priority.URGENT { background: rgba(244, 63, 94, 0.2); color: #fb7185; }
.ticket-priority.MEDIUM { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.ticket-priority.LOW { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }

.admin-reply-box {
    background: rgba(79, 70, 229, 0.1);
    border-left: 3px solid var(--color-primary);
    padding: 0.6rem 0.85rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-top: 0.65rem;
    font-size: 0.82rem;
}

/* ──────────────── 10. DIRECTORIO DE SERVICIOS ──────────────── */
.providers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 1.25rem;
    margin-top: 1rem;
}

.provider-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s;
}
.provider-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-hover);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.provider-category-tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--color-indigo);
    background: rgba(99, 102, 241, 0.15);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    display: inline-block;
    margin-bottom: 0.5rem;
}

.provider-rating-stars {
    color: #fbbf24;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin: 0.4rem 0;
}

/* ──────────────── Utility Classes ──────────────── */
.w-100 { width: 100%; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-rose { color: var(--color-rose); }
.text-mono { font-family: monospace; }
.badge-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-left: 6px;
}
.badge-dot.warning { background: var(--color-amber); }

/* Responsive */
@media (max-width: 992px) {
    .main-container { flex-direction: column; }
    .sidebar { width: 100%; height: auto; position: static; }
    .dashboard-grid, .gate-grid, .guard-scanner-grid, .comms-grid, .tickets-grid { grid-template-columns: 1fr; }
}

/* ──────────────── Authentication & Login Screen ──────────────── */
.btn-logout {
    background: rgba(244, 63, 94, 0.15);
    color: #fb7185;
    border: 1px solid rgba(244, 63, 94, 0.3);
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    margin-left: 0.75rem;
    transition: all 0.2s;
}
.btn-logout:hover {
    background: rgba(244, 63, 94, 0.3);
    color: #fff;
}

.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 50% 30%, rgba(79, 70, 229, 0.2) 0%, rgba(11, 15, 25, 0.95) 70%);
    backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.login-card {
    background: rgba(17, 24, 39, 0.9);
    border: 1px solid rgba(79, 70, 229, 0.35);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 440px;
    padding: 2.25rem;
    box-shadow: 0 0 35px rgba(79, 70, 229, 0.25);
}

.login-brand {
    text-align: center;
    margin-bottom: 1.75rem;
}

.login-logo-icon {
    font-size: 2.5rem;
    background: rgba(79, 70, 229, 0.2);
    width: 64px;
    height: 64px;
    line-height: 64px;
    margin: 0 auto 0.75rem auto;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(79, 70, 229, 0.4);
}

.login-brand h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-quick-links {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

/* ──────────────── Tabs & Action Buttons ──────────────── */
.tabs-header {
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.tab-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.tab-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
    color: #fff;
    background: rgba(79, 70, 229, 0.25);
    border-color: rgba(79, 70, 229, 0.5);
}

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

/* ──────────────── Recibo Oficial SRI ──────────────── */
.receipt-card {
    max-width: 580px;
}

.receipt-body {
    background: #0f172a;
    border: 1px dashed rgba(56, 189, 248, 0.4);
    border-radius: var(--radius-md);
    padding: 1.75rem;
}

.receipt-header-print {
    text-align: center;
}

.receipt-header-print h2 {
    font-size: 1.25rem;
    margin: 0.25rem 0;
    color: #fff;
}

.receipt-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    font-size: 0.85rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-sm);
}

.receipt-total-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: var(--radius-md);
    font-size: 1.1rem;
}

.receipt-total-box strong {
    color: #34d399;
    font-size: 1.35rem;
}

.receipt-legal-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.4;
}

/* Print Rules */
@media print {
    body * {
        visibility: hidden;
    }
    #receiptPrintArea, #receiptPrintArea * {
        visibility: visible;
    }
    #receiptPrintArea {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        color: #000 !important;
        background: #fff !important;
        border: 1px solid #ccc !important;
    }
    .receipt-header-print h2, .receipt-total-box strong {
        color: #000 !important;
    }
}


