* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Hind Siliguri', 'Outfit', sans-serif;
    transition: background-color 0.25s ease, color 0.25s ease;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Floating Drawer Toggle Button */
.drawer-toggle-btn {
    position: fixed;
    top: 24px;
    left: 16px;
    z-index: 1000;
    background: var(--primary-color);
    color: #FFFFFF;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 148, 168, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, background-color 0.2s;
}

.drawer-toggle-btn:hover {
    transform: scale(1.08);
}

/* Off-Canvas Sidebar Drawer */
.sidebar-drawer {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100vh;
    background-color: var(--bg-drawer);
    border-right: 1px solid var(--border-color);
    z-index: 999;
    display: flex;
    flex-direction: column;
    padding: 24px 18px;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
}

.sidebar-drawer.open {
    left: 0;
}

/* Drawer Header with Logo */
.drawer-header {
    text-align: center;
    margin-bottom: 12px;
}

.drawer-logo {
    max-width: 190px;
    height: auto;
    display: block;
    margin: 0 auto 10px;
}

.drawer-divider {
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-gold) 100%);
    border-radius: 2px;
    margin: 8px 0 16px;
}

/* 4-Theme Switcher Buttons */
.theme-picker-title {
    font-size: 13px;
    text-transform: uppercase;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 8px;
}

.theme-switcher-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 20px;
}

.theme-btn {
    padding: 6px 4px;
    font-size: 11px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-surface);
    color: var(--text-primary);
    cursor: pointer;
    font-weight: 600;
}

.theme-btn.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* Navigation Links */
.drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-grow: 1;
}

.nav-section-title {
    font-size: 12px;
    color: var(--accent-gold);
    font-weight: 700;
    text-transform: uppercase;
    margin: 10px 0 4px;
    letter-spacing: 0.5px;
}

.drawer-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
}

.drawer-link:hover, .drawer-link.active {
    background-color: var(--hover-bg);
    color: var(--primary-color);
}

/* Drawer Footer */
.drawer-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 14px;
    margin-top: 14px;
}

.signout-link {
    color: #e53e3e !important;
}

/* Main App Wrapper */
.app-container {
    padding: 30px 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    flex: 1;
}

/* Footer */
.app-footer {
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    padding: 20px;
    text-align: center;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-links {
    display: flex;
    gap: 15px;
}

.footer-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
}

/* Backdrop */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.4);
    z-index: 998;
    display: none;
}

.drawer-overlay.active {
    display: block;
}


/* Anti-Copy & Print DRM Rules */
body, article, .pillar-card, .notranslate {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}

/* Print Screen / Save as PDF Protection */
@media print {
    html, body {
        display: none !important;
        visibility: hidden !important;
    }
}




/* Zero Zoom & Layout Fit Enforcement */
html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
    touch-action: pan-y !important;
}

/* Global Text Selection Disable */
body, .app-container, .pdf-reader-wrapper, .canvas-viewport-container {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}

/* Allow text selection only in forms */
input, textarea {
    -webkit-user-select: text !important;
    user-select: text !important;
}



/* Global Fixed Viewport & Anti-Distortion Rules */
html {
    touch-action: pan-x pan-y !important;
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
    -webkit-text-size-adjust: 100% !important;
    zoom: 1 !important;
}

body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
    margin: 0;
    padding: 0;
    touch-action: pan-x pan-y !important;
    user-select: none !important;
    -webkit-user-select: none !important;
}

input, textarea {
    user-select: text !important;
    -webkit-user-select: text !important;
}


/* Anti-Theft DRM for Covers & Avatars */
img {
    -webkit-user-drag: none !important;
    -khtml-user-drag: none !important;
    -moz-user-drag: none !important;
    -o-user-drag: none !important;
    user-drag: none !important;
    pointer-events: auto;
}