/* ===== Root Variables ===== */
:root {
  --primary: #1A3A7D;
  --secondary: #0F2A5F;
  --accent: #58A2D7;
  --accent-2: #2193b0;
  --light: #f8f9fa;
  --text: #343a40;
  --white: #fff;
  --border: #dee2e6;
  --shadow: 0 6px 18px rgba(0,0,0,.10);
}

/* ===== Base ===== */
body {
  font-family: 'Tajawal', 'Cairo', Arial, sans-serif;
  color: var(--text);
  background: var(--light);
  margin: 0;
  padding-top: 72px;
  scroll-behavior: smooth;
}
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--primary);
}

/* ===== Containers ===== */
.container {
  max-width: 1100px;
  margin: 32px auto;
  padding: 0 16px;
}
.section-padding {
  padding: 60px 0;
}
.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 12px auto 0;
  border-radius: 2px;
}

/* ===== Backgrounds ===== */
.section-bg-primary {
  background: linear-gradient(135deg, #e3ecfa 60%, #b3e5fc 100%);
}
.section-bg-accent {
  background: linear-gradient(135deg, #58A2D7 60%, #1A3A7D 100%);
  color: #fff;
}
.gradient-bg {
  background: linear-gradient(135deg, #f8f9fa 60%, #e3ecfa 100%);
}

/* ===== Navbar ===== */
.navbar {
  background: var(--primary);
  padding: 0.5rem 1rem;
}
.navbar .nav-link {
  color: #fff !important;
  font-weight: 500;
}
.navbar .nav-link:hover {
  color: var(--accent) !important;
}
.navbar-toggler {
  border: none;
}
.navbar-toggler-icon,
.custom-toggler-icon span {
  background-color: #fff;
}

/* ===== Cards ===== */
.card, .card-modern {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  transition: 0.25s;
}
.card-modern:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 8px 32px rgba(26,58,125,0.13);
}
.card h2 { color: var(--accent); }

/* ===== Buttons ===== */
.btn {
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  text-align: center;
  box-shadow: var(--shadow);
  transition: 0.2s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: none;
  color: #fff;
}
.btn-outline {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
}
.btn:hover { transform: translateY(-2px); }
.custom-btn {
  font-weight: 700;
  font-size: 1.1rem;
  padding: 12px 40px;
  border-radius: 50px;
  background: linear-gradient(45deg, #007bff, #0056b3);
  border: none;
  color: #fff;
}
.custom-btn:hover {
  background: linear-gradient(45deg, #0056b3, #003f88);
  transform: translateY(-3px);
}

/* ===== Tables ===== */
table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 10px;
  overflow: hidden;
}
thead th {
  background: #f1f5f9;
  color: #0f172a;
  font-weight: 600;
  padding: 12px;
}
tbody td {
  padding: 12px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
tbody tr:hover { background: #f8fafc; }
.badge-amount {
  background: #e0f2fe;
  color: #0369a1;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}
.badge-discount {
  background: #d1fae5;
  color: #065f46;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}

/* ===== Forms ===== */
.form-control, .form-select, textarea {
  padding: 0.85rem 1.1rem;
  border-radius: 14px;
  border: 2px solid var(--border);
  transition: 0.3s;
}
.form-control:focus, .form-select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 5px rgba(88,162,215,0.18);
}

/* ===== Footer ===== */
footer {
  background: var(--secondary);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 30px;
}
footer a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
}
footer a:hover { color: var(--white); }

/* ===== Floating Button (WhatsApp / Contact) ===== */
.floating-btn {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: #25d366;
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 4px 16px #25d36655;
  transition: 0.2s;
  z-index: 999;
}
.floating-btn:hover {
  transform: scale(1.1);
}

/* ===== Utility ===== */
.t-right { text-align: right; }
.total { font-weight: 700; color: var(--accent); }
.foot { display: flex; flex-wrap: wrap; gap: 12px; }
.note {
  margin-top: 10px;
  padding: 12px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  background: #f1f5f9;
  color: #6c757d;
  font-size: 14px;
}

/* ===== Responsive ===== */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 768px) {
  .grid-2 { grid-template-columns: 1fr; }
  .container { padding: 0 10px; }
  .section-title { font-size: 1.4rem; }
}
