@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@200;300;400;500;700;800;900&display=swap');

/* الأنماط الأساسية */
body {
    direction: rtl;
    font-family: 'Tajawal', sans-serif;
    background-color: #fff5ec;
    background-image:
        linear-gradient(to right, #f5ebe3 1px, transparent 1px),
        linear-gradient(to bottom, #f5ebe3 1px, transparent 1px);
    background-size: 40px 40px;
    margin: 0;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* تنسيق الحاوية الرئيسية */
.container {
    width: 90%;
    max-width: 700px;
    min-height: auto;
    padding: 30px;
    background-color: #f49065;
    border: 1px solid #ccc;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 10px 10px 0px #302b2b;
    position: relative;
    box-sizing: border-box;
}

/* تنسيق العناوين */
h1 {
    color: #ffffff;
    text-align: center;
    font-size: 28px;
    margin-bottom: 30px;
    padding-top: 20px;
}

h2 {
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
}

/* تنسيق النماذج */
.form-section {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #f1f1f1;
    font-size: 16px;
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
    background-color: #fdfdfd;
    color: #333;
    transition: all 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #065465;
    box-shadow: 0 0 8px rgba(6, 84, 101, 0.2);
}

textarea {
    min-height: 100px;
    resize: vertical;
}

/* تنسيق زر تبديل اللغة */
.language-toggle {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: #065465;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    width: 70px;
    text-align: center;
    box-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    z-index: 10;
}

.language-toggle:hover {
    background-color: #054555;
    transform: translateY(-2px);
}

/* تنسيق حقول كلمة المرور */
.password-container {
    position: relative;
    width: 100%;
}

.password-container input {
    width: 100%;
    box-sizing: border-box;
    padding-right: 40px;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    background: none;
    border: none;
    color: #aaa;
}

/* تنسيق الشروط والأحكام */
.terms-container {
    margin: 20px 0;
    padding: 15px;
    background-color: transparent;
    border: none;
    border-radius: 8px;
    max-height: none;
    overflow-y: visible;
}

.terms-container p {
    margin: 10px 0;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.5;
}

.terms-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.terms-checkbox input {
    width: auto;
    margin-left: 10px;
}

/* تنسيق زر الإرسال */
button[type="submit"] {
    background-color: #00bcd4;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s;
    margin-top: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

button[type="submit"]:hover {
    background-color: #019aa8;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0,0,0,0.15);
}

/* تنسيق الحقول المطلوبة */
.required-field::after {
    content: " *";
    color: #ff4444;
}

/* تنسيقات خاصة بالشركة */
.company-logo {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    margin: 0 auto 20px;
    display: block;
    border: 3px solid rgba(255, 255, 255, 0.2);
    object-fit: cover;
}

/* تنسيقات خاصة بالمدرب */
.trainer-specialization {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

/* تنسيقات للشاشات الصغيرة */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }
    
    .container {
        padding: 20px;
        min-height: auto;
        box-shadow: 5px 5px 0px #302b2b;
    }

    .language-toggle {
        top: 10px;
        left: 10px;
        padding: 6px 10px;
        font-size: 12px;
        width: 60px;
    }

    h1 {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .form-section {
        padding: 15px;
    }

    input, select, textarea {
        padding: 10px;
        font-size: 14px;
    }

    button[type="submit"] {
        padding: 12px;
        font-size: 14px;
    }

    .trainer-specialization {
        grid-template-columns: 1fr;
    }

    select {
        padding: 10px;
        padding-left: 35px;
        font-size: 14px;
        background-size: 14px;
    }
}

.language-switch {
  text-align: left;
  margin-bottom: 20px;
  font-size: 14px;
  padding-right: 40px;
}

.language-switch a {
  color: #0074cc;
  text-decoration: none;
  margin-left: 10px;
  font-weight: bold;
}

.language-switch a:hover {
  text-decoration: underline;
}

.checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.checkbox-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #ffffff;
}

.checkbox-container:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  margin: 0;
}

.terms-box {
  background: rgba(255, 255, 255, 0.07);
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  max-height: 150px;
  overflow-y: auto;
}

.success-message {
  background-color: rgba(40, 167, 69, 0.2);
  color: #ffffff;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: 500;
  border: 1px solid rgba(40, 167, 69, 0.4);
}

.error-message {
  background-color: rgba(220, 53, 69, 0.2);
  color: #ffffff;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: 500;
  border: 1px solid rgba(220, 53, 69, 0.4);
}

/* تنسيقات خاصة بصفحة الطلاب */
.profile-section {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

.profile-picture {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: block;
  border: 3px solid rgba(255, 255, 255, 0.2);
}

.skills-section {
  margin-top: 20px;
}

.skill-tag {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  padding: 5px 15px;
  border-radius: 20px;
  margin: 5px;
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.education-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
}

.education-item h3 {
  color: #ffffff;
  margin-bottom: 10px;
  font-size: 18px;
}

.education-item p {
  color: rgba(255, 255, 255, 0.8);
  margin: 5px 0;
}

.progress-section {
  margin: 20px 0;
}

.progress-bar {
  width: 100%;
  height: 10px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background-color: #00bcd4;
  transition: width 0.3s ease;
}

.file-upload {
  position: relative;
  overflow: hidden;
  margin: 10px 0;
}

.file-upload input[type="file"] {
  position: absolute;
  font-size: 100px;
  right: 0;
  top: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-btn {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.upload-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.certificates-section {
  margin-top: 20px;
}

.certificate-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.certificate-info {
  flex: 1;
}

.certificate-actions {
  display: flex;
  gap: 10px;
}

.view-btn, .download-btn {
  background-color: rgba(255, 255, 255, 0.1);}

/* تنسيق زر الاختيار */
select {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
    background-color: #fdfdfd;
    color: #333;
    cursor: pointer;
}

select:focus {
    outline: none;
    border-color: #065465;
    box-shadow: 0 0 8px rgba(6, 84, 101, 0.2);
}

select option {
    padding: 12px;
    background-color: #ffffff;
    color: #333;
}

select option:checked {
    background-color: #065465;
    color: #ffffff;
}

/* Custom Select Dropdown */
.custom-select-wrapper {
    position: relative;
    display: block;
    width: 100%;
    margin-bottom: 20px;
}

.custom-select {
    position: relative;
    cursor: pointer;
}

.custom-select-trigger {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    font-size: 16px;
    font-weight: 400;
    color: #333;
    background-color: #fdfdfd;
    border: 1px solid #ccc;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
}

.custom-select.open .custom-select-trigger {
    border-color: #065465;
    box-shadow: 0 0 8px rgba(6, 84, 101, 0.2);
}

.custom-options {
    position: absolute;
    display: none;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    border: 1px solid #ccc;
    border-top: 0;
    border-radius: 0 0 8px 8px;
    z-index: 10;
    max-height: 200px;
    overflow-y: auto;
}

.custom-select.open .custom-options {
    display: block;
}

.custom-option {
    padding: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
    color: #333;
}

.custom-option:hover, .custom-option.selected {
    background-color: #f0f0f0;
}

.custom-option.selected {
    font-weight: bold;
    background-color: #065465;
    color: white;
}

.arrow {
    position: relative;
    height: 10px;
    width: 10px;
}

.arrow::before, .arrow::after {
    content: '';
    position: absolute;
    bottom: 0px;
    width: 2px;
    height: 100%;
    background-color: #333;
    transition: all 0.2s;
}

.arrow::before {
    right: 5px;
    transform: rotate(45deg);
}

.arrow::after {
    right: 1px;
    transform: rotate(-45deg);
}

.custom-select.open .arrow::before {
    transform: rotate(-45deg);
}

.custom-select.open .arrow::after {
    transform: rotate(45deg);
}