/* تصميم لوحة التحكم */
/* Tajawal Font Import - Add this at the very top of your CSS file */
@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;
}

.dashboard-container {
  display: flex;
  min-height: 100vh;
}

.dashboard-header {
  background-color: #2c3e50;
  color: white;
  padding: 15px 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo h1 {
  font-size: 20px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.username {
  font-weight: bold;
}

.logout-btn {
  color: white;
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 4px;
  background-color: #e74c3c;
  transition: background-color 0.3s;
}

.logout-btn:hover {
  background-color: #c0392b;
}

.sidebar {
  width: 250px;
  background-color: #34495e;
  color: white;
  padding-top: 20px;
}

.sidebar nav ul {
  list-style: none;
}

.sidebar nav ul li a {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  color: #ecf0f1;
  text-decoration: none;
  transition: background-color 0.3s;
  gap: 10px;
}

.sidebar nav ul li a:hover {
  background-color: #2c3e50;
}

.sidebar nav ul li a i {
  width: 20px;
  text-align: center;
}

.sidebar nav ul li.active a {
  background-color: #2980b9;
}

.main-content {
  flex: 1;
  padding: 20px;
  background-color: #f9f9f9;
}

.main-content h2 {
  color: #2c3e50;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ddd;
  text-align: center;
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.quick-stats .stat-card {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.quick-stats .stat-card i {
  font-size: 30px;
  margin-bottom: 10px;
  color: #3498db;
}

.quick-stats .stat-card h3 {
  color: #7f8c8d;
  font-size: 16px;
  margin-bottom: 10px;
}

.quick-stats .stat-card p {
  color: #2c3e50;
  font-size: 24px;
  font-weight: bold;
}

.profiles-table {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  overflow-x: auto;
}

.profiles-table h3 {
  color: #2c3e50;
  margin-bottom: 20px;
}

.profiles-table table {
  width: 100%;
  border-collapse: collapse;
}

.profiles-table th,
.profiles-table td {
  padding: 12px 15px;
  text-align: right;
  border-bottom: 1px solid #ddd;
}

.profiles-table th {
  background-color: #f2f2f2;
  color: #2c3e50;
  font-weight: bold;
}

.profiles-table tr:hover {
  background-color: #f9f9f9;
}

.status {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: bold;
}

.status.employed {
  background-color: #d4edda;
  color: #155724;
}

.status.unemployed {
  background-color: #f8d7da;
  color: #721c24;
}

.action-btn {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 4px;
  color: white;
  text-decoration: none;
  margin-left: 5px;
}

.action-btn.view {
  background-color: #17a2b8;
}

.action-btn.edit {
  background-color: #ffc107;
}

.action-btn.delete {
  background-color: #dc3545;
}

.action-btn:hover {
  opacity: 0.8;
}
/* Edit Form Styles */
.edit-form {
  background: #ffffff;
  padding: 60px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  max-width: 800px;
  margin: 20px auto;
  border: 1px solid #eaeaea;
}

.edit-form .form-group {
  margin-bottom: 25px;
}

.edit-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #2c3e50;
  font-size: 15px;
}

.edit-form input[type="text"],
.edit-form input[type="tel"],
.edit-form input[type="email"],
.edit-form input[type="file"],
.edit-form select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 15px;
  transition: all 0.3s ease;
  background-color: #f9f9f9;
}

.edit-form input:focus,
.edit-form select:focus {
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
  outline: none;
  background-color: #fff;
}

.form-row {
  display: flex;
  gap: 40px;
  margin-bottom: 20px;
}

.form-row .form-group {
  flex: 1;
}

/* Radio Button Styles */
.radio-group {
  display: flex;
  gap: 20px;
  margin-top: 10px;
}

.radio-group input[type="radio"] {
  display: none;
}

.radio-group label {
  position: relative;
  padding-right: 30px;
  cursor: pointer;
  font-weight: normal;
  color: #555;
}

.radio-group label:before {
  content: "";
  position: absolute;
  right: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border: 2px solid #ccc;
  border-radius: 50%;
  background: #fff;
  transition: all 0.3s ease;
}

.radio-group input[type="radio"]:checked + label:before {
  border-color: #3498db;
  background: #3498db;
}

.radio-group label:after {
  content: "";
  position: absolute;
  right: 5px;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  transform: scale(0);
  transition: all 0.3s ease;
}

.radio-group input[type="radio"]:checked + label:after {
  transform: scale(1);
}

/* Current Image Styles */
.current-image {
  margin-bottom: 15px;
  text-align: center;
}

.current-image img {
  border-radius: 8px;
  border: 1px solid #eee;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  margin-bottom: 5px;
}

.current-image p {
  color: #777;
  font-size: 14px;
  margin-top: 5px;
}

/* Form Actions */
.form-actions {
  display: flex;
  justify-content: flex-start;
  gap: 15px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.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;
  min-width: 150px;
  text-align: center;
}

.submit-btn:hover {
  background-color: #2980b9;
  transform: translateY(-2px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.cancel-btn {
  background-color: #f5f5f5;
  color: #555;
  border: 1px solid #ddd;
  padding: 12px 25px;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  text-align: center;
  min-width: 150px;
}

.cancel-btn:hover {
  background-color: #eaeaea;
  border-color: #ccc;
}

/* File Input Styling */
.edit-form input[type="file"] {
  padding: 10px;
  border: 1px dashed #ccc;
  background-color: #fafafa;
}

.edit-form input[type="file"]:focus {
  border-color: #3498db;
  border-style: solid;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
    gap: 15px;
  }

  .edit-form {
    padding: 20px;
  }

  .form-actions {
    flex-direction: column;
  }

  .submit-btn,
  .cancel-btn {
    width: 100%;
  }
}
/* Profile View Styles */
.profile-view {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  padding: 30px;
  margin-bottom: 30px;
  border: 1px solid #eaeaea;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.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 h3 {
  color: #2c3e50;
  font-size: 24px;
  margin-bottom: 10px;
}

.profile-info p {
  color: #555;
  margin-bottom: 8px;
  font-size: 15px;
}

.profile-info p strong {
  color: #2c3e50;
  font-weight: 600;
  min-width: 120px;
  display: inline-block;
}

.profile-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.detail-card {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid #3498db;
}

.detail-card h4 {
  color: #3498db;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px dashed #ddd;
  font-size: 18px;
}

.detail-card p {
  margin-bottom: 10px;
  color: #555;
}

.detail-card p strong {
  color: #2c3e50;
  font-weight: 600;
  min-width: 120px;
  display: inline-block;
}

.status {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
}

.status.employed {
  background-color: #d4edda;
  color: #155724;
}

.status.unemployed {
  background-color: #f8d7da;
  color: #721c24;
}

.profile-actions {
  display: flex;
  gap: 15px;
  padding-top: 20px;
  border-top: 1px solid #eee;
  flex-wrap: wrap;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.action-btn i {
  font-size: 14px;
}

.action-btn.edit {
  background-color: #ffc107;
  color: #212529;
}

.action-btn.delete {
  background-color: #dc3545;
  color: white;
}

.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);
}

.action-btn:active {
  transform: translateY(0);
}
a {
  text-decoration: none;
  color: #ffffff;
}

/* Responsive Design */
@media (max-width: 768px) {
  .profile-header {
    flex-direction: column;
    text-align: center;
  }

  .profile-info {
    text-align: center;
  }

  .profile-info p strong {
    display: block;
    margin-bottom: 5px;
  }

  .profile-details {
    grid-template-columns: 1fr;
  }

  .profile-actions {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .profile-view {
    padding: 20px;
  }

  .profile-image {
    width: 120px;
    height: 120px;
  }

  .action-btn {
    padding: 8px 15px;
    font-size: 14px;
  }
}
