* {
    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;
    padding: 20px;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1.1em;
    opacity: 0.9;
    font-style: italic;
}

.content-wrapper {
    display: flex;
    min-height: 600px;
}

.sidebar {
    width: 300px;
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px;
    border-right: 3px solid #667eea;
}

.sidebar h2 {
    color: #1e3c72;
    margin-bottom: 20px;
    font-size: 1.5em;
    text-align: center;
}

.hadith-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hadith-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    text-align: left;
}

.hadith-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.hadith-button.active {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(30, 60, 114, 0.5);
}

.main-content {
    flex: 1;
    padding: 40px;
    background: white;
}

.welcome-message {
    text-align: center;
    color: #6c757d;
    padding: 60px 20px;
}

.welcome-message h2 {
    color: #1e3c72;
    margin-bottom: 15px;
    font-size: 2em;
}

.hadith-display {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hadith-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid #667eea;
}

.hadith-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    text-align: center;
}

.hadith-number {
    font-size: 1.3em;
    font-weight: 700;
    margin-bottom: 5px;
}

.hadith-title {
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 5px;
}

.hadith-book {
    font-size: 1em;
    opacity: 0.9;
    font-style: italic;
}

.hadith-section {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 5px solid #667eea;
}

.section-title {
    color: #1e3c72;
    font-size: 1.3em;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-content {
    color: #333;
    font-size: 1.05em;
    line-height: 1.8;
    text-align: justify;
}

.narrator-chain {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    padding: 15px;
    border-radius: 8px;
    font-style: italic;
    color: #1565c0;
    margin-top: 10px;
}

footer {
    background: #1e3c72;
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 0.95em;
}

@media (max-width: 968px) {
    .content-wrapper {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 3px solid #667eea;
    }
    
    .hadith-list {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .hadith-button {
        flex: 1;
        min-width: 120px;
    }
    
    header h1 {
        font-size: 2em;
    }
    
    .main-content {
        padding: 20px;
    }
}