/* ============================================
   PROPERTY MANAGEMENT SYSTEM - DARK THEME
   Futuristic & Premium Dashboard Design
   ============================================ */

:root {
    /* Dark Theme Colors */
    --primary-dark: #0a0e27;
    --secondary-dark: #151932;
    --card-dark: #1a1f3a;
    
    /* Neon Accents */
    --neon-cyan: #00f0ff;
    --neon-purple: #7b2cbf;
    --neon-pink: #ff006e;
    --neon-yellow: #ffd60a;
    
    /* Gradients */
    --gradient-cyan: linear-gradient(135deg, #00f0ff 0%, #0066ff 100%);
    --gradient-purple: linear-gradient(135deg, #7b2cbf 0%, #4a148c 100%);
    --gradient-pink: linear-gradient(135deg, #ff006e 0%, #d90368 100%);
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #a0a8c6;
    --text-muted: #6b7494;
    
    /* Font Families */
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing */
    --sidebar-width: 260px;
    --topbar-height: 70px;
}

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

body {
    font-family: var(--font-body);
    background: var(--primary-dark);
    color: var(--text-primary);
    overflow-x: hidden;
}

/* ============================================
   SIDEBAR
   ============================================ */

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--secondary-dark);
    border-right: 1px solid rgba(0, 240, 255, 0.1);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 25px 20px;
    border-bottom: 1px solid rgba(0, 240, 255, 0.1);
}

.brand-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.brand-logo-full {
    width: 100%;
    max-width: 200px;
    display: block;
    filter: drop-shadow(0 0 14px rgba(0, 240, 255, 0.18));
}

.brand-logo-full img {
    width: 100%;
    height: auto;
    display: block;
}

.brand-logo-compact {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 18px rgba(0, 240, 255, 0.18);
}

.brand-logo-compact img {
    width: 132px;
    height: 42px;
    object-fit: cover;
    object-position: left center;
    display: block;
}

.login-brand-image {
    width: 100%;
    max-width: 310px;
    margin: 0 auto 18px;
    display: block;
    filter: drop-shadow(0 0 18px rgba(0, 240, 255, 0.12));
}

.sidebar-menu {
    list-style: none;
    padding: 20px 0;
}

.sidebar-menu li {
    margin-bottom: 5px;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.sidebar-menu li a i {
    font-size: 18px;
    margin-right: 15px;
    width: 25px;
    transition: all 0.3s ease;
}

.sidebar-menu li a:hover {
    color: var(--neon-cyan);
    background: rgba(0, 240, 255, 0.05);
}

.sidebar-menu li.active a {
    color: var(--neon-cyan);
    background: rgba(0, 240, 255, 0.1);
    border-right: 3px solid var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

.sidebar-menu li.active a i {
    filter: drop-shadow(0 0 8px var(--neon-cyan));
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
}

/* ============================================
   TOPBAR
   ============================================ */

.topbar {
    height: var(--topbar-height);
    background: var(--secondary-dark);
    border-bottom: 1px solid rgba(0, 240, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    position: sticky;
    top: 0;
    z-index: 999;
}

.sidebar-toggle {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 22px;
    cursor: pointer;
    display: none;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box i {
    position: absolute;
    left: 15px;
    color: var(--text-muted);
}

.search-box input {
    background: var(--card-dark);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 25px;
    padding: 10px 20px 10px 45px;
    color: var(--text-primary);
    width: 300px;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.notifications {
    position: relative;
    cursor: pointer;
    font-size: 20px;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.notifications:hover {
    color: var(--neon-cyan);
}

.notifications .badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--gradient-pink);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 8px 15px;
    border-radius: 25px;
    transition: background 0.3s ease;
}

.user-profile:hover {
    background: rgba(0, 240, 255, 0.1);
}

.user-profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--neon-cyan);
}

.user-profile span {
    font-weight: 500;
}

/* ============================================
   CONTENT AREA
   ============================================ */

.content-area {
    padding: 30px;
}

.page-header {
    margin-bottom: 30px;
}

.page-header.page-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-header h1 {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 15px;
}

.btn-primary {
    background: var(--gradient-cyan);
    border: none;
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 240, 255, 0.4);
    color: white;
}

.btn-primary:focus,
.btn-primary:active {
    color: white;
    box-shadow: 0 0 0 0.25rem rgba(0, 240, 255, 0.2);
}

.btn-secondary {
    background: var(--card-dark);
    border: 1px solid rgba(0, 240, 255, 0.3);
    color: var(--text-primary);
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(0, 240, 255, 0.1);
    border-color: var(--neon-cyan);
    color: var(--text-primary);
}

.filter-section .form-control {
    background: var(--card-dark);
    border: 1px solid rgba(0, 240, 255, 0.2);
    color: var(--text-primary);
    padding: 12px 15px;
    border-radius: 8px;
}

.filter-section .form-control:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
    background: var(--secondary-dark);
    color: var(--text-primary);
}

.filter-section .form-control option {
    background: var(--secondary-dark);
    color: var(--text-primary);
}

.btn-export {
    background: var(--card-dark);
    border: 1px solid rgba(0, 240, 255, 0.3);
    color: var(--neon-cyan);
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.btn-export:hover {
    background: rgba(0, 240, 255, 0.1);
    transform: translateY(-2px);
}

.export-buttons {
    display: flex;
    flex-wrap: wrap;
}

.transaction-type {
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.transaction-type.income {
    background: rgba(0, 255, 136, 0.1);
    color: #00ff88;
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.transaction-type.expense {
    background: rgba(255, 0, 110, 0.1);
    color: var(--neon-pink);
    border: 1px solid rgba(255, 0, 110, 0.3);
}

.amount-positive {
    color: #00ff88;
    font-weight: 600;
}

.amount-negative {
    color: var(--neon-pink);
    font-weight: 600;
}

.collection-rate {
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.collection-rate.high {
    background: rgba(0, 255, 136, 0.1);
    color: #00ff88;
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.collection-rate.medium {
    background: rgba(255, 214, 10, 0.1);
    color: var(--neon-yellow);
    border: 1px solid rgba(255, 214, 10, 0.3);
}

.collection-rate.low {
    background: rgba(255, 68, 68, 0.1);
    color: #ff4444;
    border: 1px solid rgba(255, 68, 68, 0.3);
}

/* ============================================
   STAT CARDS
   ============================================ */

.stat-card {
    background: var(--card-dark);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(0, 240, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--neon-cyan);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.2);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    position: relative;
    z-index: 1;
}

.stat-icon.cyan {
    background: rgba(0, 240, 255, 0.1);
    color: var(--neon-cyan);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.3);
}

.stat-icon.purple {
    background: rgba(123, 44, 191, 0.1);
    color: var(--neon-purple);
    box-shadow: 0 0 25px rgba(123, 44, 191, 0.3);
}

.stat-icon.pink {
    background: rgba(255, 0, 110, 0.1);
    color: var(--neon-pink);
    box-shadow: 0 0 25px rgba(255, 0, 110, 0.3);
}

.stat-icon.warning {
    background: rgba(255, 214, 10, 0.1);
    color: var(--neon-yellow);
    box-shadow: 0 0 25px rgba(255, 214, 10, 0.3);
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 8px;
}

.stat-trend {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.stat-trend.up {
    color: #00ff88;
}

.stat-trend.down {
    color: #ff4444;
}

.stat-trend i {
    font-size: 11px;
}

/* ============================================
   CHART CARDS
   ============================================ */

.chart-card {
    background: var(--card-dark);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(0, 240, 255, 0.1);
    height: 100%;
}

.chart-container {
    position: relative;
    width: 100%;
    height: 320px;
}

.chart-container.chart-container-lg {
    height: 350px;
}

.chart-container.chart-container-sm {
    height: 280px;
}

.chart-container canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.chart-header h4 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.chart-actions {
    display: flex;
    gap: 10px;
}

.btn-chart {
    background: transparent;
    border: 1px solid rgba(0, 240, 255, 0.2);
    color: var(--text-secondary);
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
}

.btn-chart:hover,
.btn-chart.active {
    background: var(--gradient-cyan);
    color: white;
    border-color: var(--neon-cyan);
}

/* ============================================
   TABLE CARD
   ============================================ */

.table-card {
    background: var(--card-dark);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(0, 240, 255, 0.1);
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.table-header h4 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
}

.btn-view-all {
    color: var(--neon-cyan);
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-view-all:hover {
    gap: 12px;
    filter: drop-shadow(0 0 8px var(--neon-cyan));
}

.custom-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.custom-table thead th {
    background: rgba(0, 240, 255, 0.05);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    padding: 12px 15px;
    text-align: left;
    border: none;
}

.custom-table tbody tr {
    background: rgba(0, 240, 255, 0.02);
    transition: all 0.3s ease;
}

.custom-table tbody tr:hover {
    background: rgba(0, 240, 255, 0.08);
    transform: scale(1.01);
}

.custom-table tbody td {
    padding: 15px;
    border: none;
    color: var(--text-primary);
}

.badge-status {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.badge-status.success {
    background: rgba(0, 255, 136, 0.1);
    color: #00ff88;
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.badge-status.pending {
    background: rgba(255, 214, 10, 0.1);
    color: var(--neon-yellow);
    border: 1px solid rgba(255, 214, 10, 0.3);
}

.badge-status.overdue {
    background: rgba(255, 68, 68, 0.1);
    color: #ff4444;
    border: 1px solid rgba(255, 68, 68, 0.3);
}

/* ============================================
   QUICK ACTIONS
   ============================================ */

.quick-actions-card,
.alerts-card {
    background: var(--card-dark);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(0, 240, 255, 0.1);
}

.card-header-custom {
    margin-bottom: 20px;
}

.card-header-custom h4 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.quick-action-btn {
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.quick-action-btn i {
    font-size: 28px;
    margin-bottom: 5px;
}

.quick-action-btn.cyan {
    border-color: rgba(0, 240, 255, 0.3);
}

.quick-action-btn.cyan:hover {
    background: rgba(0, 240, 255, 0.15);
    border-color: var(--neon-cyan);
    box-shadow: 0 5px 20px rgba(0, 240, 255, 0.3);
    transform: translateY(-3px);
}

.quick-action-btn.cyan i {
    color: var(--neon-cyan);
}

.quick-action-btn.purple {
    border-color: rgba(123, 44, 191, 0.3);
}

.quick-action-btn.purple:hover {
    background: rgba(123, 44, 191, 0.15);
    border-color: var(--neon-purple);
    box-shadow: 0 5px 20px rgba(123, 44, 191, 0.3);
    transform: translateY(-3px);
}

.quick-action-btn.purple i {
    color: var(--neon-purple);
}

.quick-action-btn.pink {
    border-color: rgba(255, 0, 110, 0.3);
}

.quick-action-btn.pink:hover {
    background: rgba(255, 0, 110, 0.15);
    border-color: var(--neon-pink);
    box-shadow: 0 5px 20px rgba(255, 0, 110, 0.3);
    transform: translateY(-3px);
}

.quick-action-btn.pink i {
    color: var(--neon-pink);
}

.quick-action-btn.warning {
    border-color: rgba(255, 214, 10, 0.3);
}

.quick-action-btn.warning:hover {
    background: rgba(255, 214, 10, 0.15);
    border-color: var(--neon-yellow);
    box-shadow: 0 5px 20px rgba(255, 214, 10, 0.3);
    transform: translateY(-3px);
}

.quick-action-btn.warning i {
    color: var(--neon-yellow);
}

.quick-action-btn span {
    font-size: 13px;
    font-weight: 500;
}

/* ============================================
   MODALS & FORMS (SHARED THEME)
   ============================================ */

.modal-content {
    background: var(--secondary-dark);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 240, 255, 0.05);
}

.modal-header {
    border-bottom: 1px solid rgba(0, 240, 255, 0.1);
    padding: 20px 25px;
    background: rgba(0, 240, 255, 0.03);
    border-radius: 15px 15px 0 0;
}

.modal-title {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 600;
}

.btn-close {
    filter: invert(1);
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.btn-close:hover {
    opacity: 1;
}

.modal-body {
    padding: 25px;
}

.modal-footer {
    border-top: 1px solid rgba(0, 240, 255, 0.1);
    padding: 20px 25px;
    background: rgba(0, 240, 255, 0.02);
    border-radius: 0 0 15px 15px;
    gap: 12px;
}

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

.form-control,
.form-select {
    background: var(--card-dark) !important;
    border: 1px solid rgba(0, 240, 255, 0.2) !important;
    color: var(--text-primary) !important;
    padding: 12px 15px;
    border-radius: 8px;
    width: 100%;
    transition: all 0.3s ease;
    font-size: 14px;
}

.form-control:focus,
.form-select:focus {
    outline: none !important;
    border-color: var(--neon-cyan) !important;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2) !important;
    background: var(--secondary-dark) !important;
    color: var(--text-primary) !important;
}

.form-control option,
.form-select option {
    background: var(--secondary-dark);
    color: var(--text-primary);
}

.form-control::placeholder {
    color: var(--text-muted);
}

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

.form-check-input {
    background-color: var(--card-dark);
    border-color: rgba(0, 240, 255, 0.3);
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--neon-cyan);
    border-color: var(--neon-cyan);
}

.form-check-input:focus {
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.form-check-label {
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    padding-left: 5px;
}

.invalid-feedback {
    color: #ff4444;
    font-size: 12px;
    margin-top: 5px;
}

.input-group-text {
    background: var(--card-dark);
    border: 1px solid rgba(0, 240, 255, 0.2);
    color: var(--text-muted);
}

/* Input Group Password Toggle */
.input-group .form-control {
    border-right: none !important;
}

.input-group .input-group-text {
    border-left: none !important;
    cursor: pointer;
    border-radius: 0 8px 8px 0;
    transition: all 0.3s ease;
}

.input-group .input-group-text:hover {
    color: var(--neon-cyan);
}

.input-group .form-control:not(:last-child) {
    border-radius: 8px 0 0 8px !important;
}

/* ============================================
   ENHANCED SELECTS & DATE PICKERS
   ============================================ */

.choices {
    margin-bottom: 0;
}

.choices[data-type*='select-one']::after {
    border-color: var(--text-muted) transparent transparent transparent;
    right: 16px;
    margin-top: -3px;
}

.choices[data-type*='select-one'].is-open::after {
    border-color: transparent transparent var(--neon-cyan) transparent;
    margin-top: -8px;
}

.choices__inner {
    min-height: 48px;
    background: var(--card-dark);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 8px;
    color: var(--text-primary);
    padding: 8px 42px 8px 12px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.choices.is-focused .choices__inner,
.choices.is-open .choices__inner {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.choices__input {
    background: transparent !important;
    color: var(--text-primary) !important;
    margin-bottom: 0 !important;
}

.choices__input::placeholder {
    color: var(--text-muted);
}

.choices__list--single {
    padding: 0;
}

.choices__item--selectable {
    color: var(--text-primary);
}

.choices__list--dropdown,
.choices__list[aria-expanded] {
    background: var(--secondary-dark);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
    margin-top: 8px;
    overflow: hidden;
    z-index: 1055;
}

.choices__list--dropdown .choices__item,
.choices__list[aria-expanded] .choices__item {
    color: var(--text-secondary);
    padding: 12px 14px;
    transition: all 0.2s ease;
}

.choices__list--dropdown .choices__item--selectable.is-highlighted,
.choices__list[aria-expanded] .choices__item--selectable.is-highlighted {
    background: rgba(0, 240, 255, 0.1);
    color: var(--neon-cyan);
}

.choices__placeholder {
    opacity: 1;
    color: var(--text-muted);
}

.choices__list--dropdown .choices__input {
    border-bottom: 1px solid rgba(0, 240, 255, 0.1);
    padding: 12px 14px;
}

.choices__list--dropdown .choices__input,
.choices__list[aria-expanded] .choices__input {
    background: rgba(255, 255, 255, 0.02) !important;
}

.choices__list--dropdown .choices__item--disabled,
.choices__list[aria-expanded] .choices__item--disabled {
    color: var(--text-muted);
}

.flatpickr-input[readonly] {
    cursor: pointer;
}

.flatpickr-calendar {
    background: var(--secondary-dark);
    border: 1px solid rgba(0, 240, 255, 0.2);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    border-radius: 14px;
    overflow: hidden;
}

.flatpickr-calendar.arrowTop::before,
.flatpickr-calendar.arrowTop::after,
.flatpickr-calendar.arrowBottom::before,
.flatpickr-calendar.arrowBottom::after {
    display: none;
}

.flatpickr-months,
.flatpickr-current-month,
.flatpickr-weekdays,
span.flatpickr-weekday {
    background: var(--secondary-dark);
    color: var(--text-primary);
}

.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
    color: var(--text-primary);
    fill: var(--text-primary);
}

.flatpickr-monthDropdown-months:hover,
.flatpickr-current-month input.cur-year:hover,
.flatpickr-current-month input.cur-year:focus {
    background: rgba(0, 240, 255, 0.08);
}

.flatpickr-prev-month,
.flatpickr-next-month {
    fill: var(--neon-cyan);
    color: var(--neon-cyan);
}

.flatpickr-prev-month:hover svg,
.flatpickr-next-month:hover svg {
    fill: var(--text-primary);
}

.flatpickr-day {
    color: var(--text-secondary);
    border-radius: 8px;
}

.flatpickr-day:hover,
.flatpickr-day:focus {
    background: rgba(0, 240, 255, 0.08);
    border-color: rgba(0, 240, 255, 0.08);
    color: var(--neon-cyan);
}

.flatpickr-day.today {
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover {
    background: var(--gradient-cyan);
    border-color: transparent;
    color: #fff;
}

.flatpickr-day.inRange {
    background: rgba(0, 240, 255, 0.08);
    border-color: rgba(0, 240, 255, 0.08);
    box-shadow: -5px 0 0 rgba(0, 240, 255, 0.08), 5px 0 0 rgba(0, 240, 255, 0.08);
}

.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover {
    color: rgba(160, 168, 198, 0.25);
}

.flatpickr-time input,
.flatpickr-time .flatpickr-time-separator,
.flatpickr-time .flatpickr-am-pm {
    color: var(--text-primary);
}

.flatpickr-time input:hover,
.flatpickr-time .flatpickr-am-pm:hover,
.flatpickr-time input:focus,
.flatpickr-time .flatpickr-am-pm:focus {
    background: rgba(0, 240, 255, 0.08);
}

/* ============================================
   SIDEBAR EXTRAS
   ============================================ */

.sidebar-divider {
    height: 1px;
    background: rgba(0, 240, 255, 0.1);
    margin: 8px 20px;
}

.sidebar {
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 240, 255, 0.2) transparent;
}

.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(0, 240, 255, 0.2);
    border-radius: 2px;
}

/* ============================================
   SETTINGS PAGE
   ============================================ */

.settings-nav-card {
    background: var(--card-dark);
    border-radius: 15px;
    padding: 20px 0;
    border: 1px solid rgba(0, 240, 255, 0.1);
    overflow: hidden;
}

.settings-nav-header {
    padding: 15px 25px 20px;
    border-bottom: 1px solid rgba(0, 240, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
}

.settings-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.settings-nav-info h5 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 3px;
}

.settings-nav-info span {
    font-size: 12px;
    color: var(--text-muted);
}

.settings-nav-menu {
    list-style: none;
    padding: 10px 0;
}

.settings-nav-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 25px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-right: 3px solid transparent;
}

.settings-nav-menu li a i {
    width: 18px;
    font-size: 16px;
}

.settings-nav-menu li a:hover {
    color: var(--neon-cyan);
    background: rgba(0, 240, 255, 0.05);
}

.settings-nav-menu li.active a {
    color: var(--neon-cyan);
    background: rgba(0, 240, 255, 0.08);
    border-right-color: var(--neon-cyan);
}

.settings-content-card {
    background: var(--card-dark);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid rgba(0, 240, 255, 0.1);
}

.settings-section-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    color: var(--neon-cyan);
    margin-bottom: 5px;
}

.settings-section-sub {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 25px;
}

.settings-divider {
    border: none;
    border-top: 1px solid rgba(0, 240, 255, 0.08);
    margin: 30px 0;
}

.avatar-upload {
    position: relative;
    display: inline-block;
}

.avatar-upload img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 2px solid var(--neon-cyan);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.3);
}

.avatar-upload-btn {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 28px;
    height: 28px;
    background: var(--neon-cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--primary-dark);
    font-size: 12px;
    transition: all 0.3s ease;
}

.avatar-upload-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
}

.password-strength {
    height: 4px;
    border-radius: 2px;
    margin-top: 8px;
    transition: all 0.3s ease;
}

.password-strength.weak { background: #ff4444; width: 33%; }
.password-strength.medium { background: var(--neon-yellow); width: 66%; }
.password-strength.strong { background: #00ff88; width: 100%; }

.strength-text {
    font-size: 11px;
    margin-top: 4px;
}
.strength-text.weak { color: #ff4444; }
.strength-text.medium { color: var(--neon-yellow); }
.strength-text.strong { color: #00ff88; }

/* ============================================
   ACTIVITY PAGE
   ============================================ */

.activity-timeline {
    position: relative;
    padding-left: 30px;
}

.activity-timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--neon-cyan) 0%, rgba(0, 240, 255, 0.1) 100%);
}

.activity-item {
    position: relative;
    margin-bottom: 25px;
}

.activity-dot {
    position: absolute;
    left: -24px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--neon-cyan);
    background: var(--primary-dark);
    z-index: 1;
}

.activity-dot.login { border-color: #00ff88; }
.activity-dot.logout { border-color: #ff4444; }
.activity-dot.update { border-color: var(--neon-cyan); }
.activity-dot.transaction { border-color: var(--neon-purple); }
.activity-dot.warning { border-color: var(--neon-yellow); }

.activity-card {
    background: var(--card-dark);
    border: 1px solid rgba(0, 240, 255, 0.1);
    border-radius: 12px;
    padding: 15px 20px;
    transition: all 0.3s ease;
}

.activity-card:hover {
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: 0 5px 20px rgba(0, 240, 255, 0.08);
    transform: translateX(3px);
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.activity-icon.login { background: rgba(0, 255, 136, 0.1); color: #00ff88; }
.activity-icon.logout { background: rgba(255, 68, 68, 0.1); color: #ff4444; }
.activity-icon.update { background: rgba(0, 240, 255, 0.1); color: var(--neon-cyan); }
.activity-icon.transaction { background: rgba(123, 44, 191, 0.1); color: var(--neon-purple); }
.activity-icon.warning { background: rgba(255, 214, 10, 0.1); color: var(--neon-yellow); }

.activity-details h6 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.activity-details p {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
}

.activity-time {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
}

.activity-tag {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    display: inline-block;
    margin-top: 5px;
}

.activity-tag.login { background: rgba(0, 255, 136, 0.1); color: #00ff88; }
.activity-tag.logout { background: rgba(255, 68, 68, 0.1); color: #ff4444; }
.activity-tag.update { background: rgba(0, 240, 255, 0.1); color: var(--neon-cyan); }
.activity-tag.transaction { background: rgba(123, 44, 191, 0.1); color: var(--neon-purple); }
.activity-tag.warning { background: rgba(255, 214, 10, 0.1); color: var(--neon-yellow); }

/* ============================================
   LOGIN PAGE
   ============================================ */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-dark);
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.06) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    pointer-events: none;
}

.login-page::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(123, 44, 191, 0.06) 0%, transparent 70%);
    bottom: -150px;
    left: -150px;
    pointer-events: none;
}

.login-card {
    background: var(--secondary-dark);
    border: 1px solid rgba(0, 240, 255, 0.15);
    border-radius: 20px;
    padding: 45px 40px;
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 1;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4), 0 0 60px rgba(0, 240, 255, 0.05);
}

.login-logo {
    text-align: center;
    margin-bottom: 35px;
}

.login-logo h2 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    background: var(--gradient-cyan);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.login-logo p {
    color: var(--text-muted);
    font-size: 14px;
}

.login-logo .logo-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 240, 255, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--neon-cyan);
    margin: 0 auto 15px;
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.2);
    border: 1px solid rgba(0, 240, 255, 0.3);
}

.login-footer-text {
    text-align: center;
    margin-top: 25px;
    font-size: 13px;
    color: var(--text-muted);
}

.login-footer-text a {
    color: var(--neon-cyan);
    text-decoration: none;
}

.login-footer-text a:hover {
    text-decoration: underline;
}

.forgot-link {
    color: var(--neon-cyan);
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.forgot-link:hover {
    color: var(--text-primary);
}

.btn-login {
    width: 100%;
    background: var(--gradient-cyan);
    border: none;
    color: white;
    padding: 14px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 240, 255, 0.4);
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
    color: var(--text-muted);
    font-size: 13px;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(0, 240, 255, 0.1);
}

/* ============================================
   ALERTS
   ============================================ */

.alert-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.alert-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid;
    transition: all 0.3s ease;
}

.alert-item i {
    font-size: 22px;
}

.alert-item.warning {
    background: rgba(255, 214, 10, 0.05);
    border-color: rgba(255, 214, 10, 0.3);
    color: var(--neon-yellow);
}

.alert-item.info {
    background: rgba(0, 240, 255, 0.05);
    border-color: rgba(0, 240, 255, 0.3);
    color: var(--neon-cyan);
}

.alert-item.success {
    background: rgba(0, 255, 136, 0.05);
    border-color: rgba(0, 255, 136, 0.3);
    color: #00ff88;
}

.alert-content {
    flex: 1;
}

.alert-content strong {
    display: block;
    font-size: 14px;
    margin-bottom: 3px;
    color: var(--text-primary);
}

.alert-content span {
    font-size: 12px;
    color: var(--text-secondary);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1200px) {
    .search-box input {
        width: 200px;
    }
}

@media (max-width: 992px) {
    :root {
        --sidebar-width: 70px;
    }
    
    .sidebar-menu li a span {
        display: none;
    }
    
    .sidebar {
        width: 70px;
    }
    
    .sidebar-header {
        padding: 18px 10px;
        display: flex;
        justify-content: center;
    }

    .brand-logo-full {
        display: none;
    }

    .brand-logo-compact {
        display: block;
    }
    
    .sidebar-menu li a {
        justify-content: center;
    }
    
    .sidebar-menu li a i {
        margin-right: 0;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .sidebar-toggle {
        display: block;
    }
    
    .search-box {
        display: none;
    }
    
    .user-profile span {
        display: none;
    }
    
    .quick-actions-grid {
        grid-template-columns: 1fr;
    }

    .page-header.page-header-actions .btn-primary,
    .page-header.page-header-actions .export-buttons {
        width: 100%;
    }

    .export-buttons {
        gap: 10px;
    }

    .btn-export {
        flex: 1;
        margin-left: 0;
    }

    .chart-container,
    .chart-container.chart-container-lg,
    .chart-container.chart-container-sm {
        height: 260px;
    }
}
