/* PCMS Theme - Professional Political Party Constituency Management System */
:root {
    --pcms-primary: #0a3622;        /* Deep Presidential Forest Green */
    --pcms-primary-dark: #062215;
    --pcms-primary-light: #135538;
    --pcms-gold: #c59b27;           /* Sovereign Gold */
    --pcms-gold-light: #dfb746;
    --pcms-accent: #0d6efd;
    --pcms-dark: #1b2520;
    --pcms-light: #f8faf9;
    --pcms-sidebar-bg: #072618;
    --pcms-sidebar-hover: #0f3f29;
    --pcms-sidebar-width: 260px;
    --pcms-border-color: #e2e8e5;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: #f3f6f4;
    color: #2b3531;
    overflow-x: hidden;
}

/* Sidebar Styling */
#pcms-sidebar {
    width: var(--pcms-sidebar-width);
    min-height: 100vh;
    background: linear-gradient(180deg, var(--pcms-sidebar-bg) 0%, #041a10 100%);
    color: #e0eae4;
    transition: all 0.3s ease;
    z-index: 1040;
}

#pcms-sidebar .sidebar-brand {
    padding: 1.25rem 1.25rem;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#pcms-sidebar .sidebar-brand .badge-gold {
    background-color: var(--pcms-gold);
    color: #000;
    font-size: 0.7rem;
    padding: 0.2rem 0.45rem;
}

#pcms-sidebar .nav-link {
    color: #b7cbbf;
    padding: 0.65rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 6px;
    margin: 0.15rem 0.6rem;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}

#pcms-sidebar .nav-link i {
    font-size: 1.1rem;
    margin-right: 0.75rem;
    width: 22px;
    text-align: center;
}

#pcms-sidebar .nav-link:hover,
#pcms-sidebar .nav-link.active {
    color: #ffffff;
    background-color: var(--pcms-sidebar-hover);
}

#pcms-sidebar .nav-link.active {
    border-left: 3px solid var(--pcms-gold);
    color: #ffffff;
}

#pcms-sidebar .sidebar-heading {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #799787;
    padding: 1rem 1.25rem 0.25rem;
    font-weight: 700;
}

/* Navbar Styling */
.pcms-navbar {
    background: #ffffff;
    border-bottom: 1px solid var(--pcms-border-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* Main Content Area */
#pcms-content {
    flex: 1;
    min-width: 0;
    background-color: #f3f6f4;
}

/* Card Styling */
.card-stat {
    border: 1px solid var(--pcms-border-color);
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

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

.stat-icon.primary { background: rgba(10, 54, 34, 0.1); color: var(--pcms-primary); }
.stat-icon.gold { background: rgba(197, 155, 39, 0.15); color: var(--pcms-gold); }
.stat-icon.success { background: rgba(25, 135, 84, 0.1); color: #198754; }
.stat-icon.warning { background: rgba(255, 193, 7, 0.15); color: #b78103; }
.stat-icon.info { background: rgba(13, 110, 253, 0.1); color: #0d6efd; }
.stat-icon.danger { background: rgba(220, 53, 69, 0.1); color: #dc3545; }

/* Custom Badge Pill Overrides */
.badge-status-verified { background-color: #d1e7dd; color: #0f5132; }
.badge-status-pending { background-color: #fff3cd; color: #664d03; }
.badge-status-manual_review { background-color: #cff4fc; color: #055160; }
.badge-status-failed { background-color: #f8d7da; color: #842029; }
.badge-status-active { background-color: #d1e7dd; color: #0f5132; }
.badge-status-suspended { background-color: #f8d7da; color: #842029; }

/* Tables */
.table-pcms {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
}

.table-pcms th {
    background-color: #edf3f0;
    color: #2b4638;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #dbe6e0;
}

.table-pcms td {
    vertical-align: middle;
    font-size: 0.9rem;
}

/* Printable Voucher Styling */
@media print {
    body * {
        visibility: hidden;
    }
    #printable-voucher, #printable-voucher * {
        visibility: visible;
    }
    #printable-voucher {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        margin: 0;
        padding: 20px;
    }
    .no-print {
        display: none !important;
    }
}

.voucher-card {
    border: 2px dashed #0a3622;
    padding: 2.5rem;
    background: #ffffff;
    border-radius: 12px;
}

.voucher-header {
    border-bottom: 2px solid #0a3622;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Mobile Sidebar Drawer */
@media (max-width: 991.98px) {
    #pcms-sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        bottom: 0;
        height: 100vh;
    }
    #pcms-sidebar.show {
        left: 0;
    }
    .sidebar-backdrop {
        display: none;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 1030;
    }
    .sidebar-backdrop.show {
        display: block;
    }
}

/* Enhanced Visual Polish & Modern UI Utilities */
.btn-xs {
    padding: 0.22rem 0.55rem;
    font-size: 0.76rem;
    font-weight: 500;
    line-height: 1.3;
}

.fs-7 {
    font-size: 0.75rem !important;
}

.letter-spacing-1 {
    letter-spacing: 1px;
}

/* Modern Card Hover Effects */
.card {
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card.shadow-sm:hover {
    box-shadow: 0 6px 20px -4px rgba(8, 66, 40, 0.1) !important;
}

/* Status Indicators */
.badge {
    font-weight: 600;
    letter-spacing: 0.3px;
}

.pulse {
    animation: pulseAnimation 2s infinite;
}

@keyframes pulseAnimation {
    0% { transform: scale(0.95); opacity: 0.85; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.85; }
}

/* Custom Scrollbars */
#pcms-sidebar::-webkit-scrollbar,
.overflow-auto::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

#pcms-sidebar::-webkit-scrollbar-track,
.overflow-auto::-webkit-scrollbar-track {
    background: transparent;
}

#pcms-sidebar::-webkit-scrollbar-thumb,
.overflow-auto::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

/* Form Controls Focus Glow */
.form-control:focus, .form-select:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 0.2rem rgba(16, 185, 129, 0.15);
}

/* Glassmorphic accent cards */
.glass-panel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

