/*
Theme Name: Secure Live LMS Theme
Description: A lightning-fast, custom SaaS shell for the SLL platform.
Author: Pamod Prabhashwara - UniGen Technologies LK
Version: 1.0
*/

:root {
    /* Light Mode Variables (Default) */
    --color-brand-primary: #0f172a; 
    --color-brand-accent: #007cba; 
    --color-brand-success: #10b981; 
    --color-bg-body: #f8fafc; 
    --color-bg-surface: #ffffff;
    --color-border: #e2e8f0;
    --color-text-main: #334155;
    --color-text-muted: #64748b;
    --font-family-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body.dark-mode {
    /* Dark Mode Variables */
    --color-brand-primary: #f8fafc; 
    --color-bg-body: #0f172a; 
    --color-bg-surface: #1e293b;
    --color-border: #334155;
    --color-text-main: #f1f5f9;
    --color-text-muted: #94a3b8;
}

/* Base Resets */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: var(--font-family-base);
    background-color: var(--color-bg-body);
    color: var(--color-text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Public Site Typography */
h1, h2, h3, h4 { color: var(--color-brand-primary); font-weight: 700; line-height: 1.2; margin-bottom: 1rem; }
a { color: var(--color-brand-accent); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: #0369a1; }

/* The App Canvas Layout (Used for Dashboards) */
.sll-app-layout { min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: 40px 20px; }
.sll-app-header { width: 100%; max-width: 1000px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.sll-app-logo { font-size: 24px; font-weight: 800; color: var(--color-brand-primary); }

/* --- PLUGIN DARK MODE OVERRIDES --- */
body.dark-mode .sll-sd-wrap,
body.dark-mode .sll-header-bar h2,
body.dark-mode .sll-ch-title,
body.dark-mode .sll-mr-info h4 { color: var(--color-text-main) !important; }

body.dark-mode .sll-catalog-item,
body.dark-mode .sll-catalog-header,
body.dark-mode .sll-prof-card,
body.dark-mode .sll-catalog-body { 
    background-color: var(--color-bg-surface) !important; 
    border-color: var(--color-border) !important; 
}

body.dark-mode .sll-mr-info p,
body.dark-mode .sll-ch-meta,
body.dark-mode .sll-tab-btn { color: var(--color-text-muted) !important; }

body.dark-mode input[type="text"],
body.dark-mode input[type="email"],
body.dark-mode input[type="password"] {
    background-color: var(--color-bg-body) !important;
    color: var(--color-text-main) !important;
    border-color: var(--color-border) !important;
}
/* Login/Register Boxes in Dark Mode */
body.dark-mode div[style*="max-width:400px"],
body.dark-mode div[style*="max-width:450px"] { background: var(--color-bg-surface) !important; color: var(--color-text-main) !important; }

/* --- BUTTON SYSTEM FIX --- */
.sll-btn {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: bold;
    transition: all 0.2s ease;
    cursor: pointer;
}

/* The Primary Button (e.g. Register) */
.sll-btn-primary {
    background-color: var(--color-brand-primary);
    color: white; /* Default for Light Mode */
    border: 1px solid var(--color-brand-primary);
}

/* FIX: Ensure visibility in Dark Mode */
body.dark-mode .sll-btn-primary {
    color: #0f172a !important; /* Dark text on light background */
}

/* The Secondary Button (e.g. Dashboard) */
.sll-btn-accent {
    background-color: var(--color-brand-accent);
    color: white !important;
    box-shadow: 0 4px 6px rgba(0,124,186,0.2);
}

.sll-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}