/* QuickSend Dashboard Styles */
/* Theme tokens */
:root[data-theme="light"] {
  --bg: #f1f3f7;
  --card-bg: #fafbfc;
  --card-elev: #f8f9fb;
  --text: #1e293b;
  --muted: #64748b;
  --border: #d1d5db;
  --sidebar-bg: #fafbfc;
  --sidebar-text: #1e293b;
  --nav-active: rgba(106,73,242,0.1);
  --input-bg: #ffffff;
  --input-text: #1e293b;
  --input-border: #cbd5e1;
  --input-focus: #a78bfa;
  --primary: #7c3aed;
  --primary-600: #6d28d9;
  --primary-700: #5b21b6;
  --primary-hover: #6d28d9;
  --success: #16a34a;
  --error: #dc2626;
  --warning: #f59e0b;
  --shadow-sm: 0 2px 8px rgba(15,23,42,0.04);
  --shadow-md: 0 4px 16px rgba(15,23,42,0.06);
  --shadow-lg: 0 8px 24px rgba(15,23,42,0.08);
}

:root[data-theme="dark"] {
  --bg: #1a202e;
  --card-bg: #283142;
  --card-elev: #232a3b;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --border: rgba(255,255,255,0.08);
  --sidebar-bg: #1e2433;
  --sidebar-text: #cbd5e1;
  --nav-active: rgba(139,92,246,0.15);
  --input-bg: #1e2738;
  --input-text: #e5e7eb;
  --input-border: rgba(255,255,255,0.1);
  --input-focus: #a78bfa;
  --primary: #8b5cf6;
  --primary-600: #7c3aed;
  --primary-700: #6d28d9;
  --primary-hover: #9f7aea;
  --success: #22c55e;
  --error: #ef4444;
  --warning: #f59e0b;
  --shadow-sm: 0 2px 10px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.25);
  --shadow-lg: 0 8px 28px rgba(0,0,0,0.3);
}

/* default mode */
:root { color-scheme: light; }
@media (prefers-color-scheme: dark) {
  :root { color-scheme: dark; }
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Inter', ui-sans-serif, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  transition: background .25s ease, color .25s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.header { background: var(--card-elev); color: var(--text); border-bottom: 1px solid var(--border); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.navbar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
}
.brand h1 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; background: linear-gradient(135deg, var(--primary), #a78bfa); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.balance-badge {
  background: var(--primary);
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: #fff;
  box-shadow: 0 2px 8px rgba(139,92,246,0.3);
}
.logout-link { color: var(--text); text-decoration: none; opacity: 0.9; }
.logout-link:hover { opacity: 1; text-decoration: underline; }
.theme-toggle { background: var(--nav-active); color: var(--text); border: 1px solid var(--border); padding: 8px 12px; border-radius: 10px; cursor: pointer; font-weight: 600; font-size: 13px; transition: all .2s ease; }
.theme-toggle:hover { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 4px 12px rgba(139,92,246,0.3); }

.layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.sidebar { background: var(--sidebar-bg); color: var(--sidebar-text); padding: 20px 14px; border-right: 1px solid var(--border); transition: background .25s ease, color .25s ease; box-shadow: var(--shadow-sm); }
.sidebar .logo { display:flex; align-items:center; gap:10px; padding: 10px 12px; margin-bottom: 16px; font-weight: 800; font-size: 18px; color: var(--text); background: linear-gradient(135deg, var(--primary), #a78bfa); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.nav { margin-top: 8px; }
.nav a { position: relative; display:flex; align-items:center; gap:12px; padding: 11px 14px; color: var(--sidebar-text); text-decoration:none; border-radius:10px; font-weight: 500; font-size: 14px; transition: all .2s cubic-bezier(0.4, 0, 0.2, 1); margin-bottom: 4px; }
.nav a:hover { background: var(--nav-active); color: var(--text); transform: translateX(2px); }
.nav a.active { background: var(--nav-active); color: var(--text); font-weight: 600; box-shadow: var(--shadow-sm); }
.nav a.active::before { content: ''; position: absolute; left: 0; top: 20%; bottom: 20%; width: 3px; border-radius: 0 2px 2px 0; background: linear-gradient(180deg, var(--primary), #a78bfa); box-shadow: 0 0 12px var(--primary); }
.content { display: block; flex: 1; width: 100%; }
.container { max-width: 1200px; margin: 24px auto; padding: 0 20px; }
.grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 900px) { .grid { grid-template-columns: 2fr 1fr; } }

.card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-md); transition: all .25s ease; }
.card-header { padding: 16px 20px; border-bottom: 1px solid var(--border); font-weight: 700; font-size: 15px; letter-spacing: -0.01em; }
.card-body { padding: 20px; }
.card:hover { box-shadow: var(--shadow-lg); }

.alert { padding: 12px 14px; border-radius: 10px; border: 1px solid; margin-bottom: 16px; }
.alert.success { background: #052e13; border-color: #134e27; color: #a7f3d0; }
.alert.error { background: #3b0a0a; border-color: #7f1d1d; color: #fecaca; }

.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 10px; border-bottom: 1px solid var(--border); text-align: left; }
th { color: var(--muted); font-weight: 600; background: var(--card-elev); position: sticky; top: 0; }
tr:hover td { background: var(--card-elev); }

.input, textarea.input, select.input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--input-border);
  border-radius: 10px;
  background: var(--input-bg);
  color: var(--input-text);
  outline: none;
  font-family: inherit;
  font-size: 14px;
  transition: all .2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
}
.input:hover, textarea.input:hover, select.input:hover { border-color: var(--input-focus); }
.input:focus, textarea.input:focus, select.input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(139,92,246,0.15), var(--shadow-sm); transform: translateY(-1px); }
select.input { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%239ca3af' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }

.inline { display: flex; align-items: center; gap: 10px; }

.btn { appearance: none; border: none; cursor: pointer; font-weight: 600; font-size: 14px; border-radius: 10px; padding: 11px 18px; transition: all .2s cubic-bezier(0.4, 0, 0.2, 1); }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-600)); color: #fff; box-shadow: 0 4px 14px rgba(124,92,255,0.3), inset 0 1px 0 rgba(255,255,255,0.1); }
.btn-primary:hover { background: linear-gradient(135deg, var(--primary-hover), var(--primary)); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(124,92,255,0.4), inset 0 1px 0 rgba(255,255,255,0.1); }
.btn-primary:active { transform: translateY(0); box-shadow: 0 2px 8px rgba(124,92,255,0.3); }
.btn-secondary { background: var(--card-bg); color: var(--text); border: 1.5px solid var(--border); transition: all .2s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { background: var(--nav-active); border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-secondary:active { transform: translateY(0); }

.section-title { margin: 8px 0 12px 0; font-size: 18px; }

.centered { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.auth-card { width: 100%; max-width: 420px; }
.auth-title { margin: 4px 0 16px 0; text-align: center; }
.auth-note { color: var(--muted); font-size: 13px; text-align: center; margin-top: -8px; margin-bottom: 16px; }

.form-row { display: grid; gap: 12px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

label { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 7px; display: block; letter-spacing: 0.01em; }

.footer-space { height: 20px; }

/* Metrics cards */
.metrics { display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap:16px; }
@media (max-width: 900px) { .metrics { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.metric-card { background: var(--card-bg); border:1px solid var(--border); border-radius:14px; padding:18px; display:flex; justify-content:space-between; align-items:center; box-shadow: var(--shadow-md); transition: all .25s ease; }
.metric-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.metric-title { color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.metric-value { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.metric-sub { color: var(--muted); font-size: 12px; margin-top: 6px; font-weight: 500; }

/* Charts */
.charts { display:grid; grid-template-columns: 1fr 1fr; gap:16px; }
@media (max-width: 900px) { .charts { grid-template-columns: 1fr; } }
canvas.chart { width:100%; height:300px; background: var(--card-elev); border:1px solid var(--border); border-radius:14px; box-shadow: var(--shadow-sm); cursor: crosshair; }

/* Chart Tooltip */
.chart-tooltip {
  position: absolute;
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s ease;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  min-width: 180px;
}
.chart-tooltip.visible { opacity: 1; }
.chart-tooltip-date {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.chart-tooltip-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 13px;
}
.chart-tooltip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}
.chart-tooltip-label {
  color: var(--muted);
  flex: 1;
}
.chart-tooltip-value {
  font-weight: 700;
  color: var(--text);
}

/* Categorized Navigation */
.nav-section {
  margin-bottom: 20px;
}
.nav-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  padding: 8px 14px 6px 14px;
  margin-bottom: 4px;
  opacity: 0.8;
}
.nav-icon {
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}
.nav-label {
  flex: 1;
}
/* Email System UI Components */
.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; gap: 20px; }
.page-header > div:first-child { flex: 1; }
.page-header > div:last-child { flex-shrink: 0; }
.page-title { margin: 0; font-size: 24px; font-weight: 800; color: var(--text); }
.page-subtitle { margin: 4px 0 0 0; font-size: 14px; color: var(--muted); }
.page-actions { display: flex; gap: 12px; }

.badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; }
.badge-primary { background: rgba(124, 58, 237, 0.1); color: var(--primary); }
.badge-success { background: rgba(22, 163, 74, 0.1); color: var(--success); }
.badge-danger { background: rgba(220, 38, 38, 0.1); color: var(--error); }
.badge-info { background: rgba(14, 165, 233, 0.1); color: #0ea5e9; }
.badge-outline { border: 1px solid var(--border); color: var(--muted); }

.status-indicator { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; }
.status-indicator::before { content: ''; width: 8px; height: 8px; border-radius: 50%; }
.status-active::before, .status-completed::before, .status-sent::before { background: var(--success); box-shadow: 0 0 8px var(--success); }
.status-draft::before, .status-scheduled::before { background: var(--warning); box-shadow: 0 0 8px var(--warning); }
.status-error::before, .status-failed::before, .status-bounced::before { background: var(--error); box-shadow: 0 0 8px var(--error); }
.status-sending::before { background: var(--primary); box-shadow: 0 0 8px var(--primary); animation: pulse 1.5s infinite; }

@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
    100% { opacity: 1; transform: scale(1); }
}

.connection-type-badge { font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 4px; background: var(--card-elev); border: 1px solid var(--border); }
.type-smtp { color: #f59e0b; border-color: rgba(245, 158, 11, 0.3); }
.type-sendgrid { color: #0ea5e9; border-color: rgba(14, 165, 233, 0.3); }
.type-mailgun { color: #ef4444; border-color: rgba(239, 68, 68, 0.3); }
.type-ses { color: #f97316; border-color: rgba(249, 115, 22, 0.3); }

.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-danger { background: rgba(239, 68, 68, 0.1); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.2); }
.btn-danger:hover { background: #ef4444; color: #fff; transform: translateY(-1px); }
.btn-outline { background: transparent; border: 1.5px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); background: var(--nav-active); color: var(--primary); }

.form-input { 
    width: 100%; padding: 11px 14px; border: 1.5px solid var(--input-border); border-radius: 10px; 
    background: var(--input-bg); color: var(--input-text); outline: none; transition: all .2s;
}
.form-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(139,92,246,0.15); }
.form-label { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 7px; display: block; }

.modal { display: flex; align-items: center; justify-content: center; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal-content { animation: slideUp 0.3s ease-out; }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.text-error { color: var(--error); }
.text-success { color: var(--success); }
.text-info { color: #0ea5e9; }

/* Email Connection Specific Styles */
.connection-card {
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.connection-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.border-success {
    border-left: 4px solid var(--success) !important;
}

.border-error {
    border-left: 4px solid var(--error) !important;
}

.connection-name {
    color: var(--foreground);
    line-height: 1.3;
}

.connection-from {
    color: var(--muted);
    word-break: break-all;
}

.connection-details {
    border-top: 1px solid var(--border);
    padding-top: 12px;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Email connections layout with right-side console */
.email-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    align-items: flex-start;
}

@media (max-width: 1100px) {
    .email-layout {
        grid-template-columns: 1fr;
    }
    .email-console {
        order: -1; /* Console moves to top on smaller screens */
        margin-bottom: 24px;
    }
}

.email-main {
    min-width: 0;
}

.email-console {
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 16px;
    position: sticky;
    top: 24px;
}

.email-console-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.email-console-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.email-console-body {
    margin: 0;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: radial-gradient(circle at top left, rgba(16, 185, 129, 0.08), transparent 55%), var(--card-bg);
    color: var(--text);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 12px;
    line-height: 1.5;
    max-height: 260px;
    overflow: auto;
    white-space: pre-wrap;
}

.status-active {
    color: var(--success);
}

.status-active::before {
    background-color: var(--success);
}

.status-inactive {
    color: var(--muted);
}

.status-inactive::before {
    background-color: var(--muted);
}

.status-error {
    color: var(--error);
}

.status-error::before {
    background-color: var(--error);
}

.status-pending {
    color: #f59e0b;
}

.status-pending::before {
    background-color: #f59e0b;
}

/* Gmail OAuth type badge */
.type-gmail_oauth {
    color: #ea4335;
    border-color: rgba(234, 67, 53, 0.3);
}

/* Email template preview */
.template-preview {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    background: var(--background);
}

.template-preview iframe {
    width: 100%;
    min-height: 400px;
    border: none;
}

/* Campaign progress bar */
.campaign-progress {
    width: 100%;
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.campaign-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #a855f7);
    transition: width 0.3s ease;
    border-radius: 4px;
}

/* Email list stats */
.list-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.list-stat {
    text-align: center;
    padding: 12px;
    background: var(--card-elev);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.list-stat-value {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary);
}

.list-stat-label {
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 4px;
}

/* Email System UI Fixes */
.connection-card {
    display: flex;
    flex-direction: column;
    min-height: 280px;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 0;
}
.connection-card .card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.5rem !important;
}
.connection-card .flex.gap-2 {
    margin-top: auto;
    padding-top: 1.25rem;
}
.template-card {
    display: flex;
    flex-direction: column;
    min-height: 280px;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 0;
}
.template-card .card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.5rem !important;
}
.template-preview {
    background: rgba(0,0,0,0.2) !important;
    border: 1px solid var(--border) !important;
    color: var(--muted) !important;
    height: 80px !important;
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 0.75rem;
    overflow: hidden;
    margin-bottom: 1rem;
}
.card-footer {
    background: var(--card-elev) !important;
    border-top: 1px solid var(--border) !important;
    padding: 1rem 1.5rem !important;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}
.connection-type-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    text-transform: uppercase;
    display: inline-block;
}
.connection-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin-top: 0.5rem;
    margin-bottom: 0.25rem;
}
.status-indicator {
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.status-indicator::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-block;
}
.btn-sm {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    border-radius: 8px;
}
.template-preview-container {
    position: relative;
    border-radius: 10px;
    background: #0f172a;
    border: 1px solid rgba(255,255,255,0.05);
    overflow: hidden;
    margin-bottom: 1rem;
}
.template-preview-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, #0f172a);
    pointer-events: none;
}
.template-preview-content {
    padding: 1.25rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 12px;
    line-height: 1.6;
    color: #94a3b8;
    height: 120px;
    overflow: hidden;
}
.connection-card form {
    margin: 0;
}
.connection-card .btn-info {
    background: rgba(14, 165, 233, 0.1);
    color: #0ea5e9;
    border: 1px solid rgba(14, 165, 233, 0.2);
}
.connection-card .btn-info:hover {
    background: #0ea5e9;
    color: #fff;
}
.card.connection-card.border-success {
    border-left: 4px solid var(--success) !important;
}
.card.connection-card.border-error {
    border-left: 4px solid var(--error) !important;
}

.text-muted { color: var(--muted); }
.opacity-50 { opacity: 0.5; }
.opacity-70 { opacity: 0.7; }
.text-xs { font-size: 12px; }
.text-sm { font-size: 14px; }
.w-20 { width: 5rem; }
.w-full { width: 100%; }

/* Flexbox helpers (for Tailwind-style utility classes in Blade views) */
.flex { display: flex; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }

.flex-1 { flex: 1; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.space-y-2 > * + * { margin-top: 8px; }
.col-span-full { grid-column: 1 / -1; }
.max-w-2xl { max-width: 672px; }
.max-w-4xl { max-width: 896px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mt-1 { margin-top: 4px; }
.py-12 { padding-top: 48px; padding-bottom: 48px; }
.text-center { text-align: center; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.border-b { border-bottom: 1px solid var(--border); }
.border-success { border-color: var(--success); }
.border-error { border-color: var(--error); }
.card-elev { background: var(--card-elev); }

/* Form checkbox styles */
.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}

.form-check-label {
    font-size: 14px;
    color: var(--foreground);
    cursor: pointer;
}

/* Card header styling for rate limiting section */
.card-header {
    background: var(--card-elev);
    font-weight: 600;
}

.card-header h3 {
    margin: 0;
    font-size: 16px;
}

.card-header p {
    margin: 4px 0 0 0;
    font-size: 12px;
    opacity: 0.7;
}
