/* ==========================================================================
   CONDOMINIO RESIDENCIAS VILLA DEL PARQUE - PREMIUM STYLE SHEET (GLASSMORPHISM & DARK ELEGANTE)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

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

:root {
    /* Color Palette */
    --bg-dark: #07090e;
    --bg-main: #0a0d14;
    --card-bg: rgba(20, 26, 38, 0.6);
    --card-bg-hover: rgba(28, 36, 53, 0.8);
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(99, 102, 241, 0.35);
    
    /* Text Colors */
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Accent Colors */
    --primary: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.15);
    --emerald: #10b981;
    --emerald-glow: rgba(16, 185, 129, 0.15);
    --amber: #f59e0b;
    --amber-glow: rgba(245, 158, 11, 0.15);
    --rose: #f43f5e;
    --rose-glow: rgba(244, 63, 94, 0.15);
    --violet: #8b5cf6;
    --violet-glow: rgba(139, 92, 246, 0.15);
    
    /* Shadows & Blurs */
    --blur: 16px;
    --shadow-sm: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-md: 0 12px 24px -4px rgba(0,0,0,0.3);
    --shadow-lg: 0 24px 48px -12px rgba(0,0,0,0.5);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 15px;
}

body {
    font-family: 'Plus Jakarta Sans', 'Outfit', sans-serif;
    background: var(--bg-dark);
    background-image: 
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(139, 92, 246, 0.06) 0px, transparent 50%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    border: 2px solid var(--bg-dark);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.navbar {
    background: rgba(10, 13, 20, 0.7);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    border-bottom: 1px solid var(--border);
    padding: 0 40px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-brand {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-brand span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 10px;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

/* ==========================================================================
   UI CONTAINERS & GRIDS
   ========================================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.two-col {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 32px;
}
@media(max-width: 900px) {
    .two-col {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   CARDS & PANELS (GLASSMORPHISM)
   ========================================================================== */
.card, .panel-card {
    background: var(--card-bg);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.card:hover, .panel-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-lg);
}

.panel-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ==========================================================================
   BUTTONS (PREMIUM GRADIENTS & MICRO-ANIMATIONS)
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #4f46e5 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.5);
}
.btn-primary:active {
    transform: translateY(0);
}

.btn-emerald {
    background: linear-gradient(135deg, var(--emerald) 0%, #059669 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}
.btn-emerald:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.45);
}

.btn-rose {
    background: linear-gradient(135deg, var(--rose) 0%, #be123c 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(244, 63, 94, 0.3);
}
.btn-rose:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(244, 63, 94, 0.45);
}

.btn-amber {
    background: linear-gradient(135deg, var(--amber) 0%, #d97706 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
}
.btn-amber:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.45);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text-primary);
}
.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255,255,255,0.15);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 8px;
}

.btn-full {
    width: 100%;
}

/* ==========================================================================
   INPUTS & FORM CONTROLS
   ========================================================================== */
.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.form-group.full {
    grid-column: 1 / -1;
}

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.3px;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition);
    outline: none;
}

.form-input::placeholder, .form-textarea::placeholder {
    color: var(--text-muted);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.form-select option {
    background: #0f131a;
    color: var(--text-primary);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

/* File Input Helper */
.file-input-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 2px dashed rgba(99, 102, 241, 0.3);
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.file-input-label:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.06);
    color: #fff;
}
.file-input {
    display: none;
}

/* ==========================================================================
   STATUS BADGES
   ========================================================================== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid transparent;
}

.badge-green {
    background: var(--emerald-glow);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.25);
}

.badge-red {
    background: var(--rose-glow);
    color: #fca5a5;
    border-color: rgba(244, 63, 94, 0.25);
}

.badge-yellow {
    background: var(--amber-glow);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.25);
}

.badge-blue {
    background: var(--primary-glow);
    color: #a5b4fc;
    border-color: rgba(99, 102, 241, 0.25);
}

/* ==========================================================================
   TABLES
   ========================================================================== */
.table-wrap {
    overflow-x: auto;
    border-radius: 14px;
    border: 1px solid var(--border);
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

thead {
    background: rgba(255, 255, 255, 0.02);
}

th {
    padding: 16px 20px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-bottom: 1px solid var(--border);
}

td {
    padding: 16px 20px;
    font-size: 14px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border);
}

tbody tr {
    transition: var(--transition);
}

tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* ==========================================================================
   TABS INTERFACE
   ========================================================================== */
.tab-nav {
    display: flex;
    gap: 6px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 6px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 10px 20px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

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

.tab-btn.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

.tab-panel {
    display: none;
    animation: fadeIn 0.4s ease;
}

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

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

/* ==========================================================================
   MODALS (POPUP OVERLAYS)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 5, 8, 0.8);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 20px;
}

.modal-overlay.show {
    display: flex;
}

.modal {
    background: var(--bg-main);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 36px;
    width: 480px;
    max-width: 100%;
    box-shadow: var(--shadow-lg);
    animation: modalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalIn {
    from { transform: scale(0.9) translateY(20px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-title {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 24px;
}
.modal-title span {
    color: var(--primary);
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 28px;
}

/* ==========================================================================
   CALENDAR
   ========================================================================== */
.calendar-grid, .cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 6px;
    overflow: hidden;
}

.cal-header-cell, .cal-header {
    text-align: center;
    padding: 12px 4px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cal-empty {
    background: transparent;
    min-height: 84px;
}

.cal-day {
    background: rgba(20, 26, 38, 0.4);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px;
    min-height: 84px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.cal-day:hover {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.3);
}

.cal-day .day-num, .cal-day .num {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
}

.cal-booking-chip, .cal-chip {
    font-size: 10px;
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    border-radius: 6px;
    padding: 4px 6px;
    margin-top: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border: 1px solid rgba(99, 102, 241, 0.25);
}

.cal-hover-hint {
    position: absolute;
    bottom: 8px;
    right: 8px;
    font-size: 11px;
    color: var(--primary);
    font-weight: 700;
    opacity: 0;
    transition: var(--transition);
}
.cal-day:hover .cal-hover-hint {
    opacity: 1;
}

/* ==========================================================================
   NOTIFICATIONS AND ALERTS
   ========================================================================== */
.notifications-panel {
    background: rgba(99, 102, 241, 0.03);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 32px;
}

.notif-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notif-item {
    background: rgba(99, 102, 241, 0.05);
    border-left: 3px solid var(--primary);
    padding: 12px 16px;
    border-radius: 0 10px 10px 0;
    margin-bottom: 10px;
}
.notif-item p {
    font-size: 14px;
    color: var(--text-primary);
}
.notif-item small {
    font-size: 11px;
    color: var(--text-muted);
    display: block;
    margin-top: 4px;
}

/* KPI Dashboard Cards */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.kpi-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.kpi-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
}

.kpi-primary::before { background: var(--primary); }
.kpi-emerald::before { background: var(--emerald); }
.kpi-rose::before { background: var(--rose); }
.kpi-amber::before { background: var(--amber); }
.kpi-violet::before { background: var(--violet); }

.kpi-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.kpi-value {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
}

.kpi-sub {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ==========================================================================
   CONCILIATION MATCHER LISTS
   ========================================================================== */
.match-comparison-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.match-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    padding: 16px 20px;
    border-radius: 12px;
    gap: 20px;
    transition: var(--transition);
}

.match-item-row.matched {
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.03);
}

.match-info-col {
    flex: 1;
}

.match-info-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.match-info-details {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.match-badge-col {
    display: flex;
    align-items: center;
    gap: 12px;
}
