body {
    font-family: 'Rubik', 'Readex Pro', sans-serif;
    background: linear-gradient(to bottom right, #1f1d2b, #2d2032);
    color: #fff;
    padding: 20px;
    padding-bottom: 80px; /* إضافة مساحة سفلية لمنع اخفاء المحتوى خلف شريط التنقل */
    min-height: 100vh;
    box-sizing: border-box;
    position: relative;
  }

  .mg-color span {
    color: #fff !important;
  }

  .greeting {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
  }

  .circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #ccc;
  }

  .card-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
  }

  a {
    text-decoration: auto !important;
  }

  .prompt-group, .last-prompts {
    background-color: #2e2c3b;
    border-radius: 15px;
    padding: 10px 15px;
    margin-bottom: 10px;
  }

  .btn-orange {
    background-color: #a86e0b;
    color: white;
    font-weight: bold;
    border-radius: 20px;
    width: 100%;
    padding: 12px;
    font-size: 18px;
    margin-top: 20px;
    border: none;
  }

  .section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    margin-bottom: 15px;
  }

  .section-title a {
    color: #203b42;
    font-weight: 500;
    text-decoration: none;
  }

  .bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #1e1c25;
    height: 65px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    z-index: 1000;
    padding: 0 20px;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.2);
  }
  
  .nav-item {
    width: 50px;
    height: 50px;
    background-color: transparent;
    border-radius: 50%;
    color: #888;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    font-size: 1.2rem;
  }
  
  .nav-item.active {
    color: #fff;
    background-color: rgba(32, 59, 66, 0.1);
  }
  
  .mg-color {
    background: linear-gradient(135deg, #ffcb60 0%, #ffbb4f 100%); 
  }

  .mg-color-0 {
    color: #ffcb60 !important; 
  }

  .mg-color-border {
    border:1px solid #ffcb60; 
  }


  .mg-color:hover {
    background: linear-gradient(135deg, #203147 0%, #ffcb60 100%); 
  }
  .nav-item:hover {
    color: #fff;
    transform: translateY(-5px);
  }
  
  .nav-item.active {
    background-color: #ffc65a;
  }

  /* Typewriter Effect */
  .typewriter-container {
    font-size: 1.3rem;
    font-weight: 600;
    color: #fff;
    text-align: center;
    min-height: 1.5em;
  }
  
  .typewriter-text {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid #ffc65a;
    animation: blink-caret 0.75s step-end infinite;
  }
  
  @keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: #ffc65a; }
  }


  /* Input fields */
  .form-control {
    background-color: #3d3b48;
    border: none;
    color: white;
    margin-bottom: 15px;
    height: 50px;
    border-radius: 10px;
    padding: 10px 15px;
    width: 100%;
  }

  .service-card {
    transition: all 0.3s ease;
    border: 1px solid #ffcb60;
  }
  .service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
  }
  .card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 1.4rem;
  }
  
  /* Placeholder text color and RTL alignment */
  .form-control::placeholder {
    color: #ffffff !important;
    opacity: 0.7;
    text-align: right;
    direction: rtl;
  }
  
  /* For different browsers */
  .form-control::-webkit-input-placeholder { /* Chrome/Opera/Safari */
    color: #ffffff !important;
    opacity: 0.7;
    text-align: right;
    direction: rtl;
  }
  .form-control::-moz-placeholder { /* Firefox 19+ */
    color: #ffffff !important;
    opacity: 0.7;
    text-align: right;
    direction: rtl;
  }
  .form-control:-ms-input-placeholder { /* IE 10+ */
    color: #ffffff !important;
    opacity: 0.7;
    text-align: right;
    direction: rtl;
  }
  .form-control:-moz-placeholder { /* Firefox 18- */
    color: #ffffff !important;
    opacity: 0.7;
    text-align: right;
    direction: rtl;
  }
  
  .form-control:focus {
    background-color: #3d3b48;
    color: white;
    box-shadow: none;
    border: 1px solid #ffc65a;
  }
/* Buttons */
.btn, .btn-primary {
    background-color: #6c63ff;
    border: none;
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    margin-top: 10px;
    color: white !important;
    text-align: center;
    display: block;
}
.btn:hover, .btn-primary:hover {
    background-color: #5a52d4;
    color: white !important;
}

/* Ensure text in all buttons is white */
button, .btn, .btn-primary, .mg-color {
    color: white !important;
}
.form-title {
    text-align: center;
    margin-bottom: 30px;
    color: #fff;
}
.login-link {
    text-align: center;
    margin-top: 20px;
}
.login-link a {
    color: #6c63ff;
    text-decoration: none;
}
.alert {
    border-radius: 10px;
    margin-bottom: 20px;
}

/* Chat Styles */
.chat-container {
    max-width: 100%;
    margin: 0 auto;
    padding-bottom: 80px;
}

.chat-messages {
    max-height: calc(100vh - 250px);
    overflow-y: auto;
    padding: 15px;
    margin-bottom: 80px;
}

.message {
    margin-bottom: 15px;
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 15px;
    line-height: 1.5;
    position: relative;
    word-wrap: break-word;
}

.message-user {
    background-color: #6c63ff;
    color: white;
    margin-right: auto;
    border-top-right-radius: 4px;
}

.message-bot {
    background-color: #3d3b48;
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.message-time {
    font-size: 11px;
    opacity: 0.7;
    margin-top: 4px;
    text-align: right;
}

.chat-input-container {
    position: fixed;
    bottom: 70px;
    left: 0;
    right: 0;
    background-color: #1a1a2e;
    padding: 15px;
    display: flex;
    gap: 10px;
    z-index: 1000;
}

/* Form Inputs */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="password"],
select,
textarea,
.form-control {
    background-color: #2e2c3b !important;
    color: #ffffff !important;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 10px 15px;
    width: 100%;
    margin-bottom: 15px;
    font-family: 'Rubik', sans-serif;
    font-size: 14px;
    transition: all 0.3s ease;
}

.chat-input {
    flex: 1;
    background-color: #ffffff !important;
    color: #333333 !important;
    border: 1px solid #ced4da;
    border-radius: 25px;
    padding: 12px 20px;
    font-size: 15px;
    margin-bottom: 0;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus,
.form-control:focus {
    border-color: #ffc65a;
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 0, 0.25);
    outline: none;
}

/* Radio and Checkbox Styling */
.form-check {
    margin-bottom: 10px;
    padding: 0;
}

.form-check-input {
    display: none;
}

.form-check-label {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #444;
    border-radius: 8px;
    padding: 10px 15px;
    margin: 0 5px 10px 0;
    cursor: pointer;
    color: #ffffff;
    transition: all 0.3s ease;
    min-width: 100px;
    text-align: center;
}

.form-check-input:checked + .form-check-label {
    background: #ffc65a;
    border-color: #ffc65a;
    color: #fff;
}

.form-check-label:hover {
    background: rgba(255, 107, 0, 0.2);
    border-color: #ffc65a;
}

/* تنسيق خاص لمجموعات الراديو */
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0;
}

.radio-option {
    display: none;
}

.radio-option + label {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #444;
    border-radius: 8px;
    padding: 10px 15px;
    cursor: pointer;
    color: #ffffff;
    transition: all 0.3s ease;
    min-width: 100px;
    text-align: center;
    margin: 0;
}

.radio-option:checked + label {
    background: #ffc65a;
    border-color: #ffc65a;
    color: #fff;
}

.radio-option + label:hover {
    background: rgba(255, 107, 0, 0.2);
    border-color: #ffc65a;
}

.form-label {
    color: #ffffff;
    font-weight: 500;
    margin-bottom: 10px;
    display: block;
    width: 100%;
}

/* Form Sections */
h6, .message-bot h5, .message-bot h6 {
    color: #ffc65a;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

/* Alert Styling */
.alert {
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    border: 1px solid transparent;
    color: #ffffff;
}

.alert-info {
    background-color: rgba(0, 123, 255, 0.2);
    border-color: rgba(0, 123, 255, 0.3);
    color: #ffffff;
}

.chat-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px #6c63ff;
}

.send-btn {
    background-color: #6c63ff;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.send-btn:hover {
    background-color: #5a52d4;
}

        /* Chat Header */
        .chat-header {
          background-color: var(--dark-bg);
          color: white;
          padding: 15px;
          display: flex;
          align-items: center;
          position: fixed;
          top: 0;
          right: 0;
          left: 0;
          z-index: 1000;
          height: 60px;
          box-shadow: 0 2px 5px rgba(0,0,0,0.1);
      }

.chat-header h4 {
    margin: 0;
    font-size: 18px;
}

.back-btn {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

.typing-indicator {
    display: flex;
    gap: 5px;
    margin: 5px 0 15px auto;
    width: fit-content;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background-color: #6c63ff;
    border-radius: 50%;
    opacity: 0.4;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: 0s; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-5px); opacity: 1; }
}