/* JEPCO STYLES V1.0 - 2026-04-27 */
:root {
    /* Primary Palette */
    --bg-dark: #0a0c10;
    --bg-card: rgba(30, 41, 59, 0.7);
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
    
    /* Branding */
    --slate-gray: #334155;
    --tech-blue: #3b82f6;
    --accent-blue: #60a5fa;
    --glass-border: rgba(255, 255, 255, 0.1);
    
    /* Focus Mode (Thesis) */
    --thesis-bg: #fdfdfd;
    --thesis-text: #1a202c;
    --thesis-accent: #2d3748;
    
    /* Transition */
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    transition: var(--transition);
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: -10%;
    left: -10%;
    width: 40%;
    height: 40%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    bottom: -10%;
    right: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(51, 65, 85, 0.1) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

body.focus-mode::before,
body.focus-mode::after {
    display: none;
}

body.focus-mode {
    background-color: var(--thesis-bg);
    color: var(--thesis-text);
}

/* --- Layout --- */

.dashboard {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
}

.sidebar {
    background: rgba(15, 23, 42, 0.9);
    border-right: 1px solid var(--glass-border);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 10;
}

.main-content {
    padding: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* --- Navigation & Brand --- */

.brand h1 {
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    font-weight: 800;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.focus-mode .brand h1 {
    background: none;
    -webkit-text-fill-color: var(--thesis-text);
}

.nav-links {
    margin-top: 3rem;
    list-style: none;
}

.nav-links li {
    margin-bottom: 1.5rem;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}

.nav-links li a {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    transition: var(--transition);
}

.nav-links li:hover {
    color: var(--tech-blue);
    transform: translateX(8px);
}

/* --- Dashboard Grid --- */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--tech-blue);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--tech-blue);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.card-heading {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.card-description {
    color: var(--text-dim);
    font-size: 1rem;
    line-height: 1.6;
}

/* --- High Focus Mode Toggle --- */

.focus-toggle {
    position: fixed;
    top: 2rem;
    right: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-card);
    padding: 0.75rem 1.5rem;
    border-radius: 100px;
    border: 1px solid var(--glass-border);
    cursor: pointer;
    z-index: 100;
    transition: var(--transition);
}

.focus-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.focus-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 10px #4ade80;
}

.focus-mode .focus-indicator {
    background: var(--tech-blue);
    box-shadow: 0 0 10px var(--tech-blue);
}

/* --- Thesis Mode (Whitepaper) --- */

.thesis-view {
    display: none;
    max-width: 800px;
    margin: 4rem auto;
}

.focus-mode .thesis-view {
    display: block;
}

.focus-mode .grid, 
.focus-mode .sidebar {
    display: none;
}

.thesis-view h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 800;
}

.thesis-content {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #4a5568;
}

.thesis-content p {
    margin-bottom: 2rem;
}

/* --- Animations --- */

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.card {
    animation: fadeIn 0.6s ease-out forwards;
}
