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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: #fafafa;
    color: #333;
    line-height: 1.6;
}

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

/* Header */
header {
    text-align: center;
    padding: 30px 0;
    border-bottom: 2px solid #2e7d32;
    margin-bottom: 20px;
}

header h1 {
    color: #2e7d32;
    font-size: 2rem;
    margin-bottom: 10px;
}

.day {
    color: #666;
    font-size: 1.1rem;
}

/* Tabs */
.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 30px;
    position: sticky;
    top: 0;
    background: #fafafa;
    padding: 15px 0;
    z-index: 100;
    border-bottom: 1px solid #e0e0e0;
}

.tab {
    padding: 12px 24px;
    border: 2px solid #2e7d32;
    background: white;
    color: #2e7d32;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab:hover {
    background: #e8f5e9;
}

.tab.active {
    background: #2e7d32;
    color: white;
}

/* Content */
.prayer-content {
    display: none;
}

.prayer-content.active {
    display: block;
}

.prayer-content h2 {
    color: #2e7d32;
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

/* Table of Contents */
.toc {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.toc h3 {
    color: #2e7d32;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.toc ol {
    padding-left: 25px;
}

.toc li {
    margin-bottom: 8px;
}

.toc a {
    color: #1976d2;
    text-decoration: none;
    transition: color 0.2s;
}

.toc a:hover {
    color: #2e7d32;
    text-decoration: underline;
}

/* Dua Cards */
.dua {
    background: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #2e7d32;
}

.dua.special {
    border-left-color: #ff9800;
    background: #fffde7;
}

.dua h3 {
    color: #2e7d32;
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #e0e0e0;
}

.dua.special h3 {
    color: #e65100;
}

/* Arabic Text */
.arabic {
    font-family: 'Traditional Arabic', 'Scheherazade New', 'Amiri', serif;
    font-size: 1.8rem;
    line-height: 2.2;
    text-align: right;
    direction: rtl;
    color: #1a1a1a;
    margin-bottom: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
}

/* Latin Text */
.latin {
    font-style: italic;
    color: #555;
    font-size: 1.05rem;
    margin-bottom: 12px;
    padding-left: 15px;
    border-left: 3px solid #81c784;
}

/* Translation */
.translation {
    color: #666;
    font-size: 1rem;
    padding-left: 15px;
    line-height: 1.7;
}

/* Sub Dua (for Tasbih section) */
.sub-dua {
    padding: 15px;
    margin: 15px 0;
    background: #fafafa;
    border-radius: 8px;
}

.sub-dua .arabic {
    font-size: 1.5rem;
    background: white;
}

.note {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 10px;
    font-weight: 600;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px 0;
    margin-top: 40px;
    border-top: 2px solid #2e7d32;
    color: #666;
}

/* Scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        padding: 15px;
    }

    header h1 {
        font-size: 1.5rem;
    }

    .tabs {
        gap: 5px;
    }

    .tab {
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    .arabic {
        font-size: 1.5rem;
        line-height: 2;
    }

    .dua {
        padding: 18px;
    }

    .toc {
        padding: 15px;
    }
}

/* Print styles */
@media print {
    .tabs {
        display: none;
    }

    .prayer-content {
        display: block !important;
        page-break-after: always;
    }

    .dua {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
