/* التصميم العام */
/* Import Tajawal font with all weights */
@import url("https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800;900&display=swap");

/* Apply Tajawal as default font */
:root {
  --tajawal: "Tajawal", sans-serif;
}

body {
  font-family: var(--tajawal);
  font-weight: 400; /* Regular as default */
  line-height: 1.6;
  background-color: #f5f5f5;
  direction: rtl;
  text-align: right;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

header {
  text-align: center;
  margin-bottom: 30px;
}

header h1 {
  color: #2c3e50;
  margin-bottom: 10px;
}

header p {
  color: #7f8c8d;
}

/* تصميم النموذج */
.youth-form {
  background-color: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #34495e;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group input[type="file"],
.form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}

.radio-group {
  display: flex;
  gap: 20px;
  margin-top: 10px;
}

.radio-group label {
  font-weight: normal;
  display: flex;
  align-items: center;
  gap: 5px;
}

.submit-btn {
  background-color: #3498db;
  color: white;
  border: none;
  padding: 12px 25px;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
  width: 100%;
}

.submit-btn:hover {
  background-color: #2980b9;
}

/* تصميم الإحصائيات */
.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.stat-card h3 {
  color: #7f8c8d;
  margin-bottom: 10px;
  font-size: 18px;
}

.stat-card p {
  color: #2c3e50;
  font-size: 24px;
  font-weight: bold;
}

.chart-container {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.back-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #7f8c8d;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.back-btn:hover {
  background-color: #95a5a6;
}

/* رسائل التنبيه */
.alert {
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 4px;
}

.alert-danger {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}
/* SweetAlert2 RTL Styles */
.rtl-swal {
  direction: rtl;
  text-align: right;
  font-family: "Tahoma", Arial, sans-serif;
}

.swal2-title {
  font-size: 1.5em;
  color: #2c3e50;
}

.swal2-content {
  font-size: 1.1em;
}

.swal2-confirm {
  background-color: #3498db !important;
}

.swal2-error [class^="swal2-x-mark-line"] {
  background-color: #e74c3c;
}
/* Login Page Styles */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #3498db, #2c3e50);
  padding: 20px;
  direction: rtl;
}

.login-box {
  background: #ffffff;
  width: 100%;
  max-width: 450px;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  text-align: center;
  animation: fadeIn 0.5s ease;
}

.login-box h1 {
  color: #2c3e50;
  margin-bottom: 30px;
  font-size: 28px;
  position: relative;
  padding-bottom: 15px;
}

.login-box h1::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 60px;
  height: 3px;
  background: #3498db;
  border-radius: 3px;
}

.login-box .form-group {
  margin-bottom: 25px;
  text-align: right;
}

.login-box label {
  display: block;
  margin-bottom: 8px;
  color: #555;
  font-weight: 600;
  font-size: 15px;
}

.login-box input[type="text"],
.login-box input[type="password"] {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  transition: all 0.3s ease;
  background-color: #f9f9f9;
}

.login-box input[type="text"]:focus,
.login-box input[type="password"]:focus {
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
  outline: none;
  background-color: #fff;
}

.submit-btn {
  width: 100%;
  padding: 14px;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.submit-btn:hover {
  background-color: #2980b9;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.submit-btn:active {
  transform: translateY(0);
}

.alert {
  padding: 15px;
  margin-bottom: 25px;
  border-radius: 8px;
  font-size: 14px;
}

.alert-danger {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 576px) {
  .login-box {
    padding: 30px 20px;
  }

  .login-box h1 {
    font-size: 24px;
  }
}
/* Search Page Styles */
.search-form {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
  border: 1px solid #eaeaea;
}

.search-form .form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.search-form .form-group {
  flex: 1;
}

.search-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #2c3e50;
  font-size: 15px;
}

.search-form select,
.search-form input[type="number"] {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 15px;
  transition: all 0.3s ease;
  background-color: #f9f9f9;
  font-family: "Tajawal", sans-serif;
}

.search-form select:focus,
.search-form input[type="number"]:focus {
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
  outline: none;
  background-color: #fff;
}

.submit-btn {
  background-color: #3498db;
  color: white;
  border: none;
  padding: 12px 25px;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Tajawal", sans-serif;
  font-weight: 500;
}

.submit-btn:hover {
  background-color: #2980b9;
  transform: translateY(-2px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* Search Results */
.search-results {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #eaeaea;
}

.search-results h3 {
  color: #2c3e50;
  margin-bottom: 20px;
  font-size: 1.5rem;
  font-family: "Tajawal", sans-serif;
  font-weight: 700;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.profile-card {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid #3498db;
  transition: all 0.3s ease;
}

.profile-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.profile-card h4 {
  color: #2c3e50;
  margin-bottom: 15px;
  font-family: "Tajawal", sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
}

.profile-card p {
  color: #555;
  margin-bottom: 10px;
  font-family: "Tajawal", sans-serif;
  line-height: 1.6;
}

.profile-card p strong {
  color: #2c3e50;
  font-weight: 600;
  min-width: 100px;
  display: inline-block;
}

.no-results {
  text-align: center;
  color: #777;
  font-family: "Tajawal", sans-serif;
  font-size: 1.1rem;
  padding: 30px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .search-form .form-row {
    flex-direction: column;
    gap: 15px;
  }

  .results-grid {
    grid-template-columns: 1fr;
  }

  .search-form,
  .search-results {
    padding: 20px;
  }
}

/* Tajawal Font Import - Add at the top of your CSS */
@import url("https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800;900&display=swap");

/* Apply Tajawal as default font */
body {
  font-family: "Tajawal", sans-serif;
  font-weight: 400;
}
/* View Button Styles */
.view-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  background-color: #3498db;
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  margin-top: 15px;
  transition: all 0.3s ease;
  font-family: "Tajawal", sans-serif;
}

.view-btn:hover {
  background-color: #2980b9;
  transform: translateY(-2px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.view-btn i {
  font-size: 12px;
}

/* Profile Actions Container */
.profile-actions {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px dashed #ddd;
  display: flex;
  justify-content: flex-start;
}

/* Profile Card Adjustments */
.profile-card {
  position: relative;
  padding-bottom: 20px;
}
/* Search Page Enhancements */
.search-form {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
  border: 1px solid #eaeaea;
}

.form-actions {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.reset-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background-color: #f5f5f5;
  color: #555;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.reset-btn:hover {
  background-color: #eaeaea;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.profile-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.profile-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.profile-card-header {
  padding: 20px;
  background: #f9f9f9;
  display: flex;
  align-items: center;
  gap: 15px;
}

.profile-image-small {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.profile-image-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-card-header h4 {
  margin: 0;
  color: #2c3e50;
  font-size: 1.1rem;
}

.profile-card-body {
  padding: 20px;
}

.profile-card-body p {
  margin-bottom: 10px;
  color: #555;
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-card-body p strong {
  color: #2c3e50;
  font-weight: 600;
}

.profile-card-body p i {
  color: #3498db;
  width: 20px;
  text-align: center;
}

.profile-card-footer {
  padding: 15px 20px;
  background: #f9f9f9;
  border-top: 1px solid #eee;
  text-align: left;
}

.view-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  background-color: #3498db;
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
}

.view-btn:hover {
  background-color: #2980b9;
}

.no-results {
  text-align: center;
  padding: 40px;
  background: #f9f9f9;
  border-radius: 8px;
  color: #777;
}

.no-results i {
  margin-bottom: 15px;
  color: #ddd;
}

.alert {
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 6px;
}

.alert-error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Responsive Design */
@media (max-width: 768px) {
  .results-grid {
    grid-template-columns: 1fr;
  }

  .profile-card-header {
    flex-direction: column;
    text-align: center;
  }

  .profile-image-small {
    margin-bottom: 10px;
  }
}
/* Profile View Styles */
.profile-view {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  padding: 30px;
  margin-top: 20px;
  border: 1px solid #eaeaea;
}

.profile-header {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
  align-items: center;
}

.profile-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid #f5f5f5;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-info h2 {
  color: #2c3e50;
  margin-bottom: 15px;
  font-size: 1.8rem;
}

.profile-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #555;
}

.meta-item i {
  color: #3498db;
  width: 20px;
  text-align: center;
}

.detail-section {
  margin-bottom: 30px;
}

.detail-section h3 {
  color: #2c3e50;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px dashed #ddd;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.detail-section h3 i {
  color: #3498db;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.detail-item {
  background: #f9f9f9;
  padding: 15px;
  border-radius: 8px;
  border-left: 3px solid #3498db;
}

.detail-item strong {
  display: block;
  color: #7f8c8d;
  margin-bottom: 5px;
  font-weight: 600;
  font-size: 0.9rem;
}

.detail-item span {
  color: #2c3e50;
  font-size: 1.1rem;
}

.employment-status {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
}

.status {
  display: inline-block;
  padding: 8px 15px;
  border-radius: 20px;
  font-weight: 500;
  font-size: 1rem;
}

.status.employed {
  background-color: #d4edda;
  color: #155724;
}

.status.unemployed {
  background-color: #f8d7da;
  color: #721c24;
}

.employment-details {
  margin-top: 15px;
  padding: 10px;
  background: #fff;
  border-radius: 6px;
  color: #555;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}

.employment-details i {
  color: #ffc107;
}

.profile-actions {
  display: flex;
  gap: 15px;
  padding-top: 20px;
  border-top: 1px solid #eee;
  margin-top: 30px;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.action-btn.edit {
  background-color: #ffc107;
  color: #212529;
}

.action-btn.back {
  background-color: #6c757d;
  color: white;
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #3498db;
  text-decoration: none;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.back-link:hover {
  color: #2980b9;
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  .profile-header {
    flex-direction: column;
    text-align: center;
  }

  .profile-meta {
    align-items: center;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .profile-actions {
    flex-direction: column;
  }

  .action-btn {
    justify-content: center;
  }
}
.search-form {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
  border: 1px solid #eaeaea;
}

/* Form element spacing */
.search-form .form-group {
  margin-bottom: 25px; /* Space between form groups */
}

.search-form .form-row {
  margin-bottom: 15px; /* Space between rows */
}

.search-form label {
  display: block;
  margin-bottom: 10px; /* Space between label and input */
  font-weight: 600;
  color: #2c3e50;
}

.search-form select,
.search-form input[type="number"] {
  width: 100%;
  padding: 12px 15px; /* Internal input padding */
  margin-bottom: 5px; /* Space after inputs */
}

/* Button spacing */
.search-form .submit-btn {
  margin-top: 20px; /* Space above button */
  margin-right: 10px; /* Space between buttons */
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .search-form {
    padding: 20px; /* Reduced padding on mobile */
  }

  .search-form .form-group {
    margin-bottom: 20px;
  }
}
/* Header Styles */
.public-header {
  background-color: #2c3e50;
  color: white;
  padding: 15px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo h1 {
  margin: 0;
  font-size: 1.5rem;
}

.logo p {
  margin: 5px 0 0;
  font-size: 0.9rem;
  opacity: 0.8;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 20px;
}

.main-nav a {
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.main-nav a:hover {
  color: #3498db;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("../assets/images/hero-bg.jpg");
  background-size: cover;
  background-position: center;
  color: white;
  padding: 80px 20px;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.cta-button {
  display: inline-block;
  background-color: #3498db;
  color: white;
  padding: 12px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.cta-button:hover {
  background-color: #2980b9;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Quick Links */
.quick-links {
  padding: 60px 20px;
  background-color: #f9f9f9;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
  font-size: 1.8rem;
  color: #2c3e50;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.link-panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.link-panel {
  background: white;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  text-align: center;
}

.link-panel:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.panel-icon {
  width: 70px;
  height: 70px;
  background-color: #3498db;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: white;
  font-size: 1.5rem;
}

.link-panel h3 {
  color: #2c3e50;
  margin-bottom: 15px;
}

.link-panel p {
  color: #7f8c8d;
  margin-bottom: 20px;
}

.panel-link {
  color: #3498db;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 500;
}

/* Instructions */
.instructions-section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.instructions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.instruction-step {
  background: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  position: relative;
  border-top: 4px solid #3498db;
}

.step-number {
  position: absolute;
  top: -20px;
  left: 20px;
  background-color: #3498db;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* Footer */
.public-footer {
  background-color: #2c3e50;
  color: white;
  padding: 50px 0 0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.footer-section h3 {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section a {
  color: #ecf0f1;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-section a:hover {
  color: #3498db;
  padding-right: 5px;
}

.copyright {
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  background-color: rgba(0, 0, 0, 0.1);
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 20px;
  }

  .main-nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-content h2 {
    font-size: 2rem;
  }

  .link-panels,
  .instructions {
    grid-template-columns: 1fr;
  }
}
