/* ============================================================
   DosaForma — Stylesheet Principal (versao simplificada)
   Fonte: Inter
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ============================================================
   VARIAVEIS
   ============================================================ */
:root {
  --brand-primary: #2D6BE4;
  --brand-dark: #1A3F8F;
  --brand-light: #EEF3FD;
  --brand-gradient: linear-gradient(135deg, #2D6BE4 0%, #1A3F8F 100%);
  --transition: 0.2s ease;

  --success: #16A34A;
  --success-light: #DCFCE7;
  --warning: #D97706;
  --warning-light: #FEF3C7;
  --danger: #DC2626;
  --danger-light: #FEE2E2;

  --text-primary: #111827;
  --text-secondary: #4B5563;
  --text-muted: #9CA3AF;

  --bg-page: #F4F6FB;
  --bg-card: #FFFFFF;
  --border: #E5E7EB;

  --sidebar-width: 260px;
  --sidebar-bg: #0F1F3D;
  --sidebar-text: #C9D4E8;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.07);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.09);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
}

/* ============================================================
   RESET
   ============================================================ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
}

body {
  font-family: 'Inter', Arial, sans-serif;
  background: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--brand-primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--brand-dark);
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

input, textarea, select, button {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 0.9375rem;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.app-wrapper {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
}

/* ============================================================
   SIDEBAR (desktop por padrao visivel, mobile escondida)
   ============================================================ */
.sidebar {
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  height: 100dvh;
  z-index: 200;
  overflow-y: auto;
  transition: transform 0.25s ease;
}

.sidebar-logo {
  padding: 28px 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.logo-mark {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--brand-gradient);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-icon svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

.logo-text {
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
}

.logo-text span {
  color: var(--brand-primary);
}

.sidebar-nav {
  flex: 1;
  padding: 16px 0;
}

.nav-section-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  padding: 16px 24px 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 24px;
  color: var(--sidebar-text);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}

.nav-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.nav-item:hover {
  background: rgba(255,255,255,0.06);
  color: #fff;
}

.nav-item.active {
  color: #fff;
  background: rgba(45,107,228,0.18);
  border-left: 3px solid var(--brand-primary);
  padding-left: 21px;
}

.sidebar-footer {
  padding: 16px 24px 24px;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.plan-badge {
  background: rgba(45,107,228,0.15);
  border: 1px solid rgba(45,107,228,0.3);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

.plan-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(255,255,255,0.4);
  font-weight: 600;
}

.plan-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  margin-top: 2px;
}

.plan-expiry {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  margin-top: 2px;
}

/* ============================================================
   OVERLAY MOBILE
   Por padrao SEMPRE escondido. So aparece com a classe .open
   ============================================================ */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 150;
  pointer-events: none;
}

.sidebar-overlay.open {
  display: block;
  pointer-events: auto;
}

/* ============================================================
   CONTEUDO PRINCIPAL
   ============================================================ */
.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
}

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
}

.topbar-subtitle {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.burger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--text-secondary);
}

.burger-btn svg {
  width: 22px;
  height: 22px;
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
}

.user-menu:hover {
  background: var(--bg-page);
}

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.user-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
}

.user-plan {
  font-size: 0.725rem;
  color: var(--text-muted);
  line-height: 1.2;
}

/* ============================================================
   PAGE BODY
   ============================================================ */
.page-body {
  padding: 32px;
  flex: 1;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.card-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.card-subtitle {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.card-body {
  padding: 24px;
}

/* ============================================================
   STAT CARDS
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.stat-add {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--brand-light);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.stat-add svg {
  width: 22px;
  height: 22px;
}
.stat-add:hover {
  background: var(--brand-primary);
  color: #fff;
}
.stat-add:active {
  transform: scale(0.92);
}

.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.stat-icon svg {
  width: 20px;
  height: 20px;
}

.stat-icon.blue {
  background: #EEF3FD;
  color: var(--brand-primary);
}

.stat-icon.green {
  background: var(--success-light);
  color: var(--success);
}

.stat-icon.orange {
  background: var(--warning-light);
  color: var(--warning);
}

.stat-icon.red {
  background: var(--danger-light);
  color: var(--danger);
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-value {
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.stat-value span {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 4px;
}

.stat-delta {
  font-size: 0.8125rem;
  font-weight: 600;
  margin-top: 2px;
}

.stat-delta.positive {
  color: var(--success);
}

.stat-delta.negative {
  color: var(--danger);
}

/* ============================================================
   GRID DE CONTEUDO
   ============================================================ */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

.content-grid.full {
  grid-template-columns: 1fr;
}

/* ============================================================
   FORMULARIOS
   ============================================================ */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  height: 44px;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text-primary);
  font-size: 0.9375rem;
  font-family: 'Inter', Arial, sans-serif;
  line-height: 1.2;
  outline: none;
  transition: var(--transition);
  -webkit-appearance: none;
  appearance: none;
}

.form-control:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(45,107,228,0.12);
}

/* Textarea precisa de altura própria (baseada no atributo rows), não na
   altura fixa de 44px usada para igualar inputs de texto/data/hora —
   senão o conteúdo digitado fica cortado, mostrando só uma linha. */
textarea.form-control {
  height: auto;
  min-height: 80px;
  padding-top: 10px;
  padding-bottom: 10px;
  resize: vertical;
  line-height: 1.5;
}

select.form-control {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 40px;
}

/* Normaliza altura dos campos nativos de data/hora, que no iOS/Safari
   ignoram parte do padding e ficam maiores que os demais campos */
input[type="date"].form-control,
input[type="time"].form-control,
input[type="datetime-local"].form-control,
input[type="month"].form-control {
  -webkit-appearance: none;
  appearance: none;
  min-height: 44px;
  height: 44px;
  line-height: 22px;
}

/* iOS Safari especificamente: o elemento interno do date/time picker
   as vezes soma altura extra ao wrapper. Forca o box a respeitar a altura. */
input[type="date"].form-control::-webkit-date-and-time-value,
input[type="time"].form-control::-webkit-date-and-time-value {
  text-align: left;
  margin: 0;
}

.form-hint {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 5px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ============================================================
   BOTOES
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  line-height: 1;
  white-space: nowrap;
  transition: var(--transition);
}

.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--brand-gradient);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-dark);
}

.btn-secondary {
  background: var(--bg-page);
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
}

.btn-secondary:hover {
  background: var(--border);
  color: var(--text-primary);
}

.btn-success {
  background: var(--success);
  color: #fff;
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-sm {
  padding: 7px 14px;
  font-size: 0.8125rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ============================================================
   TABELAS
   ============================================================ */
.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

thead th {
  padding: 12px 16px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--bg-page);
  border-bottom: 1px solid var(--border);
}

tbody td {
  padding: 14px 16px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody tr:hover td {
  background: var(--bg-page);
}

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-blue {
  background: var(--brand-light);
  color: var(--brand-primary);
}

.badge-green {
  background: var(--success-light);
  color: var(--success);
}

.badge-orange {
  background: var(--warning-light);
  color: var(--warning);
}

.badge-red {
  background: var(--danger-light);
  color: var(--danger);
}

.badge-gray {
  background: #F3F4F6;
  color: var(--text-muted);
}

/* ============================================================
   REMINDER BANNERS (lembretes e avisos do dashboard)
   Mais discretos que .alert: ícone + título curto + subtítulo,
   evita frases corridas que quebram de forma estranha em mobile
   ============================================================ */
.reminder-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  border: 1px solid transparent;
  transition: var(--transition);
}

.reminder-banner:hover {
  filter: brightness(0.98);
}

.reminder-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.reminder-icon svg {
  width: 19px;
  height: 19px;
}

.reminder-title {
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.35;
}

.reminder-subtitle {
  font-size: 0.8rem;
  margin-top: 1px;
  opacity: 0.78;
  line-height: 1.35;
}

.reminder-banner.tone-warning {
  background: #FFF9EE;
  border-color: #F7E4B8;
}
.reminder-banner.tone-warning .reminder-icon {
  background: #FBEACB;
  color: #B45309;
}
.reminder-banner.tone-warning .reminder-title,
.reminder-banner.tone-warning .reminder-subtitle {
  color: #92400E;
}

.reminder-banner.tone-danger {
  background: #FFF5F4;
  border-color: #F5D6D3;
}
.reminder-banner.tone-danger .reminder-icon {
  background: #FBDEDB;
  color: #B42318;
}
.reminder-banner.tone-danger .reminder-title,
.reminder-banner.tone-danger .reminder-subtitle {
  color: #9B1C1C;
}

/* ============================================================
   ALERTAS
   ============================================================ */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.alert svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

.alert-danger {
  background: var(--danger-light);
  color: #991B1B;
  border: 1px solid #FECACA;
}

.alert-success {
  background: var(--success-light);
  color: #14532D;
  border: 1px solid #BBF7D0;
}

.alert-warning {
  background: var(--warning-light);
  color: #92400E;
  border: 1px solid #FDE68A;
}

.alert-info {
  background: var(--brand-light);
  color: #1E3A8A;
  border: 1px solid #BFDBFE;
}

/* ============================================================
   PROGRESSO
   ============================================================ */
.progress-bar-wrap {
  background: var(--bg-page);
  border-radius: 99px;
  height: 8px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  border-radius: 99px;
  background: var(--brand-gradient);
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 48px 24px;
}

.empty-state svg {
  width: 56px;
  height: 56px;
  color: var(--text-muted);
  margin: 0 auto 16px;
  opacity: 0.4;
}

.empty-state h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.empty-state p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* ============================================================
   MODAL
   Por padrao SEMPRE escondido. So aparece com a classe .open
   ============================================================ */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 300;
  align-items: center;
  justify-content: center;
  padding: 16px;
  pointer-events: none;
}

.modal-overlay.open {
  display: flex;
  pointer-events: auto;
}

.modal {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px;
  border-radius: var(--radius-sm);
}

.modal-close:hover {
  color: var(--text-primary);
  background: var(--bg-page);
}

.modal-close svg {
  width: 20px;
  height: 20px;
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.login-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: stretch;
}

.login-left {
  flex: 1;
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px;
}

.login-brand {
  text-align: center;
}

.brand-icon {
  width: 64px;
  height: 64px;
  background: var(--brand-gradient);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.brand-icon svg {
  width: 34px;
  height: 34px;
  fill: #fff;
}

.login-brand h1 {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.login-brand h1 span {
  color: var(--brand-primary);
}

.login-brand p {
  font-size: 1rem;
  color: var(--sidebar-text);
  max-width: 320px;
  line-height: 1.6;
  margin: 0 auto;
}

.login-features {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--sidebar-text);
  font-size: 0.9rem;
}

.login-feature-icon {
  width: 32px;
  height: 32px;
  background: rgba(45,107,228,0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.login-feature-icon svg {
  width: 16px;
  height: 16px;
  color: var(--brand-primary);
}

.login-right {
  width: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  background: var(--bg-page);
}

.login-box {
  width: 100%;
  max-width: 380px;
}

.login-box h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.login-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.login-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.login-divider {
  text-align: center;
  margin: 20px 0;
  position: relative;
}

.login-divider span {
  position: relative;
  background: var(--bg-card);
  padding: 0 12px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.login-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ============================================================
   GRAFICO
   ============================================================ */
.chart-container {
  position: relative;
  width: 100%;
  height: 260px;
}

/* ============================================================
   TABS
   ============================================================ */
.tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-page);
  border-radius: var(--radius-sm);
  padding: 4px;
  border: 1px solid var(--border);
}

.tab-btn {
  flex: 1;
  padding: 8px 16px;
  background: none;
  border: none;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
}

.tab-btn.active {
  background: var(--bg-card);
  color: var(--text-primary);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 1024px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
  }

  .topbar {
    padding: 0 16px;
  }

  .burger-btn {
    display: flex;
  }

  .page-body {
    padding: 16px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .login-page {
    flex-direction: column;
  }

  .login-left {
    padding: 32px 24px;
    min-height: 220px;
  }

  .login-features {
    display: none;
  }

  .login-right {
    width: 100%;
    padding: 24px 16px;
  }

  .login-brand h1 {
    font-size: 1.5rem;
  }

  .user-name, .user-plan {
    display: none;
  }

  .modal {
    max-width: 100%;
    margin: 0;
    border-radius: var(--radius-md);
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .topbar-title {
    font-size: 1rem;
  }
}