* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a3d62 0%, #1e5f74 25%, #2c7a7b 50%, #38a169 75%, #48bb78 100%);
    min-height: 100vh;
    padding: 20px;
    line-height: 1.8;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.99);
    border-radius: 30px;
    box-shadow: 0 35px 100px rgba(0, 0, 0, 0.7);
    overflow: hidden;
    border: 7px solid #38a169;
}

header {
    background: linear-gradient(135deg, #065f46 0%, #047857 25%, #059669 50%, #10b981 75%, #34d399 100%);
    color: white;
    padding: 50px 40px;
    position: relative;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.header-design {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
}

.star-ornament {
    font-size: 3.5em;
    color: #fbbf24;
    animation: rotate 4s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.header-content {
    flex: 1;
    text-align: center;
}

.bismillah {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #fef3c7;
    font-weight: 700;
    direction: rtl;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
}

.crescent-moon {
    font-size: 3em;
    margin: 15px 0;
    display: inline-block;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        text-shadow: 0 0 20px #fbbf24, 0 0 40px #fbbf24;
    }
    50% {
        transform: scale(1.15);
        text-shadow: 0 0 30px #fbbf24, 0 0 50px #fbbf24, 0 0 60px #fbbf24;
    }
}

header h1 {
    font-size: 3.5em;
    margin-bottom: 18px;
    text-shadow: 4px 4px 12px rgba(0, 0, 0, 0.6);
    letter-spacing: 3px;
    font-weight: 900;
}

.main-subtitle {
    font-size: 1.4em;
    opacity: 0.97;
    font-style: italic;
    margin-bottom: 15px;
    font-weight: 600;
}

.hadith-range-box {
    background: rgba(255, 255, 255, 0.2);
    border: 3px solid #fbbf24;
    border-radius: 15px;
    padding: 15px 30px;
    display: inline-block;
    margin: 15px 0;
    backdrop-filter: blur(10px);
}

.range-label {
    font-size: 1.1em;
    font-weight: 600;
    margin-right: 15px;
}

.range-numbers {
    font-size: 1.5em;
    font-weight: 900;
    color: #fbbf24;
    letter-spacing: 3px;
}

.respect-declaration {
    font-size: 1.25em;
    font-weight: 800;
    margin-top: 18px;
    color: #fef3c7;
    text-shadow: 2px 2px 7px rgba(0, 0, 0, 0.5);
    letter-spacing: 1.5px;
}

.content-wrapper {
    display: flex;
    min-height: 800px;
}

.sidebar {
    width: 380px;
    background: linear-gradient(180deg, #ecfdf5 0%, #d1fae5 100%);
    padding: 35px;
    border-right: 7px solid #10b981;
    box-shadow: 7px 0 28px rgba(0, 0, 0, 0.25);
}

.sidebar-header {
    text-align: center;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 5px solid #10b981;
}

.sidebar-icon {
    font-size: 3em;
    margin-bottom: 12px;
}

.sidebar-header h2 {
    color: #065f46;
    font-size: 1.9em;
    font-weight: 900;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.sidebar-description {
    color: #047857;
    font-size: 1.05em;
    font-style: italic;
    font-weight: 600;
}

.hadith-list {
    display: flex;
    flex-direction: column;
    gap: 17px;
    margin-bottom: 30px;
}

.hadith-button {
    background: linear-gradient(135deg, #047857 0%, #10b981 100%);
    color: white;
    border: 4px solid #065f46;
    padding: 22px 28px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: 900;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.6);
    text-align: center;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hadith-button::before {
    content: '☪️';
    position: absolute;
    left: 15px;
    font-size: 1.5em;
    opacity: 0.3;
    transition: all 0.5s ease;
}

.hadith-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.8s, height 0.8s;
}

.hadith-button:hover::before {
    opacity: 0.8;
    transform: scale(1.3);
}

.hadith-button:hover::after {
    width: 450px;
    height: 450px;
}

.hadith-button:hover {
    transform: translateY(-7px) scale(1.05);
    box-shadow: 0 14px 40px rgba(16, 185, 129, 0.8);
    background: linear-gradient(135deg, #059669 0%, #34d399 100%);
    border-color: #10b981;
}

.hadith-button.active {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    transform: scale(1.12);
    box-shadow: 0 16px 45px rgba(239, 68, 68, 0.7);
    border-color: #fbbf24;
    border-width: 5px;
}

.respect-notice {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 4px solid #f59e0b;
    border-radius: 18px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 7px 20px rgba(245, 158, 11, 0.4);
}

.notice-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 3px solid #f59e0b;
}

.notice-icon {
    font-size: 1.8em;
}

.notice-header h3 {
    color: #d97706;
    font-size: 1.2em;
    font-weight: 800;
    text-transform: uppercase;
}

.notice-content p {
    color: #b45309;
    font-weight: 700;
    margin: 12px 0;
    font-size: 0.98em;
    line-height: 1.7;
}

.check-mark {
    color: #059669;
    font-size: 1.2em;
    margin-right: 8px;
}

.authenticity-badge {
    background: linear-gradient(135deg, #065f46 0%, #047857 100%);
    color: white;
    border: 4px solid #fbbf24;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 6px 18px rgba(6, 95, 70, 0.5);
}

.badge-icon {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.authenticity-badge p {
    font-size: 1.1em;
    font-weight: 800;
    letter-spacing: 1px;
}

.main-content {
    flex: 1;
    padding: 50px;
    background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
}

.welcome-message {
    text-align: center;
    color: #1f2937;
    padding: 80px 40px;
}

.welcome-header {
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
}

.mosque-icon {
    font-size: 7em;
    position: relative;
    z-index: 2;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-30px);
    }
}

.icon-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.4) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    animation: glow-pulse 2.5s ease-in-out infinite;
    z-index: 1;
}

@keyframes glow-pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.4);
        opacity: 0.6;
    }
}

.welcome-message h2 {
    color: #065f46;
    margin-bottom: 25px;
    font-size: 3em;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.1);
    font-weight: 900;
}

.welcome-intro {
    font-size: 1.3em;
    margin-bottom: 40px;
    line-height: 2.1;
    color: #374151;
    max-width: 950px;
    margin-left: auto;
    margin-right: auto;
}

.welcome-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.info-box {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 4px solid #10b981;
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.info-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 18px 40px rgba(16, 185, 129, 0.35);
}

.box-icon {
    font-size: 3.5em;
    margin-bottom: 18px;
}

.info-box h3 {
    color: #065f46;
    margin-bottom: 15px;
    font-size: 1.6em;
    font-weight: 800;
}

.info-box p {
    color: #1f2937;
    line-height: 1.9;
    font-size: 1.1em;
}

.selection-prompt {
    margin-top: 50px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 4px solid #f59e0b;
    border-radius: 18px;
    padding: 25px;
    box-shadow: 0 8px 22px rgba(245, 158, 11, 0.3);
}

.selection-prompt p {
    font-size: 1.25em;
    color: #b45309;
    font-weight: 700;
}

.hadith-display {
    animation: slideInFade 0.9s ease;
}

@keyframes slideInFade {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hadith-card {
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    border-radius: 25px;
    padding: 45px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border: 6px solid #10b981;
}

.hadith-header {
    background: linear-gradient(135deg, #065f46 0%, #047857 25%, #059669 50%, #10b981 75%, #34d399 100%);
    color: white;
    padding: 38px;
    border-radius: 20px;
    margin-bottom: 40px;
    text-align: center;
    box-shadow: 0 12px 35px rgba(6, 95, 70, 0.7);
    position: relative;
    overflow: hidden;
}

.hadith-header::before {
    content: '☪️';
    position: absolute;
    font-size: 12em;
    opacity: 0.07;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
}

.hadith-number {
    font-size: 1.7em;
    font-weight: 900;
    margin-bottom: 14px;
    letter-spacing: 2.5px;
    color: #fef3c7;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

.hadith-title {
    font-size: 2.6em;
    font-weight: 900;
    margin-bottom: 14px;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
}

.hadith-book {
    font-size: 1.2em;
    opacity: 0.96;
    font-style: italic;
    margin-top: 12px;
    position: relative;
    z-index: 1;
}

.hadith-section {
    margin-bottom: 35px;
    padding: 32px;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-radius: 18px;
    border-left: 9px solid #10b981;
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s ease;
}

.hadith-section:hover {
    transform: translateX(10px);
}

.section-title {
    color: #065f46;
    font-size: 1.7em;
    font-weight: 900;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 16px;
    border-bottom: 5px solid #10b981;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.section-content {
    color: #111827;
    font-size: 1.15em;
    line-height: 2.2;
    text-align: justify;
}

.narrator-info {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 25px;
    border-radius: 16px;
    font-weight: 700;
    color: #d97706;
    margin-top: 20px;
    border: 4px solid #f59e0b;
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.5);
}

.respect-phrase {
    color: #dc2626;
    font-style: italic;
    font-weight: 900;
    font-size: 1.08em;
    margin-top: 12px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.15);
}

.narrator-chain {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    padding: 25px;
    border-radius: 16px;
    font-style: italic;
    color: #1e40af;
    margin-top: 20px;
    border: 4px solid #3b82f6;
    box-shadow: 0 6px 18px rgba(59, 130, 246, 0.4);
    font-weight: 700;
}

.arabic-text {
    font-size: 2em;
    text-align: center;
    font-weight: 900;
    color: #065f46;
    padding: 32px;
    background: white;
    border-radius: 16px;
    border: 5px dashed #10b981;
    direction: rtl;
    box-shadow: inset 0 4px 12px rgba(0, 0, 0, 0.12);
}

footer {
    background: linear-gradient(135deg, #065f46 0%, #059669 50%, #10b981 100%);
    color: white;
    text-align: center;
    padding: 40px;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.5);
}

.footer-ornament {
    font-size: 2em;
    color: #fbbf24;
    margin: 12px 0;
    letter-spacing: 20px;
}

.footer-main p {
    margin: 12px 0;
    line-height: 2;
}

.footer-title {
    font-size: 1.5em;
}

.footer-title strong {
    color: #fef3c7;
    font-size: 1.25em;
}

.footer-author {
    font-size: 1.2em;
    font-weight: 600;
}

.footer-respect {
    font-style: italic;
    color: #fde68a;
    font-weight: 700;
}

.footer-dates {
    font-weight: 600;
    color: #fef3c7;
}

.footer-status {
    font-style: italic;
    margin-top: 15px;
    font-weight: 700;
    color: #fbbf24;
    font-size: 1.1em;
}

@media (max-width: 1150px) {
    .content-wrapper {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 7px solid #10b981;
    }
    
    .hadith-list {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .hadith-button {
        flex: 1;
        min-width: 170px;
    }
    
    header h1 {
        font-size: 2.8em;
    }
    
    .main-content {
        padding: 40px;
    }
}

@media (max-width: 700px) {
    body {
        padding: 15px;
    }
    
    header h1 {
        font-size: 2.2em;
    }
    
    .hadith-title {
        font-size: 2em;
    }
    
    .main-content {
        padding: 25px;
    }
    
    .hadith-card {
        padding: 30px;
    }
    
    .welcome-info {
        grid-template-columns: 1fr;
    }
}