/* =========================
   RESET + BASE
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  font-family: Tahoma, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  direction: rtl;
}

/* =========================
   ROOT COLORS
========================= */
:root {
  --primary: #1D4ED8;
  --primary-dark: #1E40AF;
  --primary-light: #DBEAFE;

  --bg: #F9FAFB;
  --surface: #FFFFFF;
  --border: #E5E7EB;

  --text: #111827;
  --text-muted: #6B7280;

  --success: #16A34A;
  --danger: #DC2626;
  --warning: #D97706;

  --radius: 12px;
  --shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* =========================
   CONTAINER
========================= */
.container {
  width: 100%;
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

/* =========================
   CARD
========================= */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  border: 1px solid var(--border);
}

/* =========================
   HEADINGS
========================= */
h1, h2, h3 {
  margin-bottom: 10px;
  font-weight: bold;
}

h1 {
  font-size: 26px;
}

h2 {
  font-size: 20px;
}

/* =========================
   FORM
========================= */
.form-group {
  margin-bottom: 15px;
}

label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--text-muted);
}

input,
select,
textarea {
  width: 100%;
  padding: 10px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: 14px;
  outline: none;
  transition: 0.2s;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-light);
}

/* =========================
   BUTTONS
========================= */
.btn {
  padding: 10px 18px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  font-size: 14px;
  transition: 0.2s;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-success {
  background: var(--success);
  color: white;
}

.btn-secondary {
  background: #6B7280;
  color: white;
}

/* =========================
   TABLE
========================= */
.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

.table th,
.table td {
  border: 1px solid var(--border);
  padding: 10px;
  text-align: center;
}

.table th {
  background: var(--primary-light);
}

/* =========================
   ALERTS
========================= */
.alert {
  padding: 10px;
  border-radius: var(--radius);
  margin-bottom: 15px;
  font-size: 14px;
}

.alert-success {
  background: #DCFCE7;
  color: #166534;
}

.alert-danger {
  background: #FEE2E2;
  color: #7F1D1D;
}

/* =========================
   FLEX HELPERS
========================= */
.flex {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
  .container {
    padding: 10px;
  }

  .flex {
    flex-direction: column;
  }
}