:root {
    --yt-red:          #ff0000;
    --yt-red-hover:    #cc0000;
    --yt-black:        #0f0f0f;
    --yt-dark:         #181818;
    --yt-surface:      #212121;
    --yt-border:       #303030;
    
    /* Force pure white text everywhere */
    --yt-text:         #ffffff;
    --yt-text-secondary: #ffffff;
    --yt-text-muted:   #ffffff;
    
    --yt-success:      #2e7d32;
    --yt-danger:       #c62828;
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    background-color: var(--yt-dark);
    color: var(--yt-text) !important;  /* Pure white everywhere */
    line-height: 1.5;
    min-height: 100vh;
}

/* Force white text on all common elements */
h1, h2, h3, h4, h5, h6, p, span, div, a, li, button, input, label,
.user-email, .logo, .logo-tagline, .card p, .feedback-section p.subtle,
.main-footer, .flash-message {
    color: #ffffff !important;
}

a { 
    color: #ffffff !important; 
    text-decoration: none; 
}

a:hover {
    color: var(--yt-red) !important;  /* Red on hover for contrast */
    text-decoration: underline;
}

/* Header */
.main-header {
    background: var(--yt-black);
    border-bottom: 1px solid var(--yt-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    max-width: 220px;
    color: #ffffff !important;
}

.logo-red {
    color: var(--yt-red) !important;
    font-weight: 900;
}

/* Nav & Buttons */
.main-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-email {
    color: #ffffff !important;
    font-size: 0.95rem;
    margin-right: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-primary   { background: var(--yt-red); color: white; }
.btn-primary:hover { background: var(--yt-red-hover); }

.btn-nav {
    background: transparent;
    border: 1px solid var(--yt-border);
    color: #ffffff !important;
}

.btn-nav:hover { background: var(--yt-surface); }

.btn-logout {
    color: #ff6b6b !important;
    border-color: #ff6b6b;
}

.btn-logout:hover { background: rgba(255,107,107,0.1); }

/* Flash messages */
.flash-container {
    max-width: 1200px;
    margin: 16px auto;
    padding: 0 24px;
}

.flash-message {
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 16px;
    color: white !important;
}

.flash-success { background: var(--yt-success); }
.flash-error   { background: var(--yt-danger);  }
.flash-info    { background: #01579b; }

/* Content & Footer */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
}

.main-footer {
    background: var(--yt-black);
    border-top: 1px solid var(--yt-border);
    padding: 32px 24px;
    margin-top: 80px;
    text-align: center;
    color: #ffffff !important;
    font-size: 0.9rem;
}

/* Mobile */
@media (max-width: 768px) {
    .main-nav { gap: 12px; }
    .btn { height: 34px; padding: 0 16px; font-size: 13px; }
}