* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Tahoma', 'Arial', sans-serif;
  direction: rtl;
  background-color: #f5f5f5;
  color: #333;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.header {
  background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
  color: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: bold;
}

.logo i {
  font-size: 28px;
}

.contact-info {
  display: flex;
  gap: 20px;
  font-size: 14px;
}

.contact-info span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.navbar {
  padding: 15px 0;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 25px;
  justify-content: center;
}

.nav-menu a {
  color: white;
  text-decoration: none;
  font-size: 16px;
  padding: 8px 0;
  position: relative;
  transition: color 0.3s;
}

.nav-menu a:hover {
  color: #ffeb3b;
}

.nav-menu a.active {
  color: #ffeb3b;
}

.nav-menu a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #ffeb3b;
}

.nav-toggle {
  display: none;
  font-size: 20px;
  cursor: pointer;
}

.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
}

.btn-primary {
  background-color: #ff6b35;
  color: white;
}

.btn-primary:hover {
  background-color: #e55a2b;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-outline {
  background: transparent;
  border: 2px solid #1a237e;
  color: #1a237e;
}

.btn-outline:hover {
  background: #1a237e;
  color: white;
}

.btn-secondary {
  background-color: #6c757d;
  color: white;
}

.btn-secondary:hover {
  background-color: #5a6268;
}

.btn-sm {
  padding: 5px 12px;
  font-size: 13px;
}

.btn-error {
  background-color: #dc3545;
  color: white;
}

.btn-error:hover {
  background-color: #c82333;
}

.form-control {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: #1a237e;
  box-shadow: 0 0 0 2px rgba(26, 35, 128, 0.2);
}

.form-row {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.form-group {
  margin-bottom: 20px;
  flex: 1;
  min-width: 200px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #555;
}

.form-group textarea.form-control {
  resize: vertical;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: normal;
  cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
}

.page-header {
  background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
  color: white;
  padding: 50px 0;
  margin-bottom: 30px;
  text-align: center;
}

.page-header h1 {
  font-size: 36px;
  margin-bottom: 10px;
}

.page-header p {
  font-size: 18px;
  opacity: 0.9;
}

.hero {
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  padding: 80px 0;
  text-align: center;
}

.hero h1 {
  font-size: 42px;
  margin-bottom: 15px;
}

.hero p {
  font-size: 20px;
  margin-bottom: 25px;
  opacity: 0.9;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.service-card {
  background: white;
  border-radius: 8px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.service-icon {
  font-size: 48px;
  color: #1a237e;
  margin-bottom: 15px;
}

.service-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #1a237e;
}

.service-card p {
  color: #666;
  margin-bottom: 15px;
  font-size: 14px;
}

.service-price {
  font-weight: bold;
  color: #ff6b35;
  margin: 10px 0;
}

.union-discount {
  font-size: 13px;
  color: #27ae60;
  background: #e8f8f0;
  padding: 5px 10px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 10px;
}

.section-title {
  text-align: center;
  font-size: 32px;
  color: #1a237e;
  margin-bottom: 10px;
}

.cta-section {
  background: linear-gradient(135deg, #ff6b35 0%, #e55a2b 100%);
  color: white;
  padding: 60px 0;
  text-align: center;
  margin: 40px 0;
  border-radius: 8px;
}

.cta-section h2 {
  font-size: 28px;
  margin-bottom: 15px;
}

.cta-section .btn {
  background: white;
  color: #ff6b35;
  padding: 14px 36px;
  font-size: 18px;
}

.cta-section .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

.alert {
  padding: 12px 20px;
  margin: 0;
  text-align: center;
  font-weight: bold;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
}

.alert-error {
  background-color: #f8d7da;
  color: #721c24;
}

.about-section {
  padding: 40px 0;
}

.about-content {
  display: flex;
  gap: 40px;
  align-items: center;
}

.about-text {
  flex: 1;
}

.about-text h2 {
  color: #1a237e;
  margin-bottom: 15px;
}

.about-text p {
  margin-bottom: 15px;
}

.service-list {
  list-style: none;
  margin-top: 15px;
}

.service-list li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  position: relative;
  padding-right: 25px;
}

.service-list li:before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  right: 0;
  color: #27ae60;
}

.about-image {
  flex: 1;
  text-align: center;
}

.about-image img {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.contact-section {
  padding: 40px 0;
}

.contact-info-card,
.contact-form-card {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-bottom: 20px;
}

.contact-list {
  list-style: none;
}

.contact-list li {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  gap: 10px;
}

.union-badge {
  display: inline-block;
  background: #1a237e;
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  margin-top: 15px;
  font-weight: bold;
}

.documents-section {
  padding: 40px 0;
}

.categories-sidebar {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  height: fit-height;
}

.categories-sidebar h3 {
  color: #1a237e;
  margin-bottom: 15px;
  border-bottom: 2px solid #1a237e;
  padding-bottom: 10px;
}

.category-list {
  list-style: none;
}

.category-list li {
  margin-bottom: 5px;
}

.category-list a {
  display: block;
  padding: 8px 12px;
  color: #555;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s;
}

.category-list li.active a,
.category-list a:hover {
  background: #1a237e;
  color: white;
}

.documents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.document-card {
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  gap: 15px;
}

.doc-icon {
  font-size: 36px;
  color: #1a237e;
  min-width: 50px;
}

.doc-info {
  flex: 1;
}

.doc-info h4 {
  margin-bottom: 5px;
  font-size: 16px;
}

.doc-info h4 a {
  color: #1a237e;
  text-decoration: none;
}

.doc-info h4 a:hover {
  text-decoration: underline;
}

.doc-category,
.doc-date {
  font-size: 12px;
  color: #888;
}

.doc-author {
  font-size: 12px;
  color: #888;
}

.no-docs {
  text-align: center;
  padding: 40px;
  color: #888;
  grid-column: 1 / -1;
}

.booking-page {
  padding: 40px 0;
}

.form-container {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.auth-section {
  padding: 40px 0;
}

.auth-form-container {
  max-width: 500px;
  margin: 0 auto;
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.auth-form h2 {
  color: #1a237e;
  margin-bottom: 20px;
  text-align: center;
}

.auth-footer {
  text-align: center;
  margin-top: 20px;
}

.auth-footer a {
  color: #1a237e;
  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
}

.confirmation-section {
  padding: 40px 0;
}

.confirmation-card {
  background: white;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.confirmation-header {
  margin-bottom: 30px;
}

.confirmation-header i {
  font-size: 60px;
  color: #27ae60;
  margin-bottom: 15px;
}

.detail-grid {
  text-align: right;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.detail-row .label {
  color: #666;
  font-weight: bold;
}

.detail-row .value {
  color: #333;
}

.detail-row.price {
  font-size: 18px;
  font-weight: bold;
  color: #ff6b35;
}

.confirmation-footer {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
}

.status-badge.pending {
  background: #fff3cd;
  color: #856404;
}

.status-badge.confirmed {
  background: #cce5ff;
  color: #004085;
}

.status-badge.in_progress {
  background: #fff3cd;
  color: #856404;
}

.status-badge.completed {
  background: #d4edda;
  color: #155724;
}

.status-badge.cancelled {
  background: #f8d7da;
  color: #721c24;
}

.status-badge.success {
  background: #d4edda;
  color: #155724;
}

.appointments-table {
  width: 100%;
  border-collapse: collapse;
}

.appointments-table th,
.appointments-table td {
  padding: 12px;
  text-align: center;
  border-bottom: 1px solid #eee;
}

.appointments-table th {
  background: #1a237e;
  color: white;
  font-weight: bold;
}

.appointments-table tbody tr:hover {
  background: #f8f9fa;
}

.empty-state {
  text-align: center;
  padding: 50px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.empty-state i {
  font-size: 50px;
  color: #ccc;
  margin-bottom: 15px;
}

.admin-section {
  padding: 40px 0;
}

.form-container {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: white;
  border-radius: 8px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  gap: 15px;
}

.stat-icon {
  font-size: 36px;
  color: #1a237e;
}

.stat-number {
  font-size: 28px;
  font-weight: bold;
  color: #1a237e;
}

.stat-label {
  font-size: 14px;
  color: #666;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.admin-table th {
  background: #1a237e;
  color: white;
  padding: 15px;
  text-align: center;
  font-weight: bold;
}

.admin-table td {
  padding: 12px;
  text-align: center;
  border-bottom: 1px solid #eee;
}

.admin-table tbody tr:hover {
  background: #f8f9fa;
}

.header-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.status-form {
  margin: 0;
}

.status-select {
  padding: 5px 10px;
  border-radius: 4px;
  border: 1px solid #ddd;
  font-size: 13px;
}

.table-responsive {
  overflow-x: auto;
}

@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .form-group.col-md-6 {
    width: 100%;
  }

  .about-content {
    flex-direction: column;
    gap: 20px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1a237e;
    flex-direction: column;
    gap: 0;
    padding: 10px 0;
    clip-path: inset(100% 0 0 0);
    transition: clip-path 0.3s ease-out;
    z-index: 99;
  }

  .nav-menu.active {
    clip-path: inset(0 0 0 0);
  }

  .nav-menu li {
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .nav-menu a {
    display: block;
    padding: 12px 20px;
    color: white;
  }

  .contact-info {
    display: none;
  }
}

.error-section {
  padding: 60px 0;
  text-align: center;
}

.error-section h1 {
  font-size: 72px;
  color: #1a237e;
  margin-bottom: 10px;
}

.error-section h2 {
  font-size: 28px;
  color: #666;
  margin-bottom: 15px;
}
