@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800&display=swap');

:root{
  --brand-1:#1bacb0;
  --brand-2:#53d5d8;
  --brand-3:#00529B;
  --bg:#f6f8fb;
  --card:#ffffff;
  --text:#243143;
  --muted:#6b7a90;
  --shadow:0 12px 30px rgba(0,0,0,.08);
}

*{box-sizing:border-box;}

body{
  margin:0;
  font-family:'Tajawal',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  background:var(--bg);
  color:var(--text);
  direction:rtl;
}

.page{
  min-height:100vh;
  display:flex;
  flex-direction:column;
}

.header{
  padding:20px;
  background:linear-gradient(135deg,var(--brand-1),var(--brand-2));
  color:#fff;
  text-align:center;
  box-shadow:var(--shadow);
}

.header h1{
  margin:0 0 5px;
  font-size:1.7rem;
}
.header h2{
  margin:0;
  font-size:1rem;
  opacity:.9;
}

.container{
  max-width:1100px;
  margin:25px auto;
  padding:0 15px;
  flex:1;
}

.card{
  background:var(--card);
  border-radius:18px;
  box-shadow:var(--shadow);
  padding:20px 22px;
  margin-bottom:20px;
}

.form-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
  gap:15px 18px;
}

label{
  font-weight:600;
  font-size:.9rem;
  display:block;
  margin-bottom:4px;
}

input[type=text],
input[type=tel],
input[type=email],
select{
  width:100%;
  border-radius:10px;
  border:1px solid #d3d8e2;
  padding:8px 10px;
  font-family:inherit;
  font-size:.9rem;
}

input:focus,
select:focus{
  outline:none;
  border-color:var(--brand-1);
  box-shadow:0 0 0 2px rgba(27,172,176,.15);
}

.btn{
  border:none;
  border-radius:999px;
  padding:10px 24px;
  font-size:.95rem;
  font-weight:600;
  cursor:pointer;
  font-family:inherit;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
}

.btn-primary{
  background:linear-gradient(135deg,var(--brand-1),var(--brand-2));
  color:#fff;
}

.btn-outline{
  background:#fff;
  color:var(--brand-3);
  border:1px solid rgba(0,82,155,.25);
}

.btn + .btn{margin-right:8px;}

.badge{
  display:inline-block;
  padding:3px 10px;
  border-radius:999px;
  background:rgba(0,82,155,.06);
  color:var(--brand-3);
  font-size:.75rem;
}

.footer{
  text-align:center;
  padding:12px 10px 18px;
  font-size:.8rem;
  color:var(--muted);
}

/* جدول الأعمال */
.agenda-day-title{
  font-weight:700;
  margin:15px 0 8px;
  color:var(--brand-3);
}

.agenda-card{
  border-radius:14px;
  border:1px solid #e3e7f0;
  padding:10px 12px;
  margin-bottom:8px;
  background:#fff;
}

.agenda-time{
  font-size:.8rem;
  color:var(--muted);
}

/* مودال بسيط */
.modal-backdrop{
  position:fixed;
  inset:0;
  background:rgba(15,23,42,.5);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:50;
}

.modal{
  background:#fff;
  border-radius:18px;
  max-width:800px;
  width:95%;
  max-height:90vh;
  overflow:auto;
  box-shadow:var(--shadow);
  padding:18px;
}
.modal-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:8px;
}
.modal-header h3{
  margin:0;
  font-size:1.1rem;
}
.modal-close{
  border:none;
  background:none;
  font-size:1.2rem;
  cursor:pointer;
}
