/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* Header */
.navbar {
    background: linear-gradient(135deg, #1db954, #1ed760);
    color: white;
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: none;
    padding: 0;
}

.nav-brand {
    margin-right: 2rem;
}

.nav-brand h1 {
    font-size: 1.5rem;
    font-weight: bold;
}

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

.nav-links span {
    font-weight: 500;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    display: inline-block;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
}

.nav-links a:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-1px);
}

.nav-links a.active {
    background: rgba(255,255,255,0.3);
    border: 1px solid rgba(255,255,255,0.4);
    font-weight: 600;
}

/* User avatar */
.user-avatar,
.user-avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    object-fit: cover;
}

.user-avatar-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    text-transform: uppercase;
}

/* Buttons */
.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 25px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-primary {
    background: #1db954;
    color: white;
}

.btn-primary:hover {
    background: #1ed760;
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background: rgba(255,255,255,0.3);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-small {
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
}

/* Hero section */
.hero {
    text-align: center;
    padding: 4rem 0;
    background: white;
    border-radius: 15px;
    margin: 2rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.hero p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.demo-disclaimer {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 1rem;
    margin: 2rem auto 3rem auto;
    max-width: 600px;
}

.demo-disclaimer p {
    color: #856404;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.feature {
    text-align: center;
    padding: 1.5rem;
}

.feature h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.feature p {
    color: #666;
    font-size: 0.9rem;
}

/* Welcome section */
.welcome {
    text-align: center;
    padding: 3rem 0;
    background: white;
    border-radius: 15px;
    margin: 2rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.welcome h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #333;
}

.welcome p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

/* Error messages */
.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    border: 1px solid #f5c6cb;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.error-message h3 {
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.error-message p {
    margin: 0.75rem 0;
    line-height: 1.5;
}

.error-message strong {
    font-weight: 600;
    color: #5a1a1a;
}

.error-suggestions {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.error-suggestions li {
    margin: 0.5rem 0;
    line-height: 1.4;
}

.error-actions {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #f5c6cb;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.error-actions .btn {
    margin: 0;
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
}

.error-page {
    text-align: center;
    padding: 4rem 0;
}

.error-page h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #333;
}

.error-page p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

/* Footer */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

/* Loading indicator */
.loading {
    text-align: center;
    padding: 2rem;
    color: #666;
}

/* Modal */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
}

.close:hover {
    color: #333;
}

/* Responsive design */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
    }

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

    .nav-brand {
        margin-right: 0;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .features {
        grid-template-columns: 1fr;
    }
}

/* Loading Progress Styles */
.loading-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loading-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 500px;
    width: 90%;
}

.loading-content h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.famous-quote {
    margin-bottom: 30px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-left: 4px solid #1db954;
    border-radius: 8px;
    min-height: 80px;
    max-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
}

.famous-quote p {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.5;
    font-style: italic;
    margin: 0;
    text-align: left;
    width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.progress-info {
    margin-bottom: 30px;
}

.progress-info p {
    color: #666;
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 500;
}

.progress-bar-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.progress-bar {
    flex: 1;
    height: 12px;
    background-color: #e9ecef;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #1db954, #1ed760);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 6px;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-percentage {
    font-weight: bold;
    color: #1db954;
    font-size: 1rem;
    min-width: 40px;
}

.progress-details {
    color: #888;
    font-style: italic;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #1db954;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .loading-content {
        padding: 30px 20px;
        margin: 20px;
    }

    .loading-content h3 {
        font-size: 1.3rem;
    }

    .progress-bar-container {
        flex-direction: column;
        gap: 10px;
    }

    .progress-percentage {
        order: -1;
    }
}