/* RESET & CORE VARIABLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

:root {
    --bg-dark: #0a0b0d;
    --card-bg: #13161c;
    --accent-cyan: #00f0ff;
    --text-main: #ffffff;
    --text-muted: #8a94a6;
    --border-color: #242936;
    --error-red: #ff4a4a;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
}

/* FUTURISTIC GLOW BACKGROUND */
.glow-bg {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.05) 0%, rgba(0,0,0,0) 70%);
    top: -10%;
    right: -10%;
    z-index: 0;
    pointer-events: none;
}

.container {
    width: 100%;
    max-width: 480px;
    padding: 20px;
    z-index: 1;
}

/* CARD LAYOUT */
.portal-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.portal-card:hover {
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 240, 255, 0.03);
}

/* HEADERS & TEXT */
.brand-header {
    text-align: center;
    margin-bottom: 32px;
}

.brand-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-main);
    margin-bottom: 8px;
}

.brand-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* FORMS & INPUTS */
.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.input-group input {
    width: 100%;
    background: #0d0f13;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 12px 16px;
    color: var(--text-main);
    font-size: 1rem;
    transition: all 0.2s;
}

.input-group input:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.2);
}

/* BUTTONS */
.btn-primary {
    width: 100%;
    background: var(--accent-cyan);
    color: #000000;
    border: none;
    border-radius: 6px;
    padding: 14px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 10px;
}

.btn-primary:hover {
    background: #00d8e6;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    border-color: var(--error-red);
    color: var(--error-red);
}

/* DASHBOARD SPECIFICS */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    background: rgba(0, 240, 255, 0.1);
    color: var(--accent-cyan);
    padding: 4px 8px;
    border-radius: 4px;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.divider {
    border: 0;
    height: 1px;
    background: var(--border-color);
    margin-bottom: 24px;
}

h3 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: var(--text-muted);
}

/* FILE LIST ARRANGEMENT */
.files-list {
    list-style: none;
}

.file-item {
    background: #0d0f13;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.file-info .file-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.file-info .file-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.download-link {
    color: var(--accent-cyan);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    border-bottom: 1px solid transparent;
}

.download-link:hover {
    border-color: var(--accent-cyan);
}

/* UTILITIES */
.hidden { display: none !important; }
.loading { color: var(--text-muted); font-style: italic; font-size: 0.9rem; }
.error-msg { color: var(--error-red); font-size: 0.85rem; margin-top: 12px; text-align: center; }
