/* إضافة التنسيقات من التصميم السابق مع بعض التعديلات */
:root {
    --primary-color: #1a5f7a;
    --secondary-color: #159895;
    --accent-color: #57C5B6;
    --light-color: #f8f9fa;
    --dark-color: #2c3e50;
    --gray-color: #6c757d;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    padding-bottom: 70px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ترويسة الصفحة */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 30px 0;
    text-align: center;
    margin-bottom: 30px;
}

.page-header h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
}

/* التنبيهات */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert h4 {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.alert h4 i {
    margin-left: 8px;
}

.alert ul {
    padding-right: 20px;
}

/* فلترة المساجد */
.filters {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.filters h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

.filter-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark-color);
    font-weight: 500;
}

.form-group select, .form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* قائمة المساجد */
.mosques-section {
    margin-bottom: 40px;
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    margin: 15px auto;
    border-radius: 2px;
}

.no-results {
    text-align: center;
    padding: 40px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.mosques-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.mosque-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.mosque-card:hover {
    transform: translateY(-10px);
}

.mosque-image {
    height: 200px;
    overflow: hidden;
}

.mosque-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.mosque-card:hover .mosque-image img {
    transform: scale(1.1);
}

.mosque-info {
    padding: 20px;
}

.mosque-info h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.mosque-location {
    color: var(--gray-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.mosque-location i {
    margin-left: 5px;
}

/* تفاصيل المسجد */
.mosque-details {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 40px;
    display: none;
}

.mosque-details.active {
    display: block;
}

.details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.details-header h2 {
    color: var(--primary-color);
}

.close-details {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-color);
    text-decoration: none;
}

.needs-list {
    margin-bottom: 30px;
}

.need-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.need-info h4 {
    color: var(--dark-color);
    margin-bottom: 5px;
}

.need-info p {
    color: var(--gray-color);
    font-size: 0.9rem;
}

.need-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.progress-bar {
    width: 150px;
    height: 10px;
    background-color: #eee;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 5px;
}

.progress-fill {
    height: 100%;
    background-color: var(--accent-color);
    border-radius: 5px;
}

.progress-text {
    font-size: 0.85rem;
    color: var(--gray-color);
}

/* معلومات التبرع */
.donation-info {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.donation-info h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.info-item {
    margin-bottom: 15px;
}

.info-item h4 {
    color: var(--dark-color);
    margin-bottom: 5px;
}

.info-item p {
    color: var(--gray-color);
}

.bank-account {
    background-color: white;
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid var(--accent-color);
}

/* رفع وصل التبرع */
.upload-receipt {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.upload-receipt h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.upload-receipt .alert {
    background-color: #fff9e6;
    border-left: 4px solid #ffc107;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.upload-receipt .alert h4 {
    color: #856404;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

.upload-receipt .alert h4 i {
    margin-left: 8px;
}

.upload-receipt .alert ul {
    padding-right: 20px;
    color: #856404;
}

.upload-receipt .alert li {
    margin-bottom: 5px;
}

.upload-form {
    margin-top: 20px;
}

.file-upload {
    border: 2px dashed #ddd;
    padding: 30px;
    text-align: center;
    margin-bottom: 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload:hover {
    border-color: var(--accent-color);
}

.file-upload i {
    font-size: 2.5rem;
    color: var(--gray-color);
    margin-bottom: 15px;
}

.file-upload p {
    color: var(--gray-color);
    margin-bottom: 10px;
}

.file-input {
    display: none;
}

/* الشريط السفلي */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--gray-color);
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.nav-item.active,
.nav-item:hover {
    color: var(--primary-color);
}

.nav-icon {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

/* التكيف مع الشاشات الصغيرة */
@media (max-width: 768px) {
    .filter-form {
        grid-template-columns: 1fr;
    }
    
    .mosques-grid {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .details-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .close-details {
        align-self: flex-end;
        margin-top: -40px;
    }
    
    .need-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .need-status {
        margin-top: 10px;
        align-items: flex-start;
    }
}