/* ==========================================================================
   Hyperion Core - Dynamic Single-Page Architecture Stylesheet
   ========================================================================== */

/* Design Variables - Pure Black with Transparent Mesh Highlights */
:root {
    --bg: #000000;                      
    --card-bg: rgba(13, 13, 13, 0.75);   
    --accent: #ffffff;                  
    --text-main: #ffffff;               
    --text-dim: #777777;                
    --border: #222222;                  
}

* { 
    box-sizing: border-box; 
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg);
    color: var(--text-main);
    font-family: 'JetBrains Mono', monospace;
    display: flex;
    justify-content: center;
    align-items: flex-start; 
    min-height: 100vh;
    overflow-x: hidden; 
}

/* Ambient Backlighting Gradient Core */
body::before {
    content: '';
    position: fixed;
    top: -110%;
    right: -750px; 
    width: 1500px;
    height: 1500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 1) 3%, rgba(255, 255, 255, 0.8) 4%, rgba(255, 255, 255, 0.12) 8%, rgba(255, 255, 255, 0) 100%);
    z-index: -1;
    pointer-events: none;
}

/* ==========================================================================
   SECTION 1: Login Gateway Layout
   ========================================================================== */
.gateway-screen {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    background-color: var(--bg); 
}

.login-box {
    width: 100%;
    max-width: 360px;
    padding: 40px 30px;
    border: 1px solid var(--border);
    background-color: var(--bg);
    text-align: center;
}

.login-box h2 {
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
}

.input-group {
    margin-bottom: 25px;
    text-align: left;
}

.input-group label {
    display: block;
    font-size: 10px;
    color: var(--text-dim);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

input[type="password"] {
    width: 100%;
    background: #000000;
    border: 1px solid var(--border);
    color: var(--accent);
    padding: 12px;
    font-size: 12px;
    font-family: 'JetBrains Mono', monospace;
    outline: none;
    border-radius: 0px;
    transition: border-color 0.2s ease;
}

input[type="password"]:focus {
    border-color: var(--accent);
}

.signin-btn {
    width: 100%;
    background: var(--accent);
    color: var(--bg);
    border: 1px solid var(--accent);
    padding: 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    text-transform: uppercase;
    border-radius: 0px;
    transition: all 0.2s ease-in-out;
}

.signin-btn:hover {
    background: var(--bg);
    color: var(--accent);
}

#error-msg {
    font-size: 10px;
    margin-top: 15px;
    min-height: 15px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ==========================================================================
   SECTION 2: Main Application Dashboard Screen
   ========================================================================== */
.main-learning-page {
    width: 100%;
    max-width: 1000px;
    padding: 80px 20px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding-bottom: 24px;
    margin-bottom: 50px;
}

header h1 {
    font-family: 'Major Mono Display', monospace;
    font-size: 1.5rem;
    letter-spacing: -1px;
    text-transform: lowercase;
}

.system-status {
    font-size: 10px;
    color: var(--text-dim);
    text-align: right;
    line-height: 1.5;
}

.little_dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    margin-right: 6px;
    box-shadow: 0 0 5px var(--accent);
}

/* Dashboard Modular Card Grid */
main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.module-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.module-card:hover { 
    transform: translateY(-5px); 
    border-color: var(--accent); 
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.05);
    background: rgba(20, 20, 20, 0.85);
}

.module-id { 
    font-size: 10px; 
    color: var(--text-dim); 
    font-weight: 700; 
    margin-bottom: 15px; 
    letter-spacing: 1px; 
}


.module-card h3 { 
    font-family: 'Major Mono Display', monospace !important; 
    margin: 0 0 15px 0; 
    font-size: 16px; 
    color: var(--text-main); 
    
    /* REMOVED: text-transform: lowercase; (This was corrupting the bracket entities) */
    text-transform: none; 
    
    letter-spacing: 0px;
    display: block;
}
.description { 
    font-size: 11px; 
    color: var(--text-dim); 
    margin-bottom: 30px; 
    line-height: 1.6; 
}

.launch-btn {
    text-decoration: none;
    color: #000000;
    background-color: var(--accent);
    font-weight: 700;
    padding: 14px;
    border-radius: 2px;
    text-align: center;
    font-size: 11px;
    margin-top: auto;
    letter-spacing: 1px;
    display: block;
    transition: all 0.2s ease;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

.launch-btn:hover {
    opacity: 0.9;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

/* Console Logs Overlay */
.console-container { 
    margin-top: 60px; 
    background: rgba(0, 0, 0, 0.9); 
    border: 1px solid var(--border); 
    padding: 20px; 
    display: flex;
    flex-direction: column;
    gap: 30px;
    backdrop-filter: blur(8px);
}

#log-stream { 
    font-size: 11px; 
    color: var(--text-main); 
    opacity: 0.4; 
    line-height: 1.8; 
}

.first.module h2 {
    font-family: 'Major Mono Display', monospace;
    font-size: 1.1rem;
    color: var(--text-main);
    text-transform: lowercase;
    margin-bottom: 15px;
    border-bottom: 1px dashed var(--border);
    padding-bottom: 10px;
}

.first.module footer {
    font-size: 11px;
    color: var(--text-dim);
    line-height: 1.8;
    white-space: pre-wrap; 
}
