:root {
  --primary: #4ba7f0;
  --primary-dark: #1f8be4;
  --muted: #f5f7fb;
  --dark: #0d1b2a;
  --accent: #f9c74f;
  --border: rgba(13, 27, 42, 0.12);
}

* {
  box-sizing: border-box;
  transition: .3s !important;

}

body {
  margin: 0;
  font-family: "Cairo", sans-serif;
  background: var(--muted);
  color: var(--dark);
  min-height: 100vh;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

.main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 3rem;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.6);
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--border);
}

.logo img {
  max-width: 80px;
}

.social-icons {
  display: flex;
  gap: 0.7rem;
}

.social-icons a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(13, 27, 42, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--dark);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.social-icons a:hover,
.social-icons a:focus-visible {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(13, 27, 42, 0.16);
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
  padding: 4rem 3rem 2rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero--wide {
  padding-top: 5rem;
}

.hero--compact {
  grid-template-columns: minmax(0, 1fr);
  text-align: center;
  padding: 3.5rem 2rem 2rem;
}

.hero-content h1,
.hero h1 {
  font-size: clamp(2.2rem, 2.8vw + 1rem, 3rem);
  color: var(--primary);
  margin: 0 0 1rem;
}

.hero h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.8rem, 1.2vw + 1.2rem, 2.4rem);
  color: var(--dark);
}

.hero p {
  margin: 0 auto;
  max-width: 48ch;
}

.hero .social-image {
  width: 100%;
  padding: 20px;
  border-radius: 40px;
  background: linear-gradient(160deg, rgba(75, 167, 240, 0.13), transparent 70%);
}

.badge {
  display: inline-flex;
  padding: 0.4rem 1rem;
  background: #e3f0ff;
  color: var(--primary);
  border-radius: 999px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.btn,
.primary-btn,
.secondary-btn,
button,
.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn,
button,
.btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
}

.secondary-btn {
  background: #fff;
  color: var(--primary);
  border: 1px solid rgba(75, 167, 240, 0.4);
}

.btn:hover,
.primary-btn:hover,
.secondary-btn:hover,
button:hover,
.whatsapp-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(13, 27, 42, 0.12);
}

.secondary-btn:hover {
  color: var(--primary-dark);
}

.services {
  margin: 3rem auto 4rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.6rem;
  max-width: 1100px;
  padding: 0 2rem 2rem;
}

.service-card {
  background: #fff;
  padding: 1.8rem;
  border-radius: 24px;
  box-shadow: 0 20px 45px rgba(13, 27, 42, 0.12);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  height: 100%;
  transform: translateY(0);
}

.customer-name,
.customer-email,
.customer-phone {
  white-space: nowrap;
  overflow-wrap: normal;
}

.customer-phone a {
  color: var(--primary);
  font-weight: 600;
}

.customer-phone a:hover,
.customer-phone a:focus {
  text-decoration: underline;
}

.service-card img {
  width: 100%;
  border-radius: 18px;
  max-height: 200px;
  object-fit: cover;
  box-shadow: 0 10px 25px rgba(13, 27, 42, 0.12);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 45px rgba(0, 123, 255, 0.22);
}

.service-card h3 {
  margin: 0;
  color: var(--dark);
  text-align: center;
  font-size: 1.35rem;
}

.service-card p {
  margin: 0;
  color: #5f6b7b;
}

.service-card ul {
  padding-left: 1.1rem;
  margin: 0;
  color: #5e6c80;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.service-card .secondary-btn {
  margin-top: auto;
}

.booking-section {
  max-width: 960px;
  margin: 0 auto 3.5rem;
  padding: 2.5rem;
  background: #fff;
  border-radius: 26px;
  box-shadow: 0 32px 60px rgba(13, 27, 42, 0.09);
}

.booking-section h2 {
  margin: 0 0 0.75rem;
}

.form-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 600;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  border: 1px solid rgba(13, 27, 42, 0.2);
  border-radius: 12px;
  padding: 0.75rem 0.95rem;
  font-size: 0.95rem;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(75, 167, 240, 0.16);
  outline: none;
}

.form-grid > div {
  width: 100%;
}

.form-grid > div button {
  margin: 20px auto;
  display: block;
}

#form-status {
  margin-top: 1.25rem;
  font-weight: 600;
  text-align: center;
}

.hero--booking {
  padding-top: 5rem;
  padding-bottom: 2.5rem;
  background:
    radial-gradient(circle at 10% 20%, #f1f7ff 0%, transparent 45%),
    radial-gradient(circle at 90% 10%, #cde1ff 0%, transparent 60%),
    #f9fbff;
}

.booking-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.booking-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 600;
}

.booking-form input,
.booking-form select,
.booking-form textarea {
  border: 1px solid rgba(13, 27, 42, 0.2);
  border-radius: 12px;
  padding: 0.75rem 0.95rem;
  font-size: 0.95rem;
  background: #fff;
}

.booking-form textarea {
  resize: vertical;
}

.confirmation-card {
  background: #f6f9ff;
  border-radius: 18px;
  padding: 1.2rem 1.5rem;
  margin: 1rem 0 1.5rem;
  box-shadow: inset 0 0 0 1px rgba(47, 68, 96, 0.08);
}

.confirmation-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.booking-section .whatsapp-btn {
  padding: 0.9rem 1.2rem;
}

.dashboard-container {
  padding: 3rem 2rem;
}

.dashboard-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  font-size: 0.95rem;
}

.dashboard-table th,
.dashboard-table td {
  border: 1px solid rgba(13, 27, 42, 0.1);
  padding: 0.85rem 0.7rem;
  text-align: center;
}

.dashboard-table th {
  background: #f1f5ff;
}

.status-form {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: center;
}

.status-form select {
  border-radius: 8px;
  border: 1px solid rgba(13, 27, 42, 0.2);
  padding: 0.35rem 0.6rem;
}

.status-update-btn {
  padding: 0.4rem 0.9rem;
  border: none;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
}

.update-message {
  color: #0d6efd;
  font-weight: 600;
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.75rem 2.5rem 1rem;
}

.dashboard-header h1 {
  margin: 0;
  font-size: clamp(1.8rem, 2vw + 1rem, 2.4rem);
}

.dashboard-header nav {
  display: flex;
  gap: 1rem;
}

.dashboard-hero {
  padding-top: 2rem;
}

#refresh-btn {
  width: fit-content;
  margin: 0 auto;
}

.dashboard-section {
  max-width: 1300px;
  margin: 0 auto 3rem;
  background: #fff;
  border-radius: 26px;
  box-shadow: 0 30px 60px rgba(13, 27, 42, 0.08);
  padding: 2rem 2.5rem;
}

.dashboard-table-wrapper {
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.dashboard-table-wrapper::-webkit-scrollbar {
  height: 8px;
}

.dashboard-table-wrapper::-webkit-scrollbar-track {
  background: rgba(13, 27, 42, 0.08);
  border-radius: 999px;
}

.dashboard-table-wrapper::-webkit-scrollbar-thumb {
  background: rgba(31, 139, 228, 0.5);
  border-radius: 999px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 720px;
}

.data-table th,
.data-table td {
  border: 1px solid rgba(13, 27, 42, 0.1);
  padding: 0.85rem 0.7rem;
  text-align: center;
  white-space: nowrap;
}

.data-table th {
  background: #f1f5ff;
  font-weight: 700;
}

.data-table tbody tr:nth-child(even) {
  background: rgba(245, 247, 251, 0.6);
}

.actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  align-items: center;
}

.actions select {
  border-radius: 10px;
  border: 1px solid rgba(13, 27, 42, 0.2);
  padding: 0.45rem 0.7rem;
  width: fit-content;
}

.actions button {
  padding: 0.6rem 1.1rem;
  border-radius: 12px;
  width: 100%;
}

.actions .delete-btn {
  background: linear-gradient(135deg, #dc3545, #b02a37);
}

.actions .delete-btn:hover {
  box-shadow: 0 16px 30px rgba(176, 42, 55, 0.3);
}

.status-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(75, 167, 240, 0.1);
  color: var(--primary-dark);
}

.status-tag[data-status="pending"],
.status-tag[data-payment="unpaid"] {
  background: rgba(249, 199, 79, 0.16);
  color: #945e05;
}

.status-tag[data-status="completed"],
.status-tag[data-payment="paid"] {
  background: rgba(34, 197, 94, 0.16);
  color: #0f5132;
}

.status-tag[data-status="confirmed"] {
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
}

/* ============ */
/* Responsive */
/* ============ */

@media (max-width: 900px) {
  .main-header {
    flex-direction: column;
    gap: 0.8rem;
    padding: 1rem 1.5rem;
  }

  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-header nav {
    width: 100%;
    justify-content: center;
  }

  .dashboard-section {
    padding: 1.5rem;
  }

  footer {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 3rem 1.5rem 1.5rem;
  }

  .booking-section {
    padding: 2rem 1.5rem;
  }

  .dashboard-header {
    padding: 1.5rem 1.5rem 1rem;
  }
}
