:root {
  --primary: #0D74C0;
  --primary-deep: #074A8A;
  --warm: #F59E0E;
  --icy: #F0F7FF;
  --accent-light: #7DD3F0;
  --accent: #38BDF8;
  --text: #092A48;
  --headings: #001C33;
  --gray-text: #949494;
  --icy-warm: #FEF3C7;
  --grayed-out: #64748B;
  --background: #ffffff;
  --border: #E5E7EB;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --base-size: 16px;
  --ratio: 1.25;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  font-size: var(--base-size);
  color: var(--text);
  background-color: var(--background);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-container {
  width: 100%;
  max-width: 400px;
  padding: 0 20px;
}

.login-card {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.login-title {
  font-size: calc(var(--base-size) * var(--ratio));
  font-weight: 600;
  color: var(--headings);
  text-align: center;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}

.form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--background);
  color: var(--text);
  transition: border-color 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
}

.form-link {
  font-size: 12px;
  color: var(--primary);
  text-decoration: none;
}

.form-link:hover {
  text-decoration: underline;
}

.captcha-box {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px;
  margin: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--background);
}

.captcha-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.captcha-checkbox {
  width: 24px;
  height: 24px;
  border: 2px solid var(--border);
  border-radius: 3px;
  cursor: pointer;
  background: var(--background);
}

.captcha-text {
  font-size: 14px;
  color: var(--text);
}

.captcha-logo {
  text-align: right;
}

.captcha-logo img {
  height: 40px;
}

.btn {
  width: 100%;
  padding: 12px;
  font-size: 14px;
  font-weight: 500;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-deep);
}

.signup-text {
  text-align: center;
  font-size: 14px;
  color: var(--gray-text);
  margin-top: 16px;
}

.signup-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.signup-link:hover {
  text-decoration: underline;
}

.error-message {
  background: #FEE2E2;
  color: #991B1B;
  padding: 12px;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 16px;
}

/* Dashboard Styles */
.dashboard-body {
  display: block;
  background-color: #F8FAFC;
}

.dashboard-container {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 240px;
  background: var(--background);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 24px 0;
}

.sidebar-header {
  padding: 0 24px 24px;
  border-bottom: 1px solid var(--border);
}

.sidebar-header h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--headings);
  letter-spacing: -0.3px;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-link {
  padding: 10px 16px;
  border-radius: 6px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.2s;
}

.nav-link:hover {
  background-color: var(--icy);
  color: var(--primary-deep);
}

.nav-link.active {
  background-color: var(--primary);
  color: white;
  font-weight: 600;
}

.nav-link.active:hover {
  background-color: var(--primary-deep);
}

.sidebar-footer {
  padding: 16px 12px 0;
  border-top: 1px solid var(--border);
}

/* Main Content */
.main-content {
  flex: 1;
  padding: 32px;
  overflow-y: auto;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.dashboard-header h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--headings);
  letter-spacing: -0.5px;
}

.header-actions .btn {
  width: auto;
  padding: 10px 20px;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s, transform 0.2s;
}

.stat-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.stat-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--gray-text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.stat-value {
  font-size: 28px;
  font-weight: 600;
  color: var(--headings);
}

.stat-active .stat-value {
  color: var(--accent);
}

.stat-value-card .stat-value {
  color: var(--warm);
}

.stat-value-card {
  background: var(--icy-warm);
  border-color: #FDE68A;
}

.stat-badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--warm);
  color: white;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
}

.stat-expired .stat-value {
  color: var(--grayed-out);
}

.stat-expired {
  background: #F8FAFC;
}

.stat-used .stat-value {
  color: var(--primary-deep);
}

.stat-used {
  background: var(--icy);
  border-color: var(--accent-light);
}

.stat-active {
  background: #ECFDF5;
  border-color: #A7F3D0;
}

/* Content Section */
.content-section {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.section-header h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--headings);
}

.link-view-all {
  font-size: 14px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.link-view-all:hover {
  text-decoration: underline;
}

/* Data Table */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  text-align: left;
  padding: 14px 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--grayed-out);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-bottom: 2px solid var(--border);
  background: #FAFAFA;
}

.data-table td {
  padding: 14px 12px;
  font-size: 14px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.data-table tr:hover td {
  background: #FAFAFA;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.voucher-code {
  font-family: 'SF Mono', Monaco, monospace;
  font-size: 13px;
  background: var(--icy);
  padding: 6px 10px;
  border-radius: 6px;
  color: var(--primary-deep);
  font-weight: 500;
  border: 1px solid var(--accent-light);
}

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.status-active {
  background: var(--icy);
  color: var(--primary-deep);
}

.status-used {
  background: var(--icy-warm);
  color: #B45309;
}

.status-expired {
  background: #F1F5F9;
  color: var(--grayed-out);
}

.status-cancelled {
  background: #FEE2E2;
  color: #991B1B;
}

.action-link {
  font-size: 14px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.action-link:hover {
  text-decoration: underline;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 40px;
}

.empty-state p {
  color: var(--gray-text);
  margin-bottom: 16px;
}

.empty-state .btn {
  width: auto;
  display: inline-block;
  padding: 10px 24px;
}
