/* =========================
   My Exams - Specialitie Theme
   Palette (from your home design):
   Primary: #FF7A2F
   Soft Peach: #FFE2D2
   Page BG: #FFF8F3
   Border: #F0E6DF
   Text: #2B2B2B
   Muted: #7A7A7A
========================= */

:root{
  --primary:#FF7A2F;
  --primary-2:#ff6a17;
  --peach:#FFE2D2;
  --bg:#FFF8F3;
  --card:#ffffff;
  --border:#F0E6DF;
  --text:#2B2B2B;
  --muted:#7A7A7A;
  --shadow: 0 10px 30px rgba(16,24,40,.08);
  --shadow-soft: 0 6px 18px rgba(16,24,40,.06);
  --radius: 18px;
  --radius-sm: 14px;
  --ring: 0 0 0 4px rgba(255,122,47,.18);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Tahoma, Arial;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: var(--font);
  color:var(--text);
  background:
    radial-gradient(900px 400px at 15% 15%, rgba(255,122,47,.10), transparent 60%),
    radial-gradient(800px 380px at 85% 10%, rgba(255,226,210,.85), transparent 55%),
    linear-gradient(180deg, var(--bg), #ffffff 55%, var(--bg));
}

/* ============== Layout ============== */
.wrap{
  width:min(1100px, 92%);
  margin: 28px auto 60px;
}

.top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding: 18px 18px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.top h1{
  margin:0;
  font-size: clamp(20px, 2.2vw, 28px);
  letter-spacing:.2px;
}

.actions{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}

/* ============== Error (if you still use it) ============== */
.err{
  margin: 14px 0 0;
  padding: 12px 14px;
  border:1px solid #ffd1c2;
  background: #fff2ed;
  color:#8a2c12;
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
}

/* ============== List ============== */
.list{
  margin-top: 16px;
  display:grid;
  gap: 14px;
}

.empty{
  margin-top: 14px;
  padding: 22px 18px;
  text-align:center;
  border-radius: var(--radius);
  border:1px dashed var(--border);
  background: rgba(255,255,255,.75);
  box-shadow: var(--shadow-soft);
  color: var(--muted);
}

/* ============== Card ============== */
.item{
  border:1px solid var(--border);
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 16px;
  position:relative;
  overflow:hidden;
}

.item::before{
  content:"";
  position:absolute;
  inset:auto -60px -80px auto;
  width:220px;
  height:220px;
  background: radial-gradient(circle at 30% 30%, rgba(255,122,47,.18), transparent 60%);
  transform: rotate(12deg);
  pointer-events:none;
}

.row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.row + .row{ margin-top: 10px; }

.id{
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
}

.st{
  font-size: 13px;
  color: var(--muted);
  display:flex;
  align-items:center;
  gap:8px;
}

.lbl{
  color: var(--muted);
  font-size: 13px;
  min-width: 84px;
}

.val{
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  text-align:left;
  direction:ltr; /* عشان أسماء مثل Information Technology تطلع مظبوطة */
}

/* ============== Actions inside item ============== */
.row.actions{
  margin-top: 12px;
  justify-content:flex-start;
  gap:10px;
  flex-wrap:wrap;
}

/* ============== Buttons (matches your theme) ============== */
.btn{
  appearance:none;
  border:none;
  cursor:pointer;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 14px;
  transition: transform .08s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  white-space:nowrap;
}

.btn:active{ transform: scale(.98); }

.btn.primary{
  background: linear-gradient(180deg, var(--primary), var(--primary-2));
  color:#fff;
  box-shadow: 0 10px 18px rgba(255,122,47,.25);
}
.btn.primary:hover{ box-shadow: 0 12px 22px rgba(255,122,47,.32); }

.btn.ghost{
  background: rgba(255,255,255,.9);
  color: var(--primary);
  border: 1px solid rgba(255,122,47,.25);
}
.btn.ghost:hover{
  border-color: rgba(255,122,47,.40);
  box-shadow: var(--shadow-soft);
}

.btn:focus{
  outline:none;
  box-shadow: var(--ring);
}

/* ============== Badge for status (optional upgrade) ============== */
.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.92);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.badge.done{
  border-color: rgba(34,197,94,.25);
  background: rgba(34,197,94,.08);
}
.badge.pending{
  border-color: rgba(245,158,11,.25);
  background: rgba(245,158,11,.10);
}

/* ============== Responsive ============== */
@media (max-width: 640px){
  .top{
    flex-direction:column;
    align-items:flex-start;
  }
  .actions{
    width:100%;
    justify-content:flex-start;
  }
  .row{
    flex-direction:column;
    align-items:flex-start;
  }
  .val{
    text-align:right;
    direction:rtl;
  }
}