/* --- CSS: THEME & LAYOUT --- */
:root {
    --bg: #050505;
    --panel: #111;
    --border: #333;
    --text: #aaa;
    --accent: #4CAF50; /* Forest Green */
    --alert: #f44336;
    --font: 'Courier New', Courier, monospace;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font);
    margin: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

/* --- HEADER & USER SWITCHER --- */
#user-select-dropdown {
    width: auto; /* Override the global 100% width */
    padding: 5px 10px;
}
/* --- NAVIGATION --- */
nav {
    display: flex;
    border-bottom: 1px solid var(--border);
    background: var(--panel);
}
.nav-btn {
    flex: 1;
    background: none;
    border: none;
    color: var(--text);
    padding: 15px;
    cursor: pointer;
    font-family: var(--font);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.8rem;
    transition: 0.2s;
}
.nav-btn:hover { background: #222; color: #fff; }
.nav-btn.active { border-bottom: 2px solid var(--accent); color: var(--accent); }

/* --- MAIN CONTENT AREA --- */
main {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    max-width: 600px;
    margin: 0 auto; /* Center on desktop */
    width: 100%;
    box-sizing: border-box;
}

.view { display: none; animation: fadein 0.3s; }
.view.active { display: block; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

/* --- COMPONENTS --- */
h2 { color: #fff; font-size: 1rem; border-bottom: 1px dashed var(--border); padding-bottom: 10px; margin-top: 0; }

.card {
    background: var(--panel);
    border: 1px solid var(--border);
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 4px;
}
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.status { font-size: 0.7rem; padding: 2px 6px; border-radius: 3px; background: #222; border: 1px solid #444; }
.status.live { border-color: var(--accent); color: var(--accent); }

.status.hosting {
    color: #f44336; /* Red */
}
.status.confirmed {
    color: #4CAF50; /* Green */
}
.status.pending {
    color: #FFC107; /* Yellow */
}


/* DASHBOARD SPECIFIC */
.event-row { display: flex; justify-content: space-between; margin-bottom: 5px; font-size: 0.9rem; color: #eee; }
.event-meta { font-size: 0.75rem; color: #666; display: block; margin-bottom: 10px; }
.btn-small { background: #333; color: #fff; border: none; padding: 5px 10px; font-size: 0.7rem; cursor: pointer; font-family: var(--font); }

/* FORM SPECIFIC */
.form-group { margin-bottom: 15px; }
label { display: block; font-size: 0.8rem; margin-bottom: 5px; color: #888; }
input, select, textarea { 
    width: 100%; box-sizing: border-box; background: #000; border: 1px solid #444; color: #fff; padding: 10px; font-family: var(--font); 
}
.toggle-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; border: 1px solid #333; padding: 10px; background: #0a0a0a; }
.toggle-switch { width: 40px; height: 20px; background: #333; position: relative; border-radius: 10px; }
.toggle-switch::after { content:''; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; background: #fff; border-radius: 50%; }
.toggle-active .toggle-switch { background: var(--accent); }
.toggle-active .toggle-switch::after { left: 22px; }

/* New styles for event detail page */
.toggle-label.full-width {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    cursor: pointer;
    padding: 10px;
    background: #0a0a0a;
    border: 1px solid #333;
}
.action-btn { width: 100%; padding: 15px; background: var(--accent); color: #000; font-weight: bold; border: none; cursor: pointer; font-family: var(--font); margin-top: 10px; }

/* ARCHIVE/GALAXY SPECIFIC */
#archive-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}
#archive-header h1 {
    margin: 0;
    font-size: 1.2rem;
    color: #fff;
}
#archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}
.archive-item img {
    width: 100%;
    height: auto;
    border-radius: 2px;
}
.archive-text { margin-top: 0; }
.archive-credit { font-size: 0.7rem; color: #666; text-align: right; display: block; margin-top: 10px; }