/* * اسم الملف: style.css
 * المسار: css/style.css
 * الوظيفة: الألوان الأساسية، الظلال، وحركات (Animations) التطبيق لضمان توحيد الشكل.
 */

:root {
    --primary: #111827; /* Gray 900 */
    --accent: #f59e0b; /* Amber 500 */
    --bg-light: #f9fafb; /* Gray 50 */
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    --floating-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-light);
    color: var(--primary);
    margin: 0;
    padding-bottom: 90px;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

/* الكروت العائمة */
.floating-card {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: var(--card-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
    border: 1.5px solid transparent;
}
.floating-card:active {
    transform: scale(0.98);
}

/* تأثير اختيار الخدمات */
.service-checkbox:checked + div {
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(17, 24, 39, 0.1);
}
.service-checkbox:checked + div i.fa-circle-check {
    color: var(--primary);
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

/* شريط التتبع والولاء */
.progress-container {
    width: 100%;
    background: #f3f4f6;
    border-radius: 20px;
    height: 8px;
    overflow: hidden;
    position: relative;
}
.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #111827, var(--accent));
    width: 0%;
    border-radius: 20px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* القائمة السفلية */
.bottom-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-radius: 24px;
    display: flex;
    justify-content: space-around;
    padding: 12px 10px;
    box-shadow: var(--floating-shadow);
    z-index: 1000;
    border: 1px solid #f3f4f6;
}
.nav-item {
    color: #9ca3af;
    font-size: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
}
.nav-item span {
    font-size: 9px;
    font-weight: bold;
    opacity: 0;
    transform: translateY(5px);
    transition: all 0.3s ease;
    color: var(--primary);
    white-space: nowrap;
}
.nav-item.active {
    color: var(--primary);
    transform: translateY(-4px);
}
.nav-item.active span {
    opacity: 1;
    transform: translateY(0);
}

/* إخفاء وتمرير الواجهات */
.view { display: none; animation: fadeIn 0.3s ease-out forwards; }
.view.active { display: block; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* حقول الإدخال الفخمة */
.premium-input {
    width: 100%;
    padding: 16px 20px;
    background: #f9fafb;
    border: 1.5px solid #f3f4f6;
    border-radius: 16px;
    outline: none;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}
.premium-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(17, 24, 39, 0.05);
    background: #ffffff;
}

/* إخفاء شريط التمرير */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* اللودر */
#global-loader {
    backdrop-filter: blur(8px);
    transition: opacity 0.3s ease;
}

/* النجوم */
#star-rating i {
    cursor: pointer;
    transition: transform 0.2s, color 0.2s;
}
#star-rating i:active {
    transform: scale(1.3);
}

/* تأثيرات النوافذ المنبثقة (Modals) */
.modal-content {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}