@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700;800&family=Quicksand:wght@300;400;500;600;700&family=Montserrat:wght@300;400;500;600;700;800&family=Nunito:wght@300;400;500;600;700;800&family=Chakra+Petch:wght@300;400;500;600;700&family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400&family=DM+Sans:wght@300;400;500;600;700&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
    --bg-main: hsl(270, 30%, 98%); /* Dominan putih-lavender sangat terang */
    --bg-header: rgba(243, 232, 255, 0.85); /* Ungu Muda default */
    --bg-card: rgba(255, 255, 255, 0.85); /* Card putih transparan */
    --bg-card-hover: rgba(255, 255, 255, 0.95);
    --border-glass: rgba(109, 40, 217, 0.24); /* Border ungu halus - kontras ditingkatkan */
    --border-glass-focus: rgba(109, 40, 217, 0.5);
    
    --primary: hsl(271, 81%, 38%); /* Ungu Tua */
    --primary-hover: hsl(271, 81%, 28%);
    --primary-glow: rgba(109, 40, 217, 0.15);
    --secondary: hsl(271, 91%, 65%); /* Ungu Muda */
    
    --text-main: hsl(270, 40%, 15%); /* Teks gelap di atas background putih */
    --text-muted: hsl(270, 15%, 45%);
    --text-dark: hsl(270, 40%, 10%);
    
    --danger: hsl(350, 80%, 50%);
    --danger-glow: rgba(239, 68, 68, 0.15);
    --warning: hsl(45, 90%, 45%);
    --success: hsl(142, 70%, 35%);
    
    --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-premium: 0 8px 32px 0 rgba(109, 40, 217, 0.06); /* Shadow ungu lembut */
    --radius-lg: 16px;
    --radius-md: 10px;
    --radius-sm: 6px;
}

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

body {
    background-color: var(--bg-main);
    background-image: 
        radial-gradient(at 10% 10%, rgba(139, 92, 246, 0.05) 0px, transparent 40%),
        radial-gradient(at 90% 80%, rgba(167, 139, 250, 0.05) 0px, transparent 40%);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: var(--font-main);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: rgba(109, 40, 217, 0.15);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-premium);
    padding: 2rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transition: 0.5s;
}

.glass-card:hover::before {
    left: 100%;
}

.glass-card.interactive:hover {
    transform: translateY(-5px);
    border-color: rgba(109, 40, 217, 0.3);
    box-shadow: 0 12px 40px 0 rgba(109, 40, 217, 0.12), 0 0 15px 0 var(--primary-glow);
}

/* Layout container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Headers */
.header-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 800;
    font-size: 1.4rem;
    background: linear-gradient(135deg, var(--text-dark) 30%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    cursor: pointer;
}

.header-logo i {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.8rem;
}

/* Header & Navigation */
header {
    background: var(--bg-header);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-glass);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition-fast);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-fast);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    cursor: pointer;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
    background: rgba(109, 40, 217, 0.05);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
    text-decoration: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(109, 40, 217, 0.35);
    opacity: 0.95;
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-main);
    border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
    background: #ffffff;
    border-color: rgba(109, 40, 217, 0.3);
}

.btn-danger {
    background: var(--danger);
    color: #ffffff;
    box-shadow: 0 4px 15px var(--danger-glow);
}

.btn-danger:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-open {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-aktif {
    background: rgba(109, 40, 217, 0.1);
    color: var(--primary);
    border: 1px solid rgba(109, 40, 217, 0.2);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge-closed {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-muted);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.badge-draft {
    background: rgba(109, 40, 217, 0.08);
    color: var(--text-muted);
    border: 1px solid rgba(109, 40, 217, 0.15);
}

/* Forms */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    color: var(--text-dark);
    padding: 0.75rem 1rem;
    font-family: var(--font-main);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 10px var(--primary-glow);
}

/* Select option styling */
select.form-control option {
    background-color: #ffffff;
    color: var(--text-dark);
}

/* Upload zone */
.upload-zone {
    border: 2px dashed var(--border-glass);
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.upload-zone:hover {
    border-color: var(--primary);
    background: rgba(109, 40, 217, 0.03);
}

.upload-zone i {
    font-size: 2.5rem;
    color: var(--primary);
}

.file-preview {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.04);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Dashboard Metric Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.metric-card {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.metric-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    background: rgba(109, 40, 217, 0.08);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: 1px solid rgba(109, 40, 217, 0.2);
}

.metric-info h3 {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.metric-info p {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.2;
}

/* Tables */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    margin-top: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-glass);
}

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

th {
    background: rgba(243, 244, 246, 0.95);
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.65rem 1rem;
    border-bottom: 1px solid var(--border-glass);
}

td {
    padding: 0.65rem 1rem;
    border-bottom: 1px solid var(--border-glass);
    color: var(--text-main);
    font-size: 0.82rem;
    background: transparent;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: rgba(109, 40, 217, 0.02);
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 15, 46, 0.4);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(109, 40, 217, 0.15);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    transition: var(--transition-smooth);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-content > form {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text-dark);
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.modal-close:hover {
    color: var(--text-dark);
}

.modal-body {
    padding: 1.5rem;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.modal-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--border-glass);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    background: rgba(243, 244, 246, 0.5);
}

/* Notification Drawer */
.noti-drawer {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 400px;
    height: 550px;
    background: var(--bg-card);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    box-shadow: 0 15px 40px rgba(109, 40, 217, 0.15);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.noti-drawer.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.noti-drawer-header {
    background: var(--primary);
    color: white;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.noti-drawer-header i {
    font-size: 1.4rem;
}

.noti-drawer-header-info {
    flex-grow: 1;
}

.noti-drawer-header-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0;
}

.noti-drawer-header-info p {
    font-size: 0.75rem;
    opacity: 0.8;
    margin: 0;
}

.noti-drawer-body {
    flex-grow: 1;
    background: #fdfcff;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Notification Item / Card */
.noti-item {
    background: white;
    border: 1px solid rgba(109, 40, 217, 0.08);
    border-radius: var(--radius-md);
    padding: 0.85rem 1rem;
    position: relative;
    box-shadow: var(--shadow-premium);
    transition: var(--transition-fast);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.noti-item.unread {
    border-left: 4px solid var(--primary);
    background: rgba(109, 40, 217, 0.02);
}

.noti-item-title {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-dark);
}

.noti-item-msg {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.noti-item-time {
    font-size: 0.7rem;
    color: var(--text-muted);
    opacity: 0.7;
    margin-top: 0.25rem;
    align-self: flex-end;
}

/* Alert Notification System */
.alert-toast {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(-50px);
    opacity: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-glass-focus);
    border-radius: var(--radius-md);
    padding: 1rem 1.5rem;
    box-shadow: 0 15px 30px rgba(109, 40, 217, 0.15);
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-main);
    transition: var(--transition-smooth);
    pointer-events: none;
}

.alert-toast.active {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.alert-toast.danger {
    border-color: var(--danger);
}

.alert-toast.success {
    border-color: var(--success);
}

/* Class Catalog Grid */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

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

.class-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
}

.class-details {
    margin: 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.class-details i {
    width: 20px;
    color: var(--primary);
}

.class-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
    margin: 1rem 0;
}

/* Portal Views layout */
.portal-layout {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.portal-sidebar {
    width: 250px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.portal-sidebar-btn {
    width: 100%;
    padding: 0.9rem 1.25rem;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    font-family: var(--font-main);
    font-weight: 600;
    text-align: left;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.portal-sidebar-btn:hover, .portal-sidebar-btn.active {
    color: var(--primary);
    background: rgba(109, 40, 217, 0.05);
    border-color: var(--border-glass);
}

.portal-sidebar-btn.active {
    border-left: 4px solid var(--primary);
}

.portal-content {
    flex-grow: 1;
}

/* Image zoom styling */
.img-zoom-viewer {
    max-width: 100%;
    max-height: 350px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-glass);
    margin: 1rem 0;
    display: block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .portal-layout {
        flex-direction: column;
    }
    
    .portal-sidebar {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    
    .portal-sidebar-btn {
        width: auto;
        white-space: nowrap;
        padding: 0.75rem 1rem;
    }
    
    .wa-drawer {
        width: calc(100vw - 2rem);
        right: 1rem;
        left: 1rem;
    }
}

.clickable-image {
    cursor: pointer;
    transition: transform var(--transition-fast) ease;
}
.clickable-image:hover {
    transform: scale(1.02);
}

/* Social Media Buttons */
.btn-social {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    color: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--font-main);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.btn-social:hover {
    transform: translateY(-3px) scale(1.03);
    filter: brightness(1.15);
}
.btn-social.telegram {
    background: linear-gradient(135deg, #00b4db 0%, #0083b0 100%);
    box-shadow: 0 4px 15px rgba(0, 131, 176, 0.35), 0 0 1px rgba(0, 131, 176, 0.5);
}
.btn-social.telegram:hover {
    box-shadow: 0 8px 25px rgba(0, 131, 176, 0.5), 0 0 10px rgba(0, 180, 219, 0.3);
}
.btn-social.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    box-shadow: 0 4px 15px rgba(220, 39, 67, 0.35), 0 0 1px rgba(220, 39, 67, 0.5);
}
.btn-social.instagram:hover {
    box-shadow: 0 8px 25px rgba(220, 39, 67, 0.5), 0 0 10px rgba(204, 35, 102, 0.3);
}
.btn-social.youtube {
    background: linear-gradient(135deg, #ff4b1f 0%, #ff1e56 100%);
    box-shadow: 0 4px 15px rgba(255, 30, 86, 0.35), 0 0 1px rgba(255, 30, 86, 0.5);
}
.btn-social.youtube:hover {
    box-shadow: 0 8px 25px rgba(255, 30, 86, 0.5), 0 0 10px rgba(255, 75, 31, 0.3);
}
.btn-social.wa-channel {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    box-shadow: 0 4px 15px rgba(56, 239, 125, 0.35), 0 0 1px rgba(56, 239, 125, 0.5);
}
.btn-social.wa-channel:hover {
    box-shadow: 0 8px 25px rgba(56, 239, 125, 0.5), 0 0 10px rgba(17, 153, 142, 0.3);
}

/* Quill Custom Style for Premium Aesthetic */
.ql-toolbar.ql-snow {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border-glass) !important;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    padding: 0.5rem !important;
}
.ql-container.ql-snow {
    background: var(--bg-card);
    border: 1px solid var(--border-glass) !important;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    font-family: var(--font-main) !important;
    font-size: 0.95rem;
}
.ql-editor {
    min-height: 250px;
    max-height: 450px;
}

/* Styling for landing page dynamic content view */
.landing-page-content-view.ql-editor {
    min-height: unset !important;
    max-height: unset !important;
    padding: 0 !important;
    overflow: visible !important;
    font-family: var(--font-main) !important;
    text-align: left;
}
.landing-page-content-view.ql-editor h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    font-family: var(--font-main);
}
.landing-page-content-view.ql-editor h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-family: var(--font-main);
}
.landing-page-content-view.ql-editor h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-family: var(--font-main);
}
.landing-page-content-view.ql-editor p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}
.landing-page-content-view.ql-editor img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 1rem 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.landing-page-content-view.ql-editor .ql-align-center {
    text-align: center;
}
.landing-page-content-view.ql-editor .ql-align-right {
    text-align: right;
}
.landing-page-content-view.ql-editor .ql-align-justify {
    text-align: justify;
}
.landing-page-content-view.ql-editor .ql-align-left {
    text-align: left;
}

/* Print Stylesheet */
@media print {
    body * {
        visibility: hidden;
    }
    
    #printableReportArea, #printableReportArea * {
        visibility: visible;
    }
    
    #printableReportArea {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        background: #ffffff !important;
        color: #000000 !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    #printableReportArea * {
        color: #000000 !important;
        border-color: #cccccc !important;
        text-shadow: none !important;
    }

    #reportTotalRevenue {
        color: #1b8a5a !important;
    }

    #reportTotalExpense {
        color: #c53030 !important;
    }

    #reportNetSurplus {
        color: inherit !important;
    }

    .no-print {
        display: none !important;
    }
    
    .print-only-block {
        display: block !important;
    }
}

.print-only-block {
    display: none;
}

/* ================= THEME SYSTEMS (10 PREMIUM THEMES) ================= */

/* 1. Lavender Dream (Default) */
body.theme-lavender {
    --bg-main: hsl(270, 30%, 98%);
    --bg-header: rgba(243, 232, 255, 0.85);
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-card-hover: rgba(255, 255, 255, 0.95);
    --border-glass: rgba(109, 40, 217, 0.24);
    --border-glass-focus: rgba(109, 40, 217, 0.5);
    --primary: hsl(271, 81%, 38%);
    --primary-hover: hsl(271, 81%, 28%);
    --primary-glow: rgba(109, 40, 217, 0.15);
    --secondary: hsl(271, 91%, 65%);
    --text-main: hsl(270, 40%, 15%);
    --text-muted: hsl(270, 15%, 45%);
    --text-dark: hsl(270, 40%, 10%);
    --shadow-premium: 0 8px 32px 0 rgba(109, 40, 217, 0.06);
    --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* 2. Emerald Mint */
body.theme-emerald {
    --bg-main: hsl(160, 30%, 98%);
    --bg-header: rgba(224, 251, 240, 0.85);
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-card-hover: rgba(255, 255, 255, 0.95);
    --border-glass: rgba(16, 185, 129, 0.24);
    --border-glass-focus: rgba(16, 185, 129, 0.5);
    --primary: hsl(162, 80%, 25%);
    --primary-hover: hsl(162, 80%, 18%);
    --primary-glow: rgba(16, 185, 129, 0.15);
    --secondary: hsl(150, 60%, 45%);
    --text-main: hsl(162, 40%, 12%);
    --text-muted: hsl(162, 15%, 40%) ;
    --text-dark: hsl(162, 40%, 8%);
    --shadow-premium: 0 8px 32px 0 rgba(16, 185, 129, 0.06);
    --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* 3. Ocean Breeze */
body.theme-ocean {
    --bg-main: hsl(205, 40%, 98%);
    --bg-header: rgba(224, 242, 254, 0.85);
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-card-hover: rgba(255, 255, 255, 0.95);
    --border-glass: rgba(14, 165, 233, 0.24);
    --border-glass-focus: rgba(14, 165, 233, 0.5);
    --primary: hsl(210, 85%, 35%);
    --primary-hover: hsl(210, 85%, 28%);
    --primary-glow: rgba(14, 165, 233, 0.15);
    --secondary: hsl(195, 80%, 55%);
    --text-main: hsl(210, 45%, 15%);
    --text-muted: hsl(210, 15%, 45%);
    --text-dark: hsl(210, 45%, 10%);
    --shadow-premium: 0 8px 32px 0 rgba(14, 165, 233, 0.06);
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* 4. Sunset Glow */
body.theme-sunset {
    --bg-main: hsl(25, 40%, 98%);
    --bg-header: rgba(255, 237, 213, 0.85);
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-card-hover: rgba(255, 255, 255, 0.95);
    --border-glass: rgba(249, 115, 22, 0.24);
    --border-glass-focus: rgba(249, 115, 22, 0.5);
    --primary: hsl(5, 75%, 45%);
    --primary-hover: hsl(5, 75%, 38%);
    --primary-glow: rgba(249, 115, 22, 0.15);
    --secondary: hsl(35, 90%, 55%);
    --text-main: hsl(10, 40%, 15%);
    --text-muted: hsl(10, 15%, 45%);
    --text-dark: hsl(10, 40%, 10%);
    --shadow-premium: 0 8px 32px 0 rgba(249, 115, 22, 0.06);
    --font-main: 'Quicksand', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* 5. Rose Quartz */
body.theme-rose {
    --bg-main: hsl(340, 30%, 99%);
    --bg-header: rgba(252, 231, 243, 0.85);
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-card-hover: rgba(255, 255, 255, 0.95);
    --border-glass: rgba(236, 72, 153, 0.24);
    --border-glass-focus: rgba(236, 72, 153, 0.5);
    --primary: hsl(330, 70%, 35%);
    --primary-hover: hsl(330, 70%, 28%);
    --primary-glow: rgba(236, 72, 153, 0.15);
    --secondary: hsl(340, 80%, 70%);
    --text-main: hsl(330, 40%, 15%);
    --text-muted: hsl(330, 15%, 45%);
    --text-dark: hsl(330, 40%, 10%);
    --shadow-premium: 0 8px 32px 0 rgba(236, 72, 153, 0.06);
    --font-main: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* 6. Forest Matcha */
body.theme-matcha {
    --bg-main: hsl(95, 20%, 98%);
    --bg-header: rgba(236, 253, 230, 0.85);
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-card-hover: rgba(255, 255, 255, 0.95);
    --border-glass: rgba(132, 204, 22, 0.24);
    --border-glass-focus: rgba(132, 204, 22, 0.5);
    --primary: hsl(120, 40%, 28%);
    --primary-hover: hsl(120, 40%, 20%);
    --primary-glow: rgba(132, 204, 22, 0.15);
    --secondary: hsl(95, 60%, 50%);
    --text-main: hsl(120, 35%, 15%);
    --text-muted: hsl(120, 15%, 45%);
    --text-dark: hsl(120, 35%, 10%);
    --shadow-premium: 0 8px 32px 0 rgba(132, 204, 22, 0.06);
    --font-main: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* 7. Midnight Cyber (Futuristic Dark Mode) */
body.theme-midnight {
    --bg-main: hsl(222, 47%, 11%);
    --bg-header: rgba(15, 23, 42, 0.85);
    --bg-card: rgba(30, 41, 59, 0.7);
    --bg-card-hover: rgba(30, 41, 59, 0.9);
    --border-glass: rgba(6, 182, 212, 0.3);
    --border-glass-focus: rgba(6, 182, 212, 0.6);
    --primary: hsl(185, 90%, 45%);
    --primary-hover: hsl(185, 90%, 38%);
    --primary-glow: rgba(6, 182, 212, 0.25);
    --secondary: hsl(220, 80%, 65%);
    --text-main: hsl(210, 40%, 96%);
    --text-muted: hsl(215, 20%, 65%);
    --text-dark: hsl(210, 40%, 100%);
    --shadow-premium: 0 12px 40px 0 rgba(0, 0, 0, 0.35);
    --font-main: 'Chakra Petch', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* 8. Royal Gold */
body.theme-royal {
    --bg-main: hsl(240, 20%, 98%);
    --bg-header: rgba(254, 243, 199, 0.85);
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-card-hover: rgba(255, 255, 255, 0.95);
    --border-glass: rgba(217, 119, 6, 0.24);
    --border-glass-focus: rgba(217, 119, 6, 0.5);
    --primary: hsl(240, 70%, 30%);
    --primary-hover: hsl(240, 70%, 22%);
    --primary-glow: rgba(217, 119, 6, 0.15);
    --secondary: hsl(42, 65%, 55%);
    --text-main: hsl(240, 40%, 12%);
    --text-muted: hsl(240, 15%, 45%);
    --text-dark: hsl(240, 40%, 8%);
    --shadow-premium: 0 8px 32px 0 rgba(217, 119, 6, 0.06);
    --font-main: 'Lora', Georgia, serif;
}

/* 9. Warm Terracotta */
body.theme-terracotta {
    --bg-main: hsl(30, 30%, 98%);
    --bg-header: rgba(255, 237, 225, 0.85);
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-card-hover: rgba(255, 255, 255, 0.95);
    --border-glass: rgba(234, 88, 12, 0.24);
    --border-glass-focus: rgba(234, 88, 12, 0.5);
    --primary: hsl(18, 65%, 40%);
    --primary-hover: hsl(18, 65%, 32%);
    --primary-glow: rgba(234, 88, 12, 0.15);
    --secondary: hsl(30, 70%, 60%);
    --text-main: hsl(18, 40%, 15%);
    --text-muted: hsl(18, 15%, 45%);
    --text-dark: hsl(18, 40%, 10%);
    --shadow-premium: 0 8px 32px 0 rgba(234, 88, 12, 0.06);
    --font-main: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* 10. Charcoal Minimalist */
body.theme-charcoal {
    --bg-main: hsl(0, 0%, 98%);
    --bg-header: rgba(243, 244, 246, 0.85);
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-card-hover: rgba(255, 255, 255, 0.95);
    --border-glass: rgba(75, 85, 99, 0.24);
    --border-glass-focus: rgba(75, 85, 99, 0.5);
    --primary: hsl(0, 0%, 20%);
    --primary-hover: hsl(0, 0%, 12%);
    --primary-glow: rgba(75, 85, 99, 0.15);
    --secondary: hsl(0, 0%, 50%);
    --text-main: hsl(0, 0%, 10%);
    --text-muted: hsl(0, 0%, 45%);
    --text-dark: hsl(0, 0%, 5%);
    --shadow-premium: 0 8px 32px 0 rgba(75, 85, 99, 0.06);
    --font-main: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ================= THEME SELECTOR UI STYLES ================= */
.theme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.25rem;
    margin-top: 1rem;
}

.theme-card {
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.4);
    padding: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
}

body.theme-midnight .theme-card {
    background: rgba(30, 41, 59, 0.3);
}

.theme-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: 0 4px 15px var(--primary-glow);
}

.theme-card.active {
    border-color: var(--primary);
    border-width: 2px;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 8px 25px var(--primary-glow);
}

body.theme-midnight .theme-card.active {
    background: rgba(30, 41, 59, 0.8);
}

.theme-card-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.theme-card.active .theme-card-title::after {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary);
    font-size: 0.95rem;
}

.theme-card-preview {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    background: rgba(0, 0, 0, 0.03);
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    border: 1px dashed rgba(0, 0, 0, 0.05);
}

body.theme-midnight .theme-card-preview {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.theme-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.theme-font-preview {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
}

