/* ===============================
   Design Tokens (Polished)
================================ */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@200..1000&display=swap');

:root {
  color-scheme: light;

  --bg-main: #f7f8fc;
  --bg-card: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.72);

  --text-main: #0b1220;
  --text-muted: #64748b;

  /* Premium soft gold */
  --accent: #c7a14a;
  --accent-dark: #ad8938;
  --accent-ink: #1e293b;

  --border-soft: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.14);

  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;

  --shadow-soft: 0 10px 28px rgba(15, 23, 42, 0.08);
  --shadow-hover: 0 18px 44px rgba(15, 23, 42, 0.14);

  --ring: 0 0 0 4px rgba(199, 161, 74, 0.18);

  --container: 1100px;
  --container-wide: 1600px;
}

/* ===============================
   Global Reset + Better Defaults
================================ */
* {
  box-sizing: border-box;
  font-family: 'Cairo', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  padding-top: 50px;
  margin: 0;
  direction: rtl;
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;

  /* subtle premium gradient + noise-ish feel */
  background:
    radial-gradient(1200px 700px at 10% -10%, rgba(199, 161, 74, .14), transparent 55%),
    radial-gradient(900px 520px at 90% 0%, rgba(15, 23, 42, .06), transparent 60%),
    linear-gradient(180deg, #fbfcff, #eef2f7);
}

::selection {
  background: rgba(199, 161, 74, 0.28);
}

a {
  color: inherit;
}

/* ===============================
   Layout
================================ */
.container {
  max-width: var(--container);
  margin: 60px auto;
  padding: 0 24px;
}

.container.wide {
  max-width: var(--container-wide);
}

.page-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 28px;
  margin-top: 30px;
}

@media (min-width: 1600px) {
  .page-grid {
    grid-template-columns: 2fr 1fr;
  }
}

@media (max-width: 1024px) {
  .page-grid {
    grid-template-columns: 1fr;
  }
}

/* ===============================
   Card (More Premium)
================================ */
.card {
  position: relative;
  background: var(--bg-glass);
  border: 1px solid color-mix(in srgb, var(--border-soft) 75%, transparent);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, .55), transparent 45%);
  opacity: .6;
}

.card:hover {
  box-shadow: var(--shadow-hover);
  border-color: color-mix(in srgb, var(--border-strong) 70%, transparent);
}

/* ===============================
   Headings
================================ */
h1,
h2,
h3,
h4 {
  margin: 0 0 12px;
}

h1 {
  font-size: clamp(26px, 2.2vw, 34px);
  letter-spacing: -0.6px;
  margin-bottom: 22px;
}

h2 {
  font-size: clamp(20px, 1.7vw, 26px);
  letter-spacing: -0.3px;
  margin-bottom: 14px;
}

h3 {
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 14px;
}

.muted {
  color: var(--text-muted);
  font-size: 13px;
}

/* ===============================
   Info Header (Sleeker)
================================ */
.info-box {
  background:
    radial-gradient(900px 220px at 20% 0%, rgba(199, 161, 74, .18), transparent 55%),
    linear-gradient(135deg, rgba(15, 23, 42, .98), rgba(30, 41, 59, .98));
  color: #fff;
  padding: 22px 26px;
  border-radius: var(--radius-lg);
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 18px 40px rgba(2, 6, 23, .25);
}

@media (max-width: 800px) {
  .info-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

.info-box strong {
  color: color-mix(in srgb, var(--accent) 85%, #fff);
  font-weight: 700;
}

/* ===============================
   Forms
================================ */
label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 7px;
  margin-bottom: 2px;
  display: block;
}

input,
select,
textarea {
  width: 100%;
  padding: 13px 14px;
  font-size: 14px;
  border-radius: var(--radius-md);
  border: 1px solid color-mix(in srgb, var(--border-soft) 85%, transparent);
  background: rgba(255, 255, 255, 0.85);
  color: var(--text-main);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease, background .2s ease;
}

input::placeholder,
textarea::placeholder {
  color: #94a3b8;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--accent) 80%, #ffd);
  background: #fff;
  box-shadow: var(--ring);
}

input:hover,
select:hover,
textarea:hover {
  border-color: color-mix(in srgb, var(--border-strong) 80%, transparent);
}

textarea {
  resize: vertical;
  min-height: 110px;
}

/* ===============================
   Buttons (Cleaner + More Modern)
================================ */
button {
  appearance: none;
  border: none;
  cursor: pointer;

  padding: 11px 18px;
  border-radius: 999px;

  font-size: 14px;
  font-weight: 700;
  letter-spacing: .2px;

  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--accent-ink);

  box-shadow: 0 14px 28px rgba(199, 161, 74, 0.28);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(32, 32, 30, 0.42);
  filter: saturate(1.05);
}

button:active {
  transform: translateY(0px) scale(.99);
}

button:focus-visible {
  outline: none;
  box-shadow: var(--ring), 0 18px 36px rgba(199, 161, 74, 0.42);
}

button.secondary {
  background: rgba(255, 255, 255, .75);
  color: var(--text-main);
  border: 1px solid color-mix(in srgb, var(--border-soft) 90%, transparent);
  box-shadow: 0 10px 22px rgba(15, 23, 42, .06);
}

button.secondary:hover {
  box-shadow: 0 14px 28px rgba(15, 23, 42, .10);
}

button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ===============================
   Divider
================================ */
hr {
  border: none;
  height: 1px;
  background: linear-gradient(to left, transparent, rgba(15, 23, 42, .10), transparent);
  margin: 6px 0;
}

/* ===============================
   Lists
================================ */
ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

ul li {
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid rgba(15, 23, 42, 0.05);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 10px;

  display: flex;
  justify-content: space-between;
  align-items: center;

  font-size: 14px;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

ul li:hover {
  transform: translateY(-1px);
  background: rgba(15, 23, 42, 0.035);
  border-color: rgba(15, 23, 42, 0.10);
}

/* ===============================
   Status Badges (More Elegant)
================================ */
.badge {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .2px;
  border: 1px solid rgba(15, 23, 42, .08);
}

.badge-draft {
  background: rgba(148, 163, 184, .25);
}

.badge-review {
  background: rgba(254, 243, 199, .80);
}

.badge-missing {
  background: rgba(254, 226, 226, .85);
}

.badge-received {
  background: rgba(220, 252, 231, .85);
}

/* ===============================
   Form Grid
================================ */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.form-grid.single {
  grid-template-columns: 1fr;
}

@media (min-width: 1400px) {
  .form-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* ===============================
   Form Actions
================================ */
.actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 30px;
}

/* ===============================
   Header Card Layout Helpers
================================ */
.info-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.status {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ===============================
   Step Block (Cleaner)
================================ */
.step {
  margin-top: 18px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.025);
  border: 1px solid color-mix(in srgb, var(--border-soft) 90%, transparent);
}

.step h4 {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 700;
}

/* ===============================
   Next Step Button
================================ */
.next-step {
  margin-top: 30px;
  text-align: left;
}

.next-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 14px 26px;
  border-radius: 999px;

  background:
    radial-gradient(700px 220px at 20% 0%, rgba(199, 161, 74, .22), transparent 55%),
    linear-gradient(135deg, #0f172a, #1e293b);
  color: #fff;
  text-decoration: none;
  font-weight: 800;

  border: 1px solid rgba(255, 255, 255, .10);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.28);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.next-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 46px rgba(15, 23, 42, 0.35);
  filter: saturate(1.05);
}

.next-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(199, 161, 74, 0.18), 0 22px 46px rgba(15, 23, 42, 0.35);
}

/* ===============================
   Secondary Link Button (Your improved one)
================================ */
a.secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--border-soft) 70%, transparent);
  background: color-mix(in srgb, #fff 72%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: .2px;

  box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  will-change: transform;
}

a.secondary:hover {
  background: color-mix(in srgb, #f1f5f9 86%, #fff);
  border-color: color-mix(in srgb, var(--border-soft) 90%, #94a3b8);
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, .10);
}

a.secondary:active {
  transform: translateY(0px) scale(.99);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
}

a.secondary:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px color-mix(in srgb, #fff 20%, transparent),
    0 0 0 6px rgba(199, 161, 74, .22),
    0 16px 34px rgba(15, 23, 42, .10);
}

/* icons inside */
a.secondary svg,
a.secondary i {
  opacity: .92;
  transition: transform .18s ease, opacity .18s ease;
}

a.secondary:hover svg,
a.secondary:hover i {
  transform: translateX(2px);
  opacity: 1;
}

/* ===============================
   File Box (More "cardy")
================================ */
.file-box {
  margin: 10px 0 14px;
  padding: 12px 16px;
  border: 1px dashed rgba(148, 163, 184, .55);
  border-radius: 14px;
  background: rgba(255, 255, 255, .70);
  box-shadow: 0 10px 22px rgba(15, 23, 42, .05);
}

.file-box a {
  text-decoration: none;
  font-weight: 800;
}

.card .files {
  color: var(--accent);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}

.timeline li {
  position: relative;
  padding: 5px 30px;
  border-bottom: 1px dashed #ddd;
  list-style: none;
  color: var(--accent);
}



/* ===============================
   Responsive
================================ */
@media (max-width: 768px) {
  .container {
    margin: 30px auto;
    padding: 0 12px;
  }

  .card {
    padding: 22px;
  }

  .timeline li {
    padding: 5px 10px;
    font-size: 12px;
  }
}



.login-form {
  max-width: 400px;
  margin: 80px auto;
  background: var(--bg-card);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.login-form input {
  margin-bottom: 18px;
}

.login-form label {
  margin-bottom: 5px;
}

.login-form button {
  width: 100%;
  border-radius: 10px;
}

.login-form button:hover {
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.42);
  background: var(--accent-ink) !important;
  color: #fff;
  transition: all 0.3s ease;
}


/*=========== nav ===========*/
nav {
  background: var(--bg-card);
  padding: 12px 24px;
  box-shadow: var(--shadow-soft);
  border-radius: var(--radius-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

nav img {
  height: 60px;
  cursor: pointer;
}

.mobnav {
  display: none;
}

@media screen and (max-width:800px) {
  .mobnav {
    display: block;
  }

  .pcnav {
    display: none;
  }
}

nav .pcul {
  display: flex;
  gap: 5px;
}

.pcul li {
  list-style: none;
  padding: 5px 8px;
  border: none;
  background: transparent;
  border-radius: 8px;
}

.pcul li a {
  text-decoration: none;
  color: var(--text-main);
}

.mobnav-dropdown {
  position: absolute;
  right: 10px;
  top: 0;
  right: 0;
  z-index: 1;
  display: inline-block;
  height: 100vh;
  background: var(--bg-card);
  box-shadow: var(--shadow-soft);
  width: 70%;
  padding-top: 100px;
  display: none;
  animation: slide 1s ease forwards;

}

.mobnav .dropdown-content {
  min-width: 160px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding: 10px;

}

@keyframes slide {
  0% {
    opacity: 0.5;
    transform: translateX(100%);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.dropdown-content a {
  color: var(--text-main);
  padding: 10px 14px;
  text-decoration: none;
  display: block;
  border-radius: 6px;
}



/*================= user dashboard =================*/
.hello-card {
  display: flex;
  flex-direction: column;
}

.cards {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.card-link {
  text-decoration: none;
  color: inherit;
  width: 170px;
  display: block;
  text-align: center;
  background: var(--bg-card);
  padding: 20px 10px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
}

.card-link:hover {
  box-shadow: var(--shadow-hover);
  transform: scale(1.05);
}


/*================= clients page =================*/
.clients-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
@media screen and (max-width: 768px) {
  .clients-menu div {
    width: 100%;
  }
  .clients-menu {
    width: 100%;
  }
}


@media screen and (max-width:800px) {
  .in-mob{
  width: 100%;
}
}
