/* Rekam Medik - UI Theme */
:root{
  --font-sans: "Elms Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  --font-serif: "Arvo", ui-serif, Georgia, "Times New Roman", Times, serif;
  --font-display: "Oswald", var(--font-sans);

  --bg: #f6f8fc;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: rgba(15, 23, 42, .10);

  --primary: #2563eb;
  --primary-2: #7c3aed;
  --success: #16a34a;
  --warning: #f59e0b;
  --danger: #ef4444;

  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px rgba(15, 23, 42, .10);
  --shadow-sm: 0 10px 24px rgba(15, 23, 42, .08);
  --ring: 0 0 0 .22rem rgba(37, 99, 235, .18);
}

body { font-family: var(--font-sans); color: var(--text); background: var(--bg); }

h1,h2,h3,.h1,.h2,.h3 { font-family: var(--font-serif); }
.navbar-brand { font-family: var(--font-display); }

.navbar-brand { font-weight: 700; letter-spacing: .6px; text-transform: uppercase; }
.page-wrapper { min-height: calc(100vh - 56px); }

/* Auth / Login */
.auth-bg{
  background:
    radial-gradient(1000px 700px at 10% 0%, rgba(37,99,235,.18), transparent 55%),
    radial-gradient(900px 700px at 90% 10%, rgba(124,58,237,.14), transparent 55%),
    radial-gradient(800px 600px at 50% 100%, rgba(16,185,129,.10), transparent 55%),
    var(--bg);
}
.auth-card{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.auth-card .card-footer{
  border-top: 1px solid var(--border);
}

/* Stat cards used in dashboards */
.stat-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:18px 18px;
  border-radius: var(--radius);
  color:#fff;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.stat-card::after{
  content:"";
  position:absolute;
  inset:-2px;
  background: radial-gradient(500px 200px at 30% 0%, rgba(255,255,255,.28), transparent 55%);
  pointer-events:none;
}
.stat-card .stat-icon{
  width:54px;height:54px;
  display:flex;align-items:center;justify-content:center;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.18);
  font-size:28px;
}
.stat-card .stat-content h3{
  margin:0;
  font-weight:800;
  font-size:28px;
  line-height:1.1;
}
.stat-card .stat-content p{
  margin:2px 0 0;
  opacity:.9;
}

/* Card tweaks */
.card { border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.card-header { border-top-left-radius: var(--radius); border-top-right-radius: var(--radius); border-bottom: 1px solid var(--border) !important; }
.card.shadow-sm { box-shadow: var(--shadow-sm) !important; }

/* Navbar polish */
.navbar{
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.navbar.bg-primary{
  background: linear-gradient(90deg, var(--primary), var(--primary-2)) !important;
}
.navbar .nav-link{
  border-radius: 12px;
  padding: .45rem .75rem;
  transition: background .15s ease, transform .15s ease;
}
.navbar .nav-link:hover{
  background: rgba(255,255,255,.12);
  transform: translateY(-1px);
}

/* Buttons */
.btn{
  border-radius: 12px;
  padding: .55rem .9rem;
}
.btn-primary{
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  border: 0;
  box-shadow: 0 10px 20px rgba(37,99,235,.18);
}
.btn-primary:hover{ filter: brightness(1.02); }
.btn-outline-primary{ border-color: rgba(37,99,235,.35); }

/* Forms */
.form-control, .form-select{
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: .6rem .8rem;
}
.form-control:focus, .form-select:focus{
  border-color: rgba(37,99,235,.55);
  box-shadow: var(--ring);
}
.form-text{ color: var(--muted); }

/* Tables */
.table{
  --bs-table-bg: transparent;
}
.table thead th{
  color: rgba(15,23,42,.75);
  font-weight: 700;
  border-bottom-color: var(--border) !important;
}
.table tbody tr{
  border-color: rgba(15,23,42,.06);
}
.table-hover tbody tr:hover{
  background: rgba(37,99,235,.05);
}

/* Alerts */
.alert{
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

/* Small polish */
.badge{ border-radius: 999px; padding: .45em .65em; }
.text-muted{ color: var(--muted) !important; }

/* Responsive polish */
@media (max-width: 991.98px){
  .page-wrapper .container-fluid{ padding-left: 12px; padding-right: 12px; }
  .navbar .nav-link{ padding: .55rem .75rem; }
}

@media (max-width: 575.98px){
  .auth-card .card-body{ padding: 1.1rem !important; }
  .stat-card{ padding: 14px 14px; border-radius: 14px; }
  .stat-card .stat-icon{ width:46px; height:46px; font-size: 22px; }
  .stat-card .stat-content h3{ font-size: 24px; }
  .table-responsive{ border-radius: 14px; }
  .btn{ width: auto; }
}


