/* Global Styles - Vercel-inspired Dark Theme */
:root {
  --bg-color: #000000;
  --card-bg: #111111;
  --text-color: #ffffff;
  --text-muted: #888888;
  --border-color: #333333;
  --primary-color: #ffffff;
  --primary-fg: #000000;
  --accent-color: #0070f3;
  --danger-color: #e00;
  --success-color: #0070f3;
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

[data-theme="light"] {
  --bg-color: #ffffff;
  --card-bg: #f9f9f9;
  --text-color: #000000;
  --text-muted: #666666;
  --border-color: #eaeaea;
  --primary-color: #000000;
  --primary-fg: #ffffff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  transition: background-color 0.3s, color 0.3s;
}

/* Layout Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.flex {
  display: flex;
}
.items-center {
  align-items: center;
}
.justify-between {
  justify-content: space-between;
}
.justify-center {
  justify-content: center;
}
.gap-4 {
  gap: 1rem;
}
.h-screen {
  height: 100vh;
}
.w-full {
  width: 100%;
}

/* Typography */
h1,
h2,
h3 {
  font-weight: 700;
  letter-spacing: -0.03em;
}

.text-sm {
  font-size: 0.875rem;
}
.text-muted {
  color: var(--text-muted);
}

/* Components */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  height: 40px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary-color);
  color: var(--primary-fg);
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-color);
}

.btn-outline:hover {
  border-color: var(--text-color);
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

.form-input {
  width: 100%;
  height: 40px;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0 12px;
  color: var(--text-color);
  font-size: 14px;
  transition: border-color 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--text-color);
}

/* Auth Pages */
.auth-wrapper {
  max-width: 400px;
  width: 100%;
  margin: 0 auto;
}

.logo {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 32px;
  display: block;
  text-align: center;
  text-decoration: none;
  color: var(--text-color);
}

/* Added Navbar Styles */
.navbar {
  background: var(--bg-color);
  border-bottom: 1px solid var(--border-color);
  height: 64px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(5px);
}

.nav-logo {
  font-weight: 800;
  font-size: 20px;
  color: var(--text-color);
  text-decoration: none;
}

.nav-links {
  gap: 24px;
}

.nav-item {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-item:hover,
.nav-item.active {
  color: var(--text-color);
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: 16px;
  padding-left: 16px;
  border-left: 1px solid var(--border-color);
}

.username {
  font-size: 14px;
  font-weight: 500;
}

.btn-sm {
  height: 32px;
  padding: 0 12px;
  font-size: 13px;
}

.footer {
  border-top: 1px solid var(--border-color);
  padding: 32px 0;
  margin-top: auto;
}

/* Dashboard Grid Layout */
.grid-cols-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.stat-card {
  padding: 24px;
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
  margin-top: 8px;
}

.stat-label {
  font-size: 14px;
  color: var(--text-muted);
}

/* Added badge styles for status indicators */
.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-sent {
  background: rgba(0, 112, 243, 0.1);
  color: var(--success-color);
}

.badge-failed {
  background: rgba(238, 0, 0, 0.1);
  color: var(--danger-color);
}

.badge-pending {
  background: rgba(136, 136, 136, 0.1);
  color: var(--text-muted);
}

/* Added progress bar styles for sending UI */
.progress-bar-bg {
  width: 100%;
  height: 8px;
  background: var(--border-color);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--success-color);
  width: 0%;
  transition: width 0.3s ease;
}

@media (max-width: 768px) {
  .grid-cols-3 {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none; /* Mobile menu would go here */
  }
}
