* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    min-height: 100vh;
    padding: 20px;
    line-height: 1.7;
}

.container {
    max-width: 1450px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 25px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #134e5e 0%, #71b280 100%);
    color: white;
    padding: 35px 30px;
    text-align: center;
    border-bottom: 5px solid #0f4c5c;
}

header h1 {
    font-size: 2.8em;
    margin-bottom: 12px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
    letter-spacing: 1px;
}

.subtitle {
    font-size: 1.2em;
    opacity: 0.95;
    font-style: italic;
    margin-bottom: 8px;
}

.respect-note {
    font-size: 1.1em;
    font-weight: 600;
    margin-top: 10px;
    color: #fff9c4;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.content-wrapper {
    display: flex;
    min-height: 650px;
}

.sidebar {
    width: 320px;
    background: linear-gradient(180deg, #e8f5e9 0%, #c8e6c9 100%);
    padding: 28px;
    border-right: 4px solid #134e5e;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1);
}

.sidebar h2 {
    color: #1b5e20;
    margin-bottom: 22px;
    font-size: 1.6em;
    text-align: center;
    padding-bottom: 12px;
    border-bottom: 3px solid #134e5e;
}

.hadith-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hadith-button {
    background: linear-gradient(135deg, #134e5e 0%, #71b280 100%);
    color: white;
    border: 3px solid #0f4c5c;
    padding: 16px 22px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 1.05em;
    font-weight: 700;
    transition: all 0.4s ease;
    box-shadow: 0 5px 18px rgba(19, 78, 94, 0.5);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hadith-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.hadith-button:hover::before {
    width: 300px;
    height: 300px;
}

.hadith-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(19, 78, 94, 0.7);
    background: linear-gradient(135deg, #71b280 0%, #134e5e 100%);
    border-color: #71b280;
}

.hadith-button.active {
    background: linear-gradient(135deg, #0f4c5c 0%, #1b5e20 100%);
    transform: scale(1.08);
    box-shadow: 0 10px 30px rgba(15, 76, 92, 0.6);
    border-color: #ffd700;
    border-width: 4px;
}

.main-content {
    flex: 1;
    padding: 45px;
    background: linear-gradient(180deg, #ffffff 0%, #f5f5f5 100%);
}

.welcome-message {
    text-align: center;
    color: #37474f;
    padding: 70px 30px;
}

.welcome-message h2 {
    color: #134e5e;
    margin-bottom: 20px;
    font-size: 2.3em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.welcome-message p {
    font-size: 1.15em;
    margin-bottom: 15px;
    line-height: 1.8;
}

.info-box {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border: 3px solid #134e5e;
    border-radius: 12px;
    padding: 25px;
    margin-top: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.info-box p {
    color: #1b5e20;
    font-weight: 600;
    margin: 8px 0;
}

.hadith-display {
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hadith-card {
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    border-radius: 18px;
    padding: 35px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
    border: 3px solid #134e5e;
}

.hadith-header {
    background: linear-gradient(135deg, #134e5e 0%, #71b280 100%);
    color: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(19, 78, 94, 0.4);
}

.hadith-number {
    font-size: 1.4em;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: 1px;
    color: #fff9c4;
}

.hadith-title {
    font-size: 2em;
    font-weight: 800;
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hadith-book {
    font-size: 1.05em;
    opacity: 0.95;
    font-style: italic;
    margin-top: 5px;
}

.hadith-section {
    margin-bottom: 28px;
    padding: 24px;
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
    border-radius: 12px;
    border-left: 6px solid #134e5e;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.section-title {
    color: #1b5e20;
    font-size: 1.4em;
    font-weight: 800;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid #134e5e;
}

.section-content {
    color: #212121;
    font-size: 1.08em;
    line-height: 1.9;
    text-align: justify;
}

.narrator-info {
    background: linear-gradient(135deg, #fff9c4 0%, #fff59d 100%);
    padding: 18px;
    border-radius: 10px;
    font-weight: 600;
    color: #f57f17;
    margin-top: 12px;
    border: 2px solid #f9a825;
    box-shadow: 0 3px 10px rgba(249, 168, 37, 0.3);
}

.respect-phrase {
    color: #1b5e20;
    font-style: italic;
    font-weight: 700;
    font-size: 0.95em;
}

.narrator-chain {
    background: linear-gradient(135deg, #e1f5fe 0%, #b3e5fc 100%);
    padding: 18px;
    border-radius: 10px;
    font-style: italic;
    color: #01579b;
    margin-top: 12px;
    border: 2px solid #0288d1;
    box-shadow: 0 3px 10px rgba(2, 136, 209, 0.3);
}

.arabic-text {
    font-size: 1.5em;
    text-align: center;
    font-weight: 700;
    color: #0f4c5c;
    padding: 20px;
    background: white;
    border-radius: 10px;
    border: 2px dashed #134e5e;
    direction: rtl;
}

footer {
    background: linear-gradient(135deg, #0f4c5c 0%, #1b5e20 100%);
    color: white;
    text-align: center;
    padding: 25px;
    font-size: 1em;
    line-height: 1.8;
}

footer p {
    margin: 5px 0;
}

@media (max-width: 1024px) {
    .content-wrapper {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 4px solid #134e5e;
    }
    
    .hadith-list {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .hadith-button {
        flex: 1;
        min-width: 140px;
    }
    
    header h1 {
        font-size: 2.2em;
    }
    
    .main-content {
        padding: 25px;
    }
    
    .hadith-card {
        padding: 25px;
    }
}

@media (max-width: 600px) {
    body {
        padding: 10px;
    }
    
    header h1 {
        font-size: 1.8em;
    }
    
    .hadith-title {
        font-size: 1.5em;
    }
    
    .main-content {
        padding: 15px;
    }
}