/* Rida Beauty Point - Modern Admin Dashboard Theme */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --ra-bg: #f6f5f8;
  --ra-surface: #ffffff;
  --ra-rose: #c76e7b;
  --ra-rose-light: #f3dfe2;
  --ra-gold: #c9a86c;
  --ra-text: #2b2b2b;
  --ra-muted: #6c6c6c;
  --ra-border: #e9e6ec;
  --ra-shadow: 0 6px 24px rgba(0,0,0,.05);
  --ra-radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--ra-bg);
  color: var(--ra-text);
  -webkit-font-smoothing: antialiased;
}

.ra-admin {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.ra-sidebar {
  background: var(--ra-surface);
  border-right: 1px solid var(--ra-border);
  display: flex;
  flex-direction: column;
  padding: 1.4rem 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.ra-sidebar__brand {
  font-size: 1.25rem;
  font-weight: 700;
  padding: 0 1.6rem 1.4rem;
  color: var(--ra-text);
  border-bottom: 1px solid var(--ra-border);
}

.ra-sidebar__brand small {
  display: block;
  color: var(--ra-rose);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 600;
}

.ra-sidebar__menu { list-style: none; padding: 1.2rem 1rem 0; margin: 0; display: grid; gap: .35rem; }
.ra-sidebar__menu a {
  display: flex; align-items: center; gap: .75rem;
  padding: .85rem 1rem;
  border-radius: 10px;
  color: var(--ra-muted);
  font-size: .92rem;
  font-weight: 500;
  transition: background .15s, color .15s;
}
.ra-sidebar__menu a:hover, .ra-sidebar__menu a.active { background: var(--ra-rose-light); color: var(--ra-rose); }
.ra-sidebar__menu i { width: 22px; text-align: center; }

.ra-main { display: flex; flex-direction: column; }
.ra-topbar {
  background: var(--ra-surface);
  padding: 1rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--ra-border);
  position: sticky; top: 0; z-index: 100;
}
.ra-topbar__toggle { display: none; background: none; border: none; font-size: 1.3rem; color: var(--ra-rose); cursor: pointer; }
.ra-topbar__title { font-size: 1.15rem; font-weight: 600; }
.ra-topbar__user { display: flex; align-items: center; gap: .8rem; font-size: .9rem; color: var(--ra-muted); }
.ra-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--ra-rose-light); display: flex; align-items: center; justify-content: center; color: var(--ra-rose); font-weight: 600; }

.ra-content { padding: 2rem; }

.ra-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.ra-stat {
  background: var(--ra-surface);
  border-radius: var(--ra-radius);
  padding: 1.4rem;
  box-shadow: var(--ra-shadow);
  display: flex; align-items: center; gap: 1rem;
  border: 1px solid var(--ra-border);
}

.ra-stat__icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--ra-rose-light); color: var(--ra-rose);
  font-size: 1.25rem;
}

.ra-stat__label { font-size: .85rem; color: var(--ra-muted); margin: 0; }
.ra-stat__value { font-size: 1.6rem; font-weight: 700; margin: .2rem 0 0; }

.ra-section { background: var(--ra-surface); border-radius: var(--ra-radius); box-shadow: var(--ra-shadow); border: 1px solid var(--ra-border); padding: 1.5rem; margin-top: 1.5rem; }
.ra-section h2 { font-size: 1.05rem; font-weight: 600; margin: 0 0 1.2rem; }

.ra-table { width: 100%; border-collapse: collapse; }
.ra-table th, .ra-table td { padding: .95rem; text-align: left; border-bottom: 1px solid var(--ra-border); font-size: .9rem; }
.ra-table th { color: var(--ra-muted); font-weight: 600; text-transform: uppercase; font-size: .72rem; letter-spacing: .04em; }
.ra-table tr:last-child td { border-bottom: none; }

.ra-badge { display: inline-block; padding: .25rem .65rem; border-radius: 50px; font-size: .72rem; font-weight: 600; }
.ra-badge--success { background: #e6f7ef; color: #1a7f3e; }
.ra-badge--warning { background: #fff5e5; color: #9e6b00; }
.ra-badge--danger { background: #ffecec; color: #b91c1c; }

.ra-form label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: .35rem; }
.ra-form input, .ra-form select, .ra-form textarea {
  width: 100%; padding: .75rem .9rem; border: 1px solid var(--ra-border); border-radius: 10px; background: #fff; font-size: .9rem; font-family: inherit;
}
.ra-form input:focus, .ra-form select:focus, .ra-form textarea:focus { outline: none; border-color: var(--ra-rose); box-shadow: 0 0 0 3px var(--ra-rose-light); }
.ra-form .field { margin-bottom: 1rem; }

.ra-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1.4rem; border: none; border-radius: 10px;
  background: var(--ra-rose); color: #fff; font-weight: 600; font-size: .9rem; cursor: pointer;
  transition: background .15s, transform .1s;
}
.ra-btn:hover { background: #b35a68; color: #fff; }
.ra-btn--outline { background: transparent; color: var(--ra-rose); border: 1px solid var(--ra-rose); }
.ra-btn--outline:hover { background: var(--ra-rose-light); color: var(--ra-rose); }

.ra-alert { padding: .75rem 1rem; border-radius: 8px; border: 1px solid #ffcece; background: #fff0f0; color: #b32424; margin-bottom: 1rem; font-size: .9rem; }

.ra-login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem; background: linear-gradient(135deg, #f8f3f4 0%, #ffffff 100%); }
.ra-login-card { width: 100%; max-width: 420px; background: #fff; border-radius: var(--ra-radius); box-shadow: 0 20px 60px rgba(0,0,0,.06); padding: 2.5rem; text-align: center; }
.ra-login-card h1 { margin: 0 0 .4rem; font-size: 1.6rem; }
.ra-login-card small { color: var(--ra-muted); font-size: .85rem; }

@media (max-width: 992px) {
  .ra-admin { grid-template-columns: 1fr; }
  .ra-sidebar { position: fixed; left: -100%; top: 0; width: 260px; height: 100vh; z-index: 200; transition: left .3s; }
  .ra-sidebar.is-open { left: 0; box-shadow: 4px 0 24px rgba(0,0,0,.1); }
  .ra-topbar__toggle { display: block; }
  .ra-content { padding: 1.2rem; }
  .ra-grid { grid-template-columns: 1fr; }
}
