:root {
    --color-primary: #2d7a4e;
    --color-primary-hover: #246640;
    --color-primary-active: #1d5333;
    --color-background: #f8f9fa;
    --color-surface: #ffffff;
    --color-text: #1f2937;
    --color-text-secondary: #6b7280;
    --color-border: #d1d5db;
    --color-success: #10b981;
    --color-accent: #f59e0b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    background: linear-gradient(135deg, var(--color-primary) 0%, #1d5333 100%);
    color: white;
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.header p {
    font-size: 1.1rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.card {
    background: var(--color-surface);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.card h2 {
    color: var(--color-primary);
    margin-bottom: 20px;
    font-size: 1.75rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--color-text);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(45, 122, 78, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    cursor: pointer;
}

.checkbox-group label {
    margin: 0;
    cursor: pointer;
    user-select: none;
}

.btn {
    background-color: var(--color-primary);
    color: white;
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 122, 78, 0.3);
}

.btn:active {
    background-color: var(--color-primary-active);
    transform: translateY(0);
}

.donors-list {
    max-height: 500px;
    overflow-y: auto;
}

.donor-item {
    border-bottom: 1px solid var(--color-border);
    padding: 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.donor-item:last-child {
    border-bottom: none;
}

.donor-name {
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 4px;
}

.donor-city {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.donor-amount {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-primary);
}

.donor-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 6px;
}

.status-pending {
    background-color: #fef3c7;
    color: #92400e;
}

.status-verified {
    background-color: #d1fae5;
    color: #065f46;
}

.total-donation {
    background: linear-gradient(135deg, var(--color-accent) 0%, #dc7609 100%);
    color: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 30px;
}

.total-donation h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    opacity: 0.95;
}

.total-donation .amount {
    font-size: 2.5rem;
    font-weight: 700;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--color-surface);
    padding: 40px;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-content h3 {
    color: var(--color-primary);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.transfer-info {
    background: var(--color-background);
    padding: 25px;
    border-radius: 12px;
    margin: 20px 0;
    border: 2px dashed var(--color-primary);
}

.transfer-info p {
    margin: 10px 0;
    font-size: 1.1rem;
}

.transfer-info strong {
    color: var(--color-primary);
}

.amount-highlight {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 15px 0;
}

.close-modal {
    background-color: var(--color-text-secondary);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background-color: var(--color-text);
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--color-text-secondary);
}

.hero-section {
    background: linear-gradient(to bottom, var(--color-background) 0%, white 100%);
    padding: 50px 20px;
    margin-bottom: 20px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.quote-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-left: 5px solid var(--color-primary);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.quote-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.quote-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 15px;
}

.quote-card h3 {
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.arabic {
    font-size: 1.4rem;
    line-height: 2;
    text-align: right;
    direction: rtl;
    color: var(--color-text);
    margin-bottom: 15px;
    font-weight: 500;
}

.hadith {
    font-size: 1.2rem;
    line-height: 1.8;
    text-align: right;
    direction: rtl;
    color: var(--color-text);
    margin-bottom: 15px;
    font-weight: 500;
}

.translation {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin-bottom: 12px;
    font-style: italic;
    text-align: justify;
}

.source {
    font-size: 0.9rem;
    color: var(--color-primary);
    font-weight: 600;
    text-align: right;
}

@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
    }

    .quote-card {
        padding: 20px;
    }

    .arabic {
        font-size: 1.2rem;
    }

    .hadith {
        font-size: 1.1rem;
    }

    .main-content {
        grid-template-columns: 1fr;
    }

    .header h1 {
        font-size: 1.8rem;
    }

    .header p {
        font-size: 1rem;
    }

    .card {
        padding: 20px;
    }

    .modal-content {
        padding: 30px 20px;
    }
}

.prayer-section {
    background: linear-gradient(135deg, #f0f9f4 0%, white 100%);
    padding: 40px 20px;
    margin: 30px 0;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(45, 122, 78, 0.1);
}

.prayer-title {
    text-align: center;
    color: var(--color-primary);
    font-size: 1.8rem;
    margin-bottom: 25px;
}

.prayer-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(45, 122, 78, 0.2);
}

.prayer-location {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.prayer-date {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

.prayer-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
}

.prayer-card {
    background: linear-gradient(135deg, rgba(45, 122, 78, 0.05) 0%, white 100%);
    padding: 12px 16px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(45, 122, 78, 0.1);
    min-width: 110px;
    transition: all 0.3s ease;
}

.prayer-card:hover {
    background: linear-gradient(135deg, rgba(45, 122, 78, 0.1) 0%, white 100%);
    transform: scale(1.05);
}

.prayer-icon {
    font-size: 1.2rem;
    /* Dikecilkan */
    margin-bottom: 4px;
}

.prayer-name {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    margin-bottom: 3px;
    font-weight: 500;
}

.prayer-time {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primary);
}

.gallery-section {
    background: linear-gradient(135deg, #f8fcf9 0%, white 100%);
    padding: 60px 20px;
    margin: 40px 0;
}

.gallery-title {
    text-align: center;
    color: var(--color-primary);
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.gallery-subtitle {
    text-align: progress;
    color: var(--color-text-secondary);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transition: all 0.4s ease;
    height: 250px;
    background: #ddd;
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(45, 122, 78, 0.3);
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 25px 20px 20px;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-caption {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.gallery-desc {
    font-size: 0.9rem;
    opacity: 0.9;
}

.placeholder-gallery {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 250px;
    background: linear-gradient(45deg, #e0f2e9, #c8e6c9);
    color: var(--color-primary);
    font-size: 1.2rem;
    border: 3px dashed var(--color-primary);
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .gallery-item {
        height: 220px;
    }
}