/* style.css - التنسيقات الكاملة */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

body {
    font-family: 'Cairo', sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.light-mode {
    background: #f5f0eb;
    color: #1a1a1a;
}

body.dark-mode {
    background: #1a1a2e;
    color: #e0e0e0;
}

.gradient-teal {
    background: linear-gradient(135deg, #14b8a6, #0d9488);
}

.text-gradient-teal {
    background: linear-gradient(135deg, #14b8a6, #0d9488);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hover-scale:hover {
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

/* Dark mode styles */
body.dark-mode .bg-white {
    background-color: #16213e !important;
    border-color: #2a3a5e !important;
}

body.dark-mode .bg-white\/50,
body.dark-mode .bg-white\/95 {
    background-color: #0f0f23 !important;
}

body.dark-mode .bg-gray-50,
body.dark-mode .bg-gray-100 {
    background-color: #1a1a2e !important;
}

body.dark-mode .text-gray-500,
body.dark-mode .text-gray-600,
body.dark-mode .text-gray-700 {
    color: #b0b0b0 !important;
}

body.dark-mode .text-gray-800 {
    color: #e0e0e0 !important;
}

body.dark-mode .border-gray-100,
body.dark-mode .border-gray-200 {
    border-color: #2a3a5e !important;
}

body.dark-mode .bg-gray-900 {
    background-color: #0a0a15 !important;
}

body.dark-mode .chat-messages {
    background-color: #1a1a2e !important;
}

body.dark-mode .message-bot span {
    background-color: #16213e !important;
    color: #e0e0e0 !important;
}

body.dark-mode .chat-input-area {
    background-color: #16213e !important;
    border-top-color: #2a3a5e !important;
}

body.dark-mode .chat-input-area input {
    background-color: #0f0f23 !important;
    border-color: #2a3a5e !important;
    color: #e0e0e0 !important;
}

body.dark-mode .modal-content {
    background-color: #16213e !important;
    color: #e0e0e0 !important;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 25px;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

/* Chat styles */
.chat-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
}

.chat-window {
    display: none;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    flex-direction: column;
    overflow: hidden;
    position: fixed;
    bottom: 80px;
    right: 20px;
}

.chat-header {
    background: linear-gradient(135deg, #14b8a6, #0d9488);
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: bold;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background: #f9fafb;
}

.chat-input-area {
    display: flex;
    padding: 10px;
    background: white;
    border-top: 1px solid #ddd;
}

.chat-input-area input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 10px;
    margin-left: 8px;
    outline: none;
}

.chat-input-area button {
    background: #14b8a6;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 8px 15px;
    cursor: pointer;
}

.message-user {
    text-align: right;
    margin-bottom: 10px;
}

.message-user span {
    background: #14b8a6;
    color: white;
    padding: 8px 12px;
    border-radius: 15px;
    display: inline-block;
    max-width: 80%;
}

.message-bot {
    text-align: left;
    margin-bottom: 10px;
}

.message-bot span {
    background: #e5e7eb;
    color: #333;
    padding: 8px 12px;
    border-radius: 15px;
    display: inline-block;
    max-width: 80%;
}

.theme-toggle {
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.1);
}

/* Loading spinner */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #14b8a6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Toast notification */
.toast {
    position: fixed;
    bottom: 100px;
    right: 20px;
    background: #14b8a6;
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    z-index: 1001;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@media (max-width: 640px) {
    .chat-window { width: 300px; height: 450px; right: 10px; bottom: 70px; }
    .modal-content { width: 95%; }
}/* تنسيق قائمة الجوال - توسيط */
#mobileMenu {
    text-align: center;
}

#mobileMenu a {
    display: block;
    text-align: center;
    padding: 12px 20px;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s ease;
}

#mobileMenu a:hover {
    background: rgba(20, 184, 166, 0.1);
    padding-right: 25px;
}

/* خلفية القائمة */
#mobileMenu {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

/* الوضع الليلي */
body.dark-mode #mobileMenu {
    background: rgba(26, 26, 46, 0.98);
}

body.dark-mode #mobileMenu a {
    border-bottom-color: rgba(255,255,255,0.05);
}#mobileMenu {
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}#mobileMenu a {
    position: relative;
    font-weight: 500;
}

#mobileMenu a::after {
    content: '';
    position: absolute;
    bottom: 5px;
    right: 50%;
    width: 0;
    height: 2px;
    background: #14b8a6;
    transition: all 0.3s ease;
    transform: translateX(50%);


#mobileMenu a:hover::after {
    width: 30%;
}
}

