* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #0e0e10;
    color: #efeff1;
    min-height: 100vh;
}

a {
    color: #bf94ff;
    text-decoration: none;
}

a:hover {
    color: #d4b4ff;
}

/* Navbar */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    background: #18181b;
    border-bottom: 1px solid #2f2f35;
}

.nav-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: #bf94ff;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.nav-name {
    font-weight: 500;
}

.nav-link {
    color: #adadb8;
    font-size: 0.875rem;
}

.nav-link:hover {
    color: #efeff1;
}

/* Container */
.container {
    max-width: 720px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Login page */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.login-card {
    text-align: center;
    background: #18181b;
    padding: 3rem;
    border-radius: 8px;
    border: 1px solid #2f2f35;
}

.login-card h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #bf94ff;
}

.login-card p {
    color: #adadb8;
    margin-bottom: 2rem;
}

/* Buttons */
.btn-twitch {
    display: inline-block;
    background: #9146ff;
    color: #fff;
    padding: 0.75rem 2rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.2s;
}

.btn-twitch:hover {
    background: #772ce8;
    color: #fff;
}

.btn-primary {
    display: inline-block;
    background: #9146ff;
    color: #fff;
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #772ce8;
}

/* Progress */
.progress-section {
    margin: 1.5rem 0;
}

.progress-bar-container {
    background: #2f2f35;
    border-radius: 8px;
    height: 24px;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, #9146ff, #bf94ff);
    height: 100%;
    border-radius: 8px;
    transition: width 0.5s ease;
}

.progress-label {
    text-align: center;
    margin-top: 0.5rem;
    color: #adadb8;
    font-size: 0.9rem;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.stat-card {
    background: #18181b;
    border: 1px solid #2f2f35;
    border-radius: 8px;
    padding: 1.25rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #bf94ff;
}

.stat-label {
    font-size: 0.8rem;
    color: #adadb8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Alert */
.alert {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.alert-warning {
    background: #3d2e00;
    border: 1px solid #665000;
    color: #ffcc00;
}

/* No goal */
.no-goal {
    text-align: center;
    padding: 3rem 1rem;
    background: #18181b;
    border: 1px solid #2f2f35;
    border-radius: 8px;
}

.no-goal p {
    color: #adadb8;
    margin-bottom: 1rem;
}

/* Settings */
.settings-card {
    background: #18181b;
    border: 1px solid #2f2f35;
    border-radius: 8px;
    padding: 1.5rem;
}

.settings-card h3 {
    margin-bottom: 1rem;
    color: #bf94ff;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    color: #adadb8;
}

.form-group input {
    width: 100%;
    padding: 0.6rem;
    border-radius: 6px;
    border: 1px solid #2f2f35;
    background: #0e0e10;
    color: #efeff1;
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: #9146ff;
}

/* Streams list */
.streams-section {
    margin-top: 2rem;
}

.streams-section h3 {
    margin-bottom: 0.75rem;
    color: #bf94ff;
}

.streams-list {
    background: #18181b;
    border: 1px solid #2f2f35;
    border-radius: 8px;
    overflow: hidden;
}

.stream-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #2f2f35;
}

.stream-row:last-child {
    border-bottom: none;
}

.stream-date {
    color: #adadb8;
    font-size: 0.9rem;
}

.stream-duration {
    font-weight: 600;
    color: #efeff1;
}

/* Add stream */
.add-stream-section {
    margin-top: 2rem;
}

.add-stream-section h3 {
    margin-bottom: 0.75rem;
    color: #bf94ff;
}

.add-stream-form {
    background: #18181b;
    border: 1px solid #2f2f35;
    border-radius: 8px;
    padding: 1.25rem;
}

.add-stream-fields {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 600px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .navbar {
        flex-direction: column;
        gap: 0.5rem;
    }

    .login-card {
        margin: 1rem;
        padding: 2rem;
    }

    .add-stream-fields {
        grid-template-columns: 1fr;
    }
}
