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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #0f172a;
    color: #e2e8f0;
    line-height: 1.6;
}

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

.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 0;
    border-bottom: 1px solid #334155;
}

.header h1 {
    font-size: 2.5rem;
    color: #f1f5f9;
    margin-bottom: 10px;
}

.subtitle {
    color: #94a3b8;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.auth-section {
    margin-top: 20px;
}

.auth-buttons button {
    margin: 0 10px;
}

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

.main-layout {
    display: flex;
    gap: 30px;
    min-height: calc(100vh - 200px);
}

.sidebar {
    width: 300px;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border: 1px solid #475569;
    border-radius: 12px;
    padding: 20px;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.sidebar-header {
    margin-bottom: 20px;
    border-bottom: 1px solid #475569;
    padding-bottom: 15px;
}

.sidebar-header h3 {
    color: #f1f5f9;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.search-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #475569;
    border-radius: 8px;
    background-color: #0f172a;
    color: #e2e8f0;
    font-size: 0.9rem;
}

.category-nav {
    flex: 1;
    margin-top: 15px;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 200px;
}

.category-nav h4 {
    color: #f1f5f9;
    margin-bottom: 15px;
    font-size: 1rem;
    padding-bottom: 10px;
    border-bottom: 1px solid #475569;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.category-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 150px;
    width: 100% !important;
}

.category-item {
    margin-bottom: 8px !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
}

.category-button {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 8px;
    background-color: #334155;
    color: #e2e8f0;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-button:hover {
    background-color: #475569;
    transform: translateX(2px);
}

.category-button.active {
    background-color: #0ea5e9;
    color: white;
}

.category-count {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
}

.content-area {
    flex: 1;
    min-width: 0;
}

.content-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #334155;
}

.content-header h2 {
    color: #0ea5e9;
    font-size: 2rem;
    margin-bottom: 10px;
}

.content-header p {
    color: #94a3b8;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.raga-count {
    color: #64748b;
    font-size: 0.9rem;
}

.raga-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.raga-item {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border: 1px solid #475569;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.raga-item:hover {
    border-color: #0ea5e9;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.1);
}

.raga-item h4 {
    color: #0ea5e9;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.raga-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.raga-detail {
    color: #cbd5e1;
    font-size: 0.9rem;
}

.raga-detail strong {
    color: #f1f5f9;
}

.raga-description {
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.5;
}

.raga-card {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border: 1px solid #475569;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.raga-card:hover {
    border-color: #0ea5e9;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.1);
}

.raga-card h3 {
    color: #0ea5e9;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.raga-info {
    margin-bottom: 15px;
}

.raga-info p {
    margin-bottom: 8px;
    color: #cbd5e1;
}

.raga-info strong {
    color: #f1f5f9;
}

.rasa-badge {
    display: inline-block;
    padding: 4px 12px;
    background-color: #0ea5e9;
    color: #f1f5f9;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.btn-primary {
    background-color: #0ea5e9;
    color: white;
}

.btn-primary:hover {
    background-color: #0284c7;
}

.btn-secondary {
    background-color: #475569;
    color: #e2e8f0;
}

.btn-secondary:hover {
    background-color: #64748b;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background-color: #1e293b;
    margin: 2% auto;
    padding: 30px;
    border: 1px solid #475569;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content.large {
    max-width: 800px;
    max-height: 85vh;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close {
    color: #94a3b8;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 15px;
    cursor: pointer;
}

.close:hover {
    color: #f1f5f9;
}

#auth-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#auth-form input {
    padding: 12px 15px;
    border: 1px solid #475569;
    border-radius: 8px;
    background-color: #0f172a;
    color: #e2e8f0;
    font-size: 1rem;
}

#comments-section {
    margin-top: 30px;
    border-top: 1px solid #475569;
    padding-top: 20px;
    padding-bottom: 30px;
}

.comment {
    background-color: #0f172a;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.comment-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 10px;
}

.comment-author {
    font-weight: 500;
    color: #0ea5e9;
}

.comment-date {
    color: #94a3b8;
    font-size: 0.9rem;
}

#comment-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #475569;
    border-radius: 8px;
    background-color: #0f172a;
    color: #e2e8f0;
    resize: vertical;
    margin-bottom: 10px;
}

.login-prompt {
    text-align: center;
    color: #94a3b8;
    padding: 20px;
}

.audio-player {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #1e293b;
    border: 1px solid #475569;
    border-radius: 12px;
    padding: 15px;
    min-width: 250px;
}

.audio-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.audio-controls button {
    padding: 8px 15px;
    font-size: 0.9rem;
}

#current-raga {
    flex: 1;
    text-align: center;
    font-size: 0.9rem;
    color: #94a3b8;
}

.play-button {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background-color: #0ea5e9;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
}

.play-button:hover {
    background-color: #0284c7;
    transform: scale(1.1);
}

.play-button.playing {
    background-color: #ef4444;
    animation: pulse 1.5s infinite;
}

.play-button.playing:hover {
    background-color: #dc2626;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .header h1 {
        font-size: 2rem;
    }

    .main-layout {
        flex-direction: column;
        gap: 20px;
    }

    .sidebar {
        width: 100%;
        position: static;
        order: 2;
    }

    .content-area {
        order: 1;
    }

    .content-header h2 {
        font-size: 1.5rem;
    }

    .raga-meta {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 20px;
    }

    .audio-player {
        position: relative;
        bottom: unset;
        right: unset;
        margin-top: 20px;
    }
}