/* ListenThrough Styles */

:root {
    /* Colors */
    --off-white: #F6F5F2;
    --charcoal: #1E1E1E;
    --slate-blue: #4F6D7A;
    --forest-pine: #3d5a4a;
    --soft-moss: #6b8e23;
    --soft-moss-light: #f0f4f0;
    --lichen-gold: #d4a574;
    --trail-sand: #8b7355;
    --sand-dark: #e8e6e0;
    
    --text-primary: #1E1E1E;
    --text-secondary: #666;
    --border-subtle: #e0e0e0;
    --surface-white: #fff;
    --glow-subtle: rgba(246, 245, 242, 0.5);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--off-white);
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--off-white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-content {
    text-align: center;
}

.loading-content h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem;
    color: var(--forest-pine);
    margin-bottom: 20px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    border: 4px solid var(--border-subtle);
    border-top-color: var(--forest-pine);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Login Screen */
.login-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    max-width: 500px;
    width: 100%;
    text-align: center;
}

.brand-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 4rem;
    color: var(--forest-pine);
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.login-form {
    background: var(--surface-white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    margin-bottom: 20px;
}

.login-form input {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
    border: 2px solid var(--border-subtle);
    border-radius: 8px;
    margin-bottom: 15px;
    font-family: 'Inter', sans-serif;
}

.login-form input:focus {
    outline: none;
    border-color: var(--forest-pine);
}

.primary-button {
    width: 100%;
    padding: 15px;
    background: var(--forest-pine);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.primary-button:hover {
    background: #2d4336;
}

.primary-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.help-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.help-text a {
    color: var(--forest-pine);
    text-decoration: none;
}

.help-text a:hover {
    text-decoration: underline;
}

/* App Header */
.app-header {
    background: var(--surface-white);
    border-bottom: 1px solid var(--border-subtle);
    padding: 20px 0;
    margin-bottom: 30px;
}

.app-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    color: var(--forest-pine);
    margin: 0;
}

.main-nav {
    display: flex;
    gap: 10px;
}

.nav-button {
    padding: 10px 20px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s;
}

.nav-button:hover {
    background: var(--off-white);
    color: var(--text-primary);
}

.nav-button.active {
    background: var(--forest-pine);
    color: white;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logout-button {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
}

.logout-button:hover {
    border-color: var(--charcoal);
    color: var(--charcoal);
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Progress Message */
.progress-message {
    background: var(--surface-white);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    margin: 40px 0;
}

.progress-message h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    color: var(--forest-pine);
    margin-bottom: 15px;
}

.progress-bar-container {
    background: var(--border-subtle);
    border-radius: 10px;
    height: 30px;
    margin: 20px 0;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, var(--forest-pine), var(--soft-moss));
    height: 100%;
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .app-header .container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .main-nav {
        justify-content: center;
    }
    
    .user-info {
        justify-content: center;
    }
    
    .brand-title {
        font-size: 3rem;
    }
}