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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
}

body.years-page {
    background: #f5f5f5;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 600px;
    padding: 20px;
    margin: auto;
}

.content {
    background: white;
    border-radius: 12px;
    padding: 48px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
}

h1 {
    font-size: 48px;
    color: #667eea;
    margin-bottom: 16px;
    font-weight: 700;
}

.subtitle {
    font-size: 20px;
    color: #555;
    margin-bottom: 16px;
    font-weight: 500;
}

.description {
    font-size: 16px;
    color: #777;
    line-height: 1.6;
    margin-bottom: 32px;
}

.btn {
    padding: 12px 32px;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-bottom: 20px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.info-text {
    font-size: 14px;
    color: #999;
    font-style: italic;
}

/* Auth Styles */
#auth-ui {
    margin: 2rem 0;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 300px;
    margin: 0 auto;
}

.auth-error {
    color: #ff4757;
    background: #ffe0e0;
    border: 1px solid #ff4757;
    padding: 0.75rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.auth-input {
    padding: 0.75rem;
    border: 2px solid #667eea;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.auth-input:focus {
    outline: none;
    border-color: #764ba2;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.auth-button {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.auth-button:active {
    transform: translateY(0);
}

.auth-button.logout {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
}

.auth-button.logout:hover {
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

.auth-info {
    text-align: center;
    padding: 1.5rem;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 8px;
    border: 2px solid #667eea;
}

.auth-info p {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    color: #333;
}

.auth-info strong {
    color: #667eea;
}

/* Years Page Styles */
.navbar {
    background: white;
    border-bottom: 1px solid #e0e0e0;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.navbar-left,
.navbar-right {
    display: flex;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #667eea;
    margin: 0;
}

.user-menu {
    position: relative;
}

.user-button {
    background: none;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.user-button:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.user-icon {
    display: inline-block;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    margin-top: 8px;
    z-index: 100;
}

.user-email {
    padding: 12px 16px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 14px;
    color: #666;
    margin: 0;
    word-break: break-all;
}

.dropdown-logout {
    width: 100%;
    padding: 12px 16px;
    background: none;
    border: none;
    text-align: left;
    color: #ff4757;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s ease;
}

.dropdown-logout:hover {
    background: #ffe0e0;
}

.years-container {
    flex: 1;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.years-container h1 {
    text-align: left;
    font-size: 32px;
    color: #333;
    margin-bottom: 2rem;
}

.years-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.year-card {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.2s ease;
}

.year-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.2);
}

.year-card h2 {
    font-size: 28px;
    color: #667eea;
    margin: 0;
}

.year-card p {
    color: #999;
    font-size: 13px;
    margin-top: 8px;
}

@media (max-width: 600px) {
    .content {
        padding: 32px 20px;
    }
    
    h1 {
        font-size: 36px;
    }
    
    .subtitle {
        font-size: 18px;
    }
    
    .description {
        font-size: 14px;
    }

    .auth-form {
        max-width: 100%;
    }
    
    .auth-input,
    .auth-button {
        width: 100%;
        box-sizing: border-box;
    }
    
    .navbar {
        padding: 1rem;
    }
    
    .years-container {
        padding: 1rem;
    }
    
    .years-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
}