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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

header {
    padding: 3rem 1rem;
    color: white;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.brand {
    text-align: center;
    flex: 1;
}

.auth-container {
    min-width: 200px;
}

header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
}

.dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 3rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.2);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
    font-weight: 600;
}

.card p {
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
}

.back-button {
    position: fixed;
    top: 2rem;
    left: 2rem;
    background: rgba(255,255,255,0.9);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-button:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.subpage {
    max-width: 1000px;
    margin: 6rem auto 2rem;
    padding: 0 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    min-height: 70vh;
}

.subpage-header {
    padding: 3rem 3rem 2rem;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.subpage-header h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.subpage-header p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
}

.subpage-content {
    padding: 3rem;
}

@media (max-width: 768px) {
    .card-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .back-button {
        top: 1rem;
        left: 1rem;
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .subpage {
        margin-top: 5rem;
        padding: 0 1rem;
    }
    
    .subpage-header {
        padding: 2rem 2rem 1.5rem;
    }
    
    .subpage-header h1 {
        font-size: 2rem;
    }
    
    .subpage-content {
        padding: 2rem;
    }
}

/* Authentication Styles */
.auth-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-name {
    color: white;
    font-weight: 500;
    opacity: 0.9;
}

.auth-button {
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.login-button {
    background: rgba(255,255,255,0.9);
    color: #333;
}

.login-button:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.logout-button {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
}

.logout-button:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-1px);
}

.user-info {
    max-width: 1200px;
    margin: 0 auto 2rem;
    padding: 0 2rem;
}

.user-profile {
    background: rgba(255,255,255,0.95);
    padding: 1.5rem 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.user-profile h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

.user-profile p {
    color: #666;
    margin: 0.25rem 0;
    font-size: 0.9rem;
}

.login-prompt {
    background: rgba(255,255,255,0.95);
    padding: 1.5rem 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    border: 2px solid rgba(255,107,53,0.3);
}

.login-prompt h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

.login-prompt p {
    color: #666;
    margin: 0;
}

.card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.card.disabled:hover {
    transform: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Mobile responsiveness for auth */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .auth-container {
        min-width: auto;
    }
    
    .auth-info {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .user-name {
        font-size: 0.9rem;
    }
}