/*  AEM CONSULTANCY — SHARED STYLES*/

@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Sora:wght@400;500;600;700;800&display=swap");

/* ── Variables ───────────────────────────── */
:root {
  --navy: #2c4260;
  --blue: #3f5c7c;
  --blue-dark: #2c4260;
  --blue-light: #e0eeff;
  --mid: #6b8fad;
  --light: #a8c4d8;
  --pale: #d4e3ed;
  --bg: #f0f5f9;
  --white: #ffffff;
  --text: #3f5c7c;
  --muted: #7a9bb5;
  --border: #d4e3ed;
  --slate: #4a6880;
  --green: #0e6644;
  --green-bg: #e0f5ef;
  --red: #a02020;
  --red-bg: #fde8e8;
  --amber: #8a6200;
  --amber-bg: #fef3cd;
  --gold: #c9a84c;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --sidebar-w: 250px;
  --font: "DM Sans", sans-serif;
  --font-head: "Sora", sans-serif;
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-size: 15px;
}
body {
  font-family: "DM Sans", sans-serif;
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font-family: inherit;
  cursor: pointer;
}
input,
select,
textarea {
  font-family: inherit;
}
.portal {
  width: 100%;
}

.main-content {
  flex: 1;
  min-width: 0;
  width: calc(100% - var(--sidebar-w));
}
/*  Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: white;
  background: var(--navy);
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  transform: translateY(8px);
  opacity: 0;
  transition: all 0.3s ease;
  max-width: 320px;
}
.toast.toast-show {
  transform: translateY(0);
  opacity: 1;
}
.toast.toast-success {
  background: var(--green);
}
.toast.toast-error {
  background: var(--red);
}
.toast.toast-info {
  background: var(--blue);
}

/*  Client Management */
.cm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.cm-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text, #1a2332);
}
.cm-subtitle {
  font-size: 0.8rem;
  color: var(--muted, #8a9ab5);
  margin-top: 2px;
}

.cm-header-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.cm-date-pill,
.cm-time-pill {
  border: 1px solid #dde3ef;
  border-radius: 8px;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  color: var(--muted, #8a9ab5);
  background: #fff;
}

.cm-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.cm-stat-card {
  background: #f4f6fb;
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
}
.cm-stat-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  color: #8a9ab5;
  margin-bottom: 0.35rem;
}
.cm-stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: #1a2332;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.cm-stat-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  border-radius: 20px;
  padding: 0.2rem 0.65rem;
}
.cm-tag-green {
  background: #e6f9f0;
  color: #1db96e;
}
.cm-tag-blue {
  background: #e8f0fd;
  color: #3b82f6;
}

.cm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 900px) {
  .cm-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 580px) {
  .cm-grid {
    grid-template-columns: 1fr;
  }
  .cm-stats {
    grid-template-columns: 1fr;
  }
}

.cm-card {
  background: #fff;
  border: 1px solid #e8edf5;
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.cm-card:hover {
  box-shadow: 0 6px 24px rgba(60, 80, 120, 0.1);
}

.cm-card-top {
  padding: 1.25rem 1.25rem 0.5rem;
}
.cm-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #2e4a6e;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cm-card-body {
  padding: 0.5rem 1.25rem 1.25rem;
}
.cm-client-name {
  font-size: 1rem;
  font-weight: 700;
  color: #1a2332;
  margin-bottom: 2px;
}
.cm-client-company {
  font-size: 0.78rem;
  color: #3b82f6;
  margin-bottom: 0.75rem;
}

.cm-plan-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  border-radius: 20px;
  padding: 0.22rem 0.7rem;
  margin-bottom: 1rem;
  border: 1px solid;
}
.cm-plan-teal {
  background: #eafaf5;
  color: #1a9e72;
  border-color: #b2ead3;
}
.cm-plan-purple {
  background: #f3eeff;
  color: #7c3aed;
  border-color: #d4bcfc;
}
.cm-plan-default {
  background: #f1f3f8;
  color: #5a6a85;
  border-color: #d5dbe8;
}

.cm-meta {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.9rem;
}
.cm-meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.73rem;
}
.cm-meta-key {
  color: #8a9ab5;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.cm-meta-val {
  color: #1a2332;
  font-weight: 500;
}
.cm-red {
  color: #e53935 !important;
}

.cm-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
}
.cm-pending-tag {
  background: #f1f3f8;
  color: #5a6a85;
  font-size: 0.7rem;
  font-weight: 500;
  border-radius: 20px;
  padding: 0.2rem 0.65rem;
}
.cm-since {
  font-size: 0.7rem;
  color: #3b82f6;
}

.cm-card-actions {
  display: flex;
  gap: 0.6rem;
}
.cm-btn-upload {
  flex: 1;
  background: #1a2d4a;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.5rem;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}
.cm-btn-upload:hover {
  background: #2e4a6e;
}
.cm-btn-delete {
  background: transparent;
  border: 1px solid #ef4444;
  color: #ef4444;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
}

.cm-btn-delete:hover {
  background: #ef4444;
  color: #fff;
}
.cm-btn-view {
  flex: 1;
  background: #fff;
  color: #1a2332;
  border: 1px solid #dde3ef;
  border-radius: 8px;
  padding: 0.5rem;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}
.cm-btn-view:hover {
  background: #f4f6fb;
}

/*  Login Page  */
.login-screen {
  display: flex;
  min-height: 100vh;
}

.login-left {
  width: 56%;
  min-height: 100vh;
  background: linear-gradient(
    160deg,
    #1e2f45 0%,
    var(--navy) 50%,
    #3a5575 100%
  );
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.5rem 3rem;
  overflow: hidden;
}
.login-left::after {
  content: "";
  position: absolute;
  bottom: -80px;
  right: -80px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: rgba(168, 196, 216, 0.06);
  pointer-events: none;
}
.login-left::before {
  content: "";
  position: absolute;
  bottom: 40px;
  right: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(168, 196, 216, 0.04);
  pointer-events: none;
}

.ll-logo {
  display: flex;
  align-items: center;

  position: relative;
  z-index: 1;
}
.ll-logo-img {
  height: 120px;
  width: 130px;
  border-radius: 50%;
  object-fit: cover;
}
.ll-logo-box {
  border-radius: 10px;
  padding: 0.45rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ll-logo-aem {
  font-family: "DM Serif Display", serif;
  font-size: 18px;
  color: white;
}
.ll-logo-lines {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.ll-logo-lines span {
  font-size: 9px;
  color: rgba(168, 196, 216, 0.6);
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-transform: uppercase;
}
.ll-consultancy {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(168, 196, 216, 0.4);
}

.ll-body {
  position: relative;
  z-index: 1;
}
.ll-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.5rem;
}
.ll-eyebrow-line {
  width: 32px;
  height: 2px;
  background: #c8a84a;
}
.ll-eyebrow-text {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #c8a84a;
  font-weight: 500;
}
.ll-headline {
  font-family: "DM Serif Display", serif;
  font-size: 3.4rem;
  color: white;
  line-height: 1.08;
  margin-bottom: 1.5rem;
}
.ll-desc {
  font-size: 14px;
  color: rgba(168, 196, 216, 0.6);
  line-height: 1.85;
  max-width: 320px;
  font-weight: 300;
}

.ll-stats {
  display: flex;
  position: relative;
  z-index: 1;
}
.ll-stat {
  flex: 1;
  padding-right: 1.5rem;
  border-right: 1px solid rgba(168, 196, 216, 0.15);
  margin-right: 1.5rem;
}
.ll-stat:last-child {
  border-right: none;
  margin-right: 0;
}
.ll-stat-val {
  font-family: "DM Serif Display", serif;
  font-size: 2rem;
  color: white;
  line-height: 1;
  margin-bottom: 0.3rem;
}
.ll-stat-label {
  font-size: 11px;
  color: rgba(168, 196, 216, 0.4);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── RIGHT PANEL ── */
.login-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  background: var(--bg);
}
.login-form-wrap {
  width: 100%;
  max-width: 385px;
}

.lf-eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  margin-bottom: 1.5rem;
  background: var(--white);
}
.lf-title {
  font-family: "DM Serif Display", serif;
  font-size: 2.4rem;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 0.5rem;
}
.lf-sub {
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 2rem;
  font-weight: 300;
}

.lf-tabs {
  display: flex;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.75rem;
  background: var(--white);
}
.lf-tab {
  flex: 1;
  padding: 0.65rem 1rem;
  border: none;
  background: transparent;
  font-family: "DM Sans", sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: all 0.2s;
}
.lf-tab.active {
  background: var(--navy);
  color: white;
}
.lf-tab:not(.active):hover {
  background: var(--pale);
  color: var(--navy);
}

.lf-field {
  margin-bottom: 1.1rem;
}
.lf-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.45rem;
}
.lf-input-wrap {
  position: relative;
}
.lf-input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--light);
  pointer-events: none;
  display: flex;
  align-items: center;
}
.lf-input {
  width: 100%;
  padding: 0.72rem 0.9rem 0.72rem 2.5rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  color: var(--navy);
  background: var(--white);
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.lf-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(63, 92, 124, 0.1);
}
.lf-input::placeholder {
  color: var(--light);
}
.lf-pw-toggle {
  position: absolute;
  right: 11px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--light);
  cursor: pointer;
  padding: 3px;
  display: flex;
  align-items: center;
  transition: color 0.15s;
}
.lf-pw-toggle:hover {
  color: var(--navy);
}

.lf-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.4rem;
}
.lf-remember {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
}
.lf-remember input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--navy);
  cursor: pointer;
}
.lf-forgot {
  background: none;
  border: none;
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  transition: color 0.15s;
}
.lf-forgot:hover {
  color: var(--navy);
}

.lf-error {
  display: none;
  font-size: 13px;
  color: var(--red);
  margin-bottom: 0.85rem;
  padding: 0.6rem 0.9rem;
  background: var(--red-bg);
  border-radius: var(--radius);
  border: 1px solid rgba(160, 32, 32, 0.15);
}

.lf-submit {
  width: 100%;
  padding: 0.85rem;
  background: var(--navy);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.1s,
    box-shadow 0.2s;
  margin-bottom: 1.1rem;
}
.lf-submit:hover {
  background: #1e2f45;
  box-shadow: 0 6px 20px rgba(44, 66, 96, 0.3);
}
.lf-submit:active {
  transform: scale(0.99);
}
.lf-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.lf-divider {
  text-align: center;
  font-size: 12px;
  color: var(--light);
  margin: 0.2rem 0 1rem;
  position: relative;
}
.lf-divider::before,
.lf-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: calc(50% - 65px);
  height: 1px;
  background: var(--border);
}
.lf-divider::before {
  left: 0;
}
.lf-divider::after {
  right: 0;
}

.lf-google {
  width: 100%;
  padding: 0.75rem;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: "DM Sans", sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  margin-bottom: 1.5rem;
}
.lf-google:hover {
  border-color: var(--mid);
  box-shadow: 0 2px 8px rgba(44, 66, 96, 0.08);
}

.lf-footer {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}
.lf-footer strong {
  color: var(--navy);
  cursor: pointer;
  font-weight: 600;
}
.lf-footer strong:hover {
  text-decoration: underline;
}

/*  Portal Layout */
.portal {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-w);
  background: #1e2f45;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  overflow-y: auto;
}
.sidebar-logo {
  padding: 1.5rem 1.25rem 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.sidebar-logo-box {
  width: 36px;
  height: 36px;
  background: var(--blue);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 13px;
  color: white;
  flex-shrink: 0;
}
.sidebar-logo-text {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.4;
}
.sidebar-logo-name {
  font-size: 13px;
  font-weight: 600;
  color: white;
}

.sidebar-user {
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.sidebar-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}
.sidebar-user-name {
  font-size: 13px;
  font-weight: 500;
  color: white;
}
.sidebar-user-role {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
}

.sidebar-nav {
  flex: 1;
  padding: 0.75rem 0;
}
.sidebar-section-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
  padding: 0.6rem 1.25rem 0.3rem;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.6rem 1.25rem;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.55);
  border-radius: 0;
  transition: all 0.15s;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}
.sidebar-link svg {
  opacity: 0.7;
  flex-shrink: 0;
}
.sidebar-link:hover {
  color: white;
  background: rgba(255, 255, 255, 0.06);
}
.sidebar-link.active {
  color: white;
  background: rgba(26, 86, 219, 0.35);
}
.sidebar-link.active svg {
  opacity: 1;
}

.sidebar-bottom {
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.sidebar-logout {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  background: none;
  border: none;
  width: 100%;
  padding: 0.5rem 0;
  transition: color 0.15s;
}
.sidebar-logout:hover {
  color: var(--red);
}

.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-height: 100vh;
}
.top-bar {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}
.page-title {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
}
.page-content {
  padding: 2rem;
  min-height: calc(100vh - 65px);
}

/* Cards  */
.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.card-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 1rem;
}

/*  Stats grid  */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.stat-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
}
.stat-label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 0.4rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.stat-val {
  font-family: var(--font-head);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--navy);
}
.stat-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 0.25rem;
}

/*  Table  */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: white;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
thead th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.1s;
}
tbody tr:last-child {
  border-bottom: none;
}
tbody tr:hover {
  background: var(--bg);
}
tbody td {
  padding: 0.85rem 1rem;
  color: var(--slate);
  vertical-align: middle;
}

/*  Badges  */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.badge-green {
  background: #d1fae5;
  color: #065f46;
}
.badge-amber {
  background: #fef3c7;
  color: #92400e;
}
.badge-red {
  background: #fee2e2;
  color: #991b1b;
}
.badge-blue {
  background: #dbeafe;
  color: #1e40af;
}
.badge-slate {
  background: #f1f5f9;
  color: var(--slate);
}

/*  Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  border: none;
  transition: all 0.15s;
  cursor: pointer;
}
.btn-primary {
  background: var(--blue);
  color: white;
}
.btn-primary:hover {
  background: var(--blue-dark);
  box-shadow: 0 4px 10px rgba(26, 86, 219, 0.25);
}
.btn-secondary {
  background: white;
  color: var(--slate);
  border: 1.5px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.btn-danger {
  background: #fee2e2;
  color: var(--red);
}
.btn-danger:hover {
  background: var(--red);
  color: white;
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Modal  */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-overlay.open {
  display: flex;
}
.modal {
  background: white;
  border-radius: var(--radius);
  padding: 1.75rem;
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-lg);
  max-height: 90vh;
  overflow-y: auto;
}
.modal-title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-close {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--muted);
  line-height: 1;
}
.modal-close:hover {
  color: var(--navy);
}

/*  Form fields */
.field {
  margin-bottom: 1rem;
}
.field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--slate);
  margin-bottom: 0.35rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--navy);
  background: var(--bg);
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.08);
  background: white;
}
.field textarea {
  resize: vertical;
  min-height: 80px;
}

/* Upload zone  */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--bg);
}
.upload-zone:hover,
.upload-zone.drag-over {
  border-color: var(--blue);
  background: var(--blue-light);
}
.upload-zone-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.upload-zone-text {
  font-size: 14px;
  color: var(--muted);
}
.upload-zone-text span {
  color: var(--blue);
  font-weight: 500;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
}
.empty-state-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.empty-state-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--slate);
  margin-bottom: 0.4rem;
}

/* Responsive  */
@media (max-width: 768px) {
  .login-left {
    display: none;
  }
  .login-right {
    width: 100%;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.25s;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .main-content {
    margin-left: 0;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
