/* ملف: css/style.css */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tahoma', Arial, sans-serif;
    background: #f5f5f5;
}

/* ========== صفحة تسجيل الدخول ========== */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-container {
    background: white;
    padding: 40px;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.login-container h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #333;
}

.login-form .form-group {
    margin-bottom: 15px;
}

.login-form label {
    display: block;
    margin-bottom: 5px;
    color: #555;
}

.login-form input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.btn-primary {
    width: 100%;
    padding: 12px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
}

.btn-primary:hover {
    background: #5a67d8;
}

.error-message {
    background: #fee;
    color: #c00;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
    text-align: center;
}

/* ========== لوحة التحكم ========== */
.admin-header {
    background: #2d3748;
    color: white;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header h1 {
    font-size: 20px;
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logout-btn {
    background: #e53e3e;
    color: white;
    padding: 5px 12px;
    border-radius: 5px;
    text-decoration: none;
}

.admin-container {
    display: flex;
    min-height: calc(100vh - 60px);
}

.admin-sidebar {
    width: 250px;
    background: #1a202c;
    color: white;
}

.admin-menu {
    list-style: none;
    padding: 20px 0;
}

.admin-menu li a {
    display: block;
    padding: 12px 20px;
    color: #cbd5e0;
    text-decoration: none;
}

.admin-menu li a:hover,
.admin-menu li a.active {
    background: #2d3748;
    color: white;
}

.admin-content {
    flex: 1;
    padding: 25px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.stat-number {
    font-size: 32px;
    font-weight: bold;
    color: #667eea;
}

.stat-label {
    color: #666;
    margin-top: 5px;
}

.info-section {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.info-section h3 {
    margin-bottom: 15px;
    color: #333;
}

.info-section p {
    margin-bottom: 10px;
    color: #555;
}

.info-section a {
    color: #667eea;
    text-decoration: none;
}
/* ========== إضافات للوحة التحكم ========== */
.success-message {
    background: #c6f6d5;
    color: #22543d;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.form-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-card h3 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
    color: #333;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.btn-primary {
    background: #667eea;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary:hover {
    background: #5a67d8;
}

.btn-secondary {
    background: #718096;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn-danger {
    background: #e53e3e;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.media-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.media-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.media-item video {
    width: 100%;
    height: 150px;
}

.media-item .media-info {
    padding: 10px;
    text-align: center;
}

.prices-table {
    width: 100%;
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

.prices-table th,
.prices-table td {
    padding: 12px;
    text-align: right;
    border-bottom: 1px solid #ddd;
}

.prices-table th {
    background: #667eea;
    color: white;
}
/* ========== استايلات الصفحة الرئيسية للشاليه ========== */

body {
    background: #f0f2f5;
    padding-bottom: 50px;
}

/* رأس الصفحة */
.header {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    padding: 30px 20px;
    text-align: center;
}

.header-content .logo {
    max-width: 100px;
    margin-bottom: 15px;
    border-radius: 50%;
    background: white;
    padding: 5px;
}

.header h1 {
    font-size: 28px;
    margin: 0;
}

/* الأقسام العامة */
section, .gallery-section, .description-section, .location-section, .prices-section, .special-section, .calendar-section, .booking-section, .notice-section {
    background: white;
    margin: 20px;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

h2 {
    color: #1e3c72;
    border-right: 4px solid #1e3c72;
    padding-right: 12px;
    margin-bottom: 20px;
    font-size: 22px;
}

/* معرض الصور */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.gallery-item {
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item img:hover {
    transform: scale(1.05);
}

/* الفيديوهات */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.video-item video {
    width: 100%;
    border-radius: 10px;
}

/* بطاقات الأسعار */
.prices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
}

.price-card {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
}

.price-card h3 {
    color: #1e3c72;
    margin-bottom: 10px;
}

.price-card .price {
    font-size: 24px;
    font-weight: bold;
    color: #2a5298;
}

.price-card .price-note {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

/* الفترات الخاصة */
.special-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.special-card {
    background: linear-gradient(135deg, #fff5e6, #ffe6cc);
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    border-right: 3px solid #ff9800;
}

.special-card h3 {
    color: #e65100;
}

.special-card .price {
    font-size: 20px;
    font-weight: bold;
    color: #ff9800;
}

/* الكلندر */
#calendar {
    max-width: 100%;
    margin: 0 auto;
    direction: ltr;
}

.calendar-note {
    margin-top: 10px;
    font-size: 12px;
    color: #e53e3e;
    text-align: center;
}

.fc-day-past {
    background-color: #f5f5f5;
}

/* نموذج الحجز */
.booking-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.booking-form .form-group {
    flex: 1;
    min-width: 150px;
}

.booking-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
}

.price-result {
    text-align: center;
    padding: 15px;
    background: #e8f5e9;
    border-radius: 10px;
    margin: 15px 0;
    font-size: 20px;
    font-weight: bold;
    color: #2e7d32;
}

.whatsapp-book-btn {
    display: block;
    background: #25D366;
    color: white;
    text-align: center;
    padding: 14px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: 0.3s;
}

.whatsapp-book-btn:hover {
    background: #128C7E;
    color: white;
}

/* ملاحظات */
.notice-box {
    background: #fff3cd;
    border-right: 4px solid #ffc107;
    padding: 15px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.notice-box i {
    font-size: 24px;
    color: #ffc107;
}

/* زر واتساب عائم */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: 0.3s;
    z-index: 1000;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background: #128C7E;
    color: white;
}

/* مودال الصور */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    cursor: pointer;
}

.modal img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
}

/* استجابة للجوال */
@media (max-width: 768px) {
    .gallery-grid, .videos-grid, .prices-grid, .special-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 28px;
        bottom: 15px;
        left: 15px;
    }
}
/* كلندر مبسط وحجمه صغير */
.simple-calendar {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    max-width: 350px;
    margin: 0 auto;
}

.cal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1e3c72;
    color: white;
    padding: 8px 12px;
}

.cal-header button {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 0 10px;
}

.cal-month {
    font-size: 14px;
    font-weight: bold;
}

.cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #f0f2f5;
    text-align: center;
    font-size: 11px;
    font-weight: bold;
    padding: 8px 0;
}

.cal-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.cal-day {
    text-align: center;
    padding: 8px 0;
    font-size: 12px;
    border-bottom: 1px solid #eee;
}

.cal-day.booked {
    background: #e53e3e;
    color: white;
    border-radius: 20px;
    margin: 2px;
    font-weight: bold;
}

.cal-day.empty {
    background: #fafafa;
}
/* ========== استايلات عامة مناسبة للجوال ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tahoma', Arial, sans-serif;
    background: #f5f7fb;
    padding-bottom: 70px;
}

/* رأس الصفحة */
.header {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    padding: 20px 15px;
    text-align: center;
}

.header-content .logo {
    max-width: 70px;
    margin-bottom: 10px;
    border-radius: 50%;
    background: white;
    padding: 4px;
}

.header h1 {
    font-size: 22px;
    margin: 0;
}

/* ========== سلايدر الصور ========== */
.slider-container {
    margin: 15px;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.slider-main {
    position: relative;
}

.slider-main img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
}

.prev-btn {
    right: 10px;
}

.next-btn {
    left: 10px;
}

.slider-thumbs {
    display: flex;
    gap: 8px;
    padding: 10px;
    overflow-x: auto;
    background: #f8f9fa;
}

.thumb-item {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
}

.thumb-item.active {
    border-color: #1e3c72;
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* الأقسام العامة */
.description-section,
.location-section,
.prices-section,
.special-section,
.calendar-section,
.booking-section,
.videos-section {
    background: white;
    margin: 15px;
    padding: 15px;
    border-radius: 16px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.05);
}

h2 {
    font-size: 18px;
    color: #1e3c72;
    border-right: 3px solid #1e3c72;
    padding-right: 10px;
    margin-bottom: 12px;
}

/* الفيديوهات */
.video-item video {
    width: 100%;
    border-radius: 12px;
    margin-top: 10px;
}

/* بطاقات الأسعار */
.prices-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.price-card {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 12px;
    text-align: center;
}

.price-card h3 {
    font-size: 13px;
    margin-bottom: 5px;
}

.price-card .price {
    font-size: 18px;
    font-weight: bold;
    color: #2a5298;
}

.price-card .price-note {
    font-size: 10px;
    color: #666;
}

/* الفترات الخاصة */
.special-card {
    background: #fff5e6;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 10px;
    border-right: 3px solid #ff9800;
}

.special-card h3 {
    font-size: 14px;
    margin-bottom: 5px;
}

.special-card .price {
    font-size: 16px;
    font-weight: bold;
    color: #ff9800;
}

/* الكلندر */
#calendar {
    max-width: 100%;
    overflow-x: auto;
}

.simple-calendar {
    max-width: 100%;
    font-size: 11px;
}

.cal-day {
    padding: 5px 0;
    font-size: 10px;
}

/* نموذج الحجز */
.booking-form .form-group {
    margin-bottom: 12px;
}

.booking-form input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 14px;
}

.price-result {
    font-size: 16px;
    padding: 10px;
}

.whatsapp-book-btn {
    padding: 12px;
    font-size: 16px;
}

/* زر واتساب عائم */
.whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 28px;
    bottom: 15px;
    left: 15px;
}

/* ملاحظة */
.notice-box {
    padding: 12px;
    margin: 15px;
    font-size: 13px;
}

/* تصغير المسافات للجوال */
p, .description-section p, .location-section p {
    font-size: 14px;
    line-height: 1.5;
}
.error-result {
    background: #fed7d7;
    color: #c53030;
    padding: 12px;
    border-radius: 10px;
    margin: 15px 0;
    text-align: center;
    font-size: 14px;
}