/**
 * TempMail UI - Dark Futuristic Theme
 * Cyberpunk/Neon aesthetic with glassmorphism
 */

/* ========== CSS Variables ========== */
:root {
  /* Dark Background Colors */
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-tertiary: #1a1a25;
  --bg-card: rgba(20, 20, 30, 0.7);
  --bg-card-hover: rgba(30, 30, 45, 0.8);

  /* Neon Accent Colors */
  --neon-cyan: #00f5ff;
  --neon-cyan-dim: #00b8c4;
  --neon-purple: #b24bff;
  --neon-purple-dim: #8a2be2;
  --neon-pink: #ff2d92;
  --neon-green: #39ff14;
  --neon-orange: #ff6b35;

  /* Glow Effects */
  --glow-cyan: 0 0 20px rgba(0, 245, 255, 0.5), 0 0 40px rgba(0, 245, 255, 0.2);
  --glow-purple: 0 0 20px rgba(178, 75, 255, 0.5),
    0 0 40px rgba(178, 75, 255, 0.2);
  --glow-pink: 0 0 20px rgba(255, 45, 146, 0.5);

  /* Text Colors */
  --text-primary: #e8e8e8;
  --text-secondary: #a0a0b0;
  --text-muted: #606070;
  --text-glow: #ffffff;

  /* Border & Glass */
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-neon: rgba(0, 245, 255, 0.3);
  --glass-blur: blur(12px);

  /* Button Colors */
  --btn-copy: linear-gradient(135deg, #00f5ff 0%, #00b8c4 100%);
  --btn-refresh: linear-gradient(135deg, #b24bff 0%, #8a2be2 100%);
  --btn-new: linear-gradient(135deg, #39ff14 0%, #2ecc71 100%);
  --btn-delete: linear-gradient(135deg, #ff2d92 0%, #dc143c 100%);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow: 0.4s ease;

  /* Spacing */
  --sidebar-width: 300px;
  --border-radius: 12px;
  --border-radius-lg: 16px;
}

/* ========== Reset & Base ========== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont,
    sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Animated background mesh */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      ellipse at 20% 20%,
      rgba(0, 245, 255, 0.08) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 80% 80%,
      rgba(178, 75, 255, 0.08) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 50% 50%,
      rgba(255, 45, 146, 0.03) 0%,
      transparent 70%
    );
  pointer-events: none;
  z-index: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  font-family: inherit;
  font-size: inherit;
  background: transparent;
}

input,
select {
  font-family: inherit;
  font-size: inherit;
  background: transparent;
  border: none;
  outline: none;
}

/* ========== Typography ========== */
h1,
h2,
h3,
h4 {
  font-weight: 600;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 2rem;
}
h2 {
  font-size: 1.5rem;
}
h3 {
  font-size: 1.25rem;
}
h4 {
  font-size: 1rem;
}

/* ========== Glass Card Component ========== */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-lg);
  transition: var(--transition-normal);
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-neon);
}

/* ========== Layout Components ========== */
.app-container {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* ========== Sidebar ========== */
.sidebar {
  width: var(--sidebar-width);
  background: linear-gradient(
    180deg,
    rgba(10, 10, 20, 0.95) 0%,
    rgba(15, 15, 25, 0.98) 100%
  );
  backdrop-filter: var(--glass-blur);
  border-right: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  left: 0;
  top: 0;
  z-index: 100;
  overflow-y: auto;
}

.sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-glass);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.sidebar-logo svg {
  width: 40px;
  height: 40px;
  color: var(--neon-cyan);
  filter: drop-shadow(0 0 8px rgba(0, 245, 255, 0.5));
}

.sidebar-logo h1 {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(
    135deg,
    var(--neon-cyan) 0%,
    var(--neon-purple) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(0, 245, 255, 0.3);
}

/* Email Address Display */
.email-address-box {
  background: rgba(0, 245, 255, 0.05);
  border: 1px solid rgba(0, 245, 255, 0.2);
  border-radius: var(--border-radius);
  padding: 0.875rem 1rem;
  font-family: "JetBrains Mono", "Fira Code", "Consolas", monospace;
  font-size: 0.85rem;
  color: var(--neon-cyan);
  word-break: break-all;
  cursor: pointer;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.email-address-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 245, 255, 0.1),
    transparent
  );
  transition: var(--transition-slow);
}

.email-address-box:hover {
  background: rgba(0, 245, 255, 0.1);
  border-color: var(--neon-cyan);
  box-shadow: var(--glow-cyan);
}

.email-address-box:hover::before {
  left: 100%;
}

/* ========== Action Buttons Grid ========== */
.action-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  padding: 1.5rem;
}

.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.25rem 0.75rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
}

.action-btn svg {
  width: 24px;
  height: 24px;
  transition: var(--transition-normal);
}

.action-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  transition: var(--transition-normal);
}

.action-btn:hover {
  transform: translateY(-3px);
}

.action-btn:hover svg {
  transform: scale(1.1);
}

.action-btn:active {
  transform: translateY(-1px);
}

/* Copy Button - Cyan */
.btn-copy {
  background: linear-gradient(
    135deg,
    rgba(0, 245, 255, 0.15) 0%,
    rgba(0, 184, 196, 0.1) 100%
  );
  border-color: rgba(0, 245, 255, 0.3);
  color: var(--neon-cyan);
}

.btn-copy:hover {
  background: linear-gradient(
    135deg,
    rgba(0, 245, 255, 0.25) 0%,
    rgba(0, 184, 196, 0.2) 100%
  );
  box-shadow: var(--glow-cyan);
  border-color: var(--neon-cyan);
}

/* Refresh Button - Purple */
.btn-refresh {
  background: linear-gradient(
    135deg,
    rgba(178, 75, 255, 0.15) 0%,
    rgba(138, 43, 226, 0.1) 100%
  );
  border-color: rgba(178, 75, 255, 0.3);
  color: var(--neon-purple);
}

.btn-refresh:hover {
  background: linear-gradient(
    135deg,
    rgba(178, 75, 255, 0.25) 0%,
    rgba(138, 43, 226, 0.2) 100%
  );
  box-shadow: var(--glow-purple);
  border-color: var(--neon-purple);
}

/* New Button - Green */
.btn-new {
  background: linear-gradient(
    135deg,
    rgba(57, 255, 20, 0.15) 0%,
    rgba(46, 204, 113, 0.1) 100%
  );
  border-color: rgba(57, 255, 20, 0.3);
  color: var(--neon-green);
}

.btn-new:hover {
  background: linear-gradient(
    135deg,
    rgba(57, 255, 20, 0.25) 0%,
    rgba(46, 204, 113, 0.2) 100%
  );
  box-shadow: 0 0 20px rgba(57, 255, 20, 0.4);
  border-color: var(--neon-green);
}

/* Delete Button - Pink */
.btn-delete {
  background: linear-gradient(
    135deg,
    rgba(255, 45, 146, 0.15) 0%,
    rgba(220, 20, 60, 0.1) 100%
  );
  border-color: rgba(255, 45, 146, 0.3);
  color: var(--neon-pink);
}

.btn-delete:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 45, 146, 0.25) 0%,
    rgba(220, 20, 60, 0.2) 100%
  );
  box-shadow: var(--glow-pink);
  border-color: var(--neon-pink);
}

/* ========== Auto-Refresh Toggle ========== */
.auto-refresh-toggle {
  padding: 0 1.5rem 1rem;
}

.toggle-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius);
}

.toggle-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.toggle-switch {
  position: relative;
  width: 48px;
  height: 24px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition-normal);
}

.toggle-switch.active {
  background: rgba(0, 245, 255, 0.3);
  box-shadow: 0 0 10px rgba(0, 245, 255, 0.3);
}

.toggle-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: var(--text-secondary);
  border-radius: 50%;
  transition: var(--transition-normal);
}

.toggle-switch.active::after {
  left: 27px;
  background: var(--neon-cyan);
  box-shadow: 0 0 8px var(--neon-cyan);
}

/* ========== Language Selector ========== */
.language-selector {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-glass);
  margin-top: auto;
}

.language-selector label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.language-selector select {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition-fast);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a0a0b0' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
}

.language-selector select:hover {
  border-color: var(--border-neon);
}

.language-selector select:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 0 2px rgba(0, 245, 255, 0.1);
}

.language-selector select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

/* ========== Main Content Area ========== */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.content-header {
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: var(--glass-blur);
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}

.content-body {
  flex: 1;
  display: flex;
  overflow: hidden;
}

/* ========== Email List Panel ========== */
.email-list-panel {
  width: 400px;
  background: rgba(15, 15, 22, 0.6);
  border-right: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.email-list-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 10, 15, 0.5);
}

.email-list-header h3 {
  color: var(--text-primary);
  font-weight: 600;
}

.email-count {
  background: linear-gradient(
    135deg,
    var(--neon-cyan) 0%,
    var(--neon-purple) 100%
  );
  color: var(--bg-primary);
  padding: 0.25rem 0.875rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}

.email-list {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-glass) transparent;
}

.email-list::-webkit-scrollbar {
  width: 6px;
}

.email-list::-webkit-scrollbar-track {
  background: transparent;
}

.email-list::-webkit-scrollbar-thumb {
  background: var(--border-glass);
  border-radius: 3px;
}

.email-item {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-glass);
  cursor: pointer;
  transition: var(--transition-normal);
  position: relative;
}

.email-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: transparent;
  transition: var(--transition-normal);
}

.email-item:hover {
  background: rgba(0, 245, 255, 0.03);
}

.email-item:hover::before {
  background: var(--neon-cyan);
  box-shadow: 0 0 10px var(--neon-cyan);
}

.email-item.active {
  background: rgba(0, 245, 255, 0.08);
}

.email-item.active::before {
  background: var(--neon-cyan);
  box-shadow: 0 0 15px var(--neon-cyan);
}

.email-item-from {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.375rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.email-item-subject {
  color: var(--text-secondary);
  font-size: 0.875rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.5rem;
}

.email-item-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: "JetBrains Mono", monospace;
}

/* ========== Email Detail Panel ========== */
.email-detail-panel {
  flex: 1;
  background: rgba(12, 12, 18, 0.4);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.email-detail-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-glass);
  background: rgba(15, 15, 22, 0.5);
}

.email-detail-subject {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.email-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.email-detail-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.email-detail-meta-item svg {
  width: 16px;
  height: 16px;
  color: var(--neon-cyan);
}

.email-detail-body {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
  font-size: 0.95rem;
  line-height: 1.8;
  white-space: pre-wrap;
  word-wrap: break-word;
  font-family: "Inter", sans-serif;
  color: var(--text-primary);
}

/* ========== Empty State ========== */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  text-align: center;
  height: 100%;
  color: var(--text-secondary);
}

.empty-state-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 1.5rem;
  position: relative;
}

.empty-state-icon svg {
  width: 100%;
  height: 100%;
  color: var(--text-muted);
  opacity: 0.5;
}

.empty-state-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  background: radial-gradient(
    circle,
    rgba(0, 245, 255, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

.empty-state h3 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.empty-state p {
  font-size: 0.9rem;
  max-width: 280px;
}

/* ========== Landing Page ========== */
.landing-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.landing-nav {
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: var(--glass-blur);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-glass);
  position: sticky;
  top: 0;
  z-index: 100;
}

.landing-nav .logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.landing-nav .logo svg {
  width: 36px;
  height: 36px;
  color: var(--neon-cyan);
  filter: drop-shadow(0 0 8px rgba(0, 245, 255, 0.5));
}

.landing-nav .logo h1 {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(
    135deg,
    var(--neon-cyan) 0%,
    var(--neon-purple) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-links a {
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  transition: var(--transition-fast);
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-links .btn-admin {
  background: linear-gradient(
    135deg,
    rgba(178, 75, 255, 0.2) 0%,
    rgba(138, 43, 226, 0.15) 100%
  );
  border: 1px solid rgba(178, 75, 255, 0.3);
  color: var(--neon-purple);
  font-weight: 600;
}

.nav-links .btn-admin:hover {
  background: linear-gradient(
    135deg,
    rgba(178, 75, 255, 0.3) 0%,
    rgba(138, 43, 226, 0.25) 100%
  );
  box-shadow: var(--glow-purple);
  border-color: var(--neon-purple);
}

/* Hero Section */
.landing-hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
}

.hero-content {
  max-width: 650px;
  text-align: center;
}

.hero-icon {
  width: 140px;
  height: 140px;
  margin: 0 auto 2.5rem;
  background: linear-gradient(
    135deg,
    rgba(0, 245, 255, 0.15) 0%,
    rgba(178, 75, 255, 0.15) 100%
  );
  border: 1px solid rgba(0, 245, 255, 0.3);
  border-radius: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: float 4s ease-in-out infinite;
}

.hero-icon::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 37px;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
  opacity: 0.5;
  filter: blur(15px);
  z-index: -1;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

.hero-icon svg {
  width: 70px;
  height: 70px;
  color: var(--neon-cyan);
  filter: drop-shadow(0 0 10px rgba(0, 245, 255, 0.5));
}

.hero-content h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(
    135deg,
    var(--text-primary) 0%,
    var(--neon-cyan) 50%,
    var(--neon-purple) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.hero-content > p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-features {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.feature-item svg {
  width: 20px;
  height: 20px;
  color: var(--neon-green);
  filter: drop-shadow(0 0 5px rgba(57, 255, 20, 0.5));
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(
    135deg,
    rgba(0, 245, 255, 0.2) 0%,
    rgba(178, 75, 255, 0.2) 100%
  );
  border: 1px solid rgba(0, 245, 255, 0.4);
  color: var(--neon-cyan);
  padding: 1rem 2rem;
  border-radius: var(--border-radius);
  font-size: 1.1rem;
  font-weight: 600;
  transition: var(--transition-normal);
}

.btn-primary:hover {
  background: linear-gradient(
    135deg,
    rgba(0, 245, 255, 0.3) 0%,
    rgba(178, 75, 255, 0.3) 100%
  );
  box-shadow: var(--glow-cyan);
  transform: translateY(-3px);
}

.btn-primary svg {
  width: 22px;
  height: 22px;
}

/* Footer */
.landing-footer {
  background: rgba(10, 10, 15, 0.8);
  border-top: 1px solid var(--border-glass);
  color: var(--text-muted);
  padding: 1.5rem 2rem;
  text-align: center;
  font-size: 0.875rem;
}

/* ========== Admin Page ========== */
.admin-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.admin-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.admin-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 520px;
}

.admin-card h2 {
  text-align: center;
  margin-bottom: 0.5rem;
  background: linear-gradient(
    135deg,
    var(--neon-cyan) 0%,
    var(--neon-purple) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.admin-card .subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.form-group input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  transition: var(--transition-fast);
}

.form-group input::placeholder {
  color: var(--text-muted);
}

.form-group input:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 0 3px rgba(0, 245, 255, 0.1);
  background: rgba(0, 245, 255, 0.02);
}

.btn-full {
  width: 100%;
  padding: 1rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition-normal);
}

.btn-create {
  background: linear-gradient(
    135deg,
    rgba(178, 75, 255, 0.25) 0%,
    rgba(138, 43, 226, 0.2) 100%
  );
  border: 1px solid rgba(178, 75, 255, 0.4);
  color: var(--neon-purple);
}

.btn-create:hover {
  background: linear-gradient(
    135deg,
    rgba(178, 75, 255, 0.35) 0%,
    rgba(138, 43, 226, 0.3) 100%
  );
  box-shadow: var(--glow-purple);
  transform: translateY(-2px);
}

.btn-create:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Result Card */
.result-card {
  background: rgba(0, 245, 255, 0.03);
  border: 1px solid rgba(0, 245, 255, 0.15);
  border-radius: var(--border-radius);
  padding: 1.25rem;
  margin-top: 1.5rem;
  display: none;
}

.result-card.show {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-glass);
  gap: 1rem;
}

.result-item:last-child {
  border-bottom: none;
}

.result-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.result-value {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  color: var(--neon-cyan);
  max-width: 55%;
  word-break: break-all;
  text-align: right;
}

.btn-copy-small {
  background: linear-gradient(
    135deg,
    rgba(0, 245, 255, 0.15) 0%,
    rgba(0, 184, 196, 0.1) 100%
  );
  border: 1px solid rgba(0, 245, 255, 0.3);
  color: var(--neon-cyan);
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.btn-copy-small:hover {
  background: linear-gradient(
    135deg,
    rgba(0, 245, 255, 0.25) 0%,
    rgba(0, 184, 196, 0.2) 100%
  );
  box-shadow: 0 0 10px rgba(0, 245, 255, 0.3);
}

.btn-open-inbox {
  width: 100%;
  margin-top: 1.25rem;
  background: linear-gradient(
    135deg,
    rgba(57, 255, 20, 0.15) 0%,
    rgba(46, 204, 113, 0.1) 100%
  );
  border: 1px solid rgba(57, 255, 20, 0.3);
  color: var(--neon-green);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-open-inbox:hover {
  background: linear-gradient(
    135deg,
    rgba(57, 255, 20, 0.25) 0%,
    rgba(46, 204, 113, 0.2) 100%
  );
  box-shadow: 0 0 15px rgba(57, 255, 20, 0.3);
}

.btn-open-inbox svg {
  width: 20px;
  height: 20px;
}

/* ========== Toast Notifications ========== */
.toast-container {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-glass);
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: slideIn 0.3s ease;
  min-width: 280px;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.toast.success {
  border-left: 3px solid var(--neon-green);
}

.toast.error {
  border-left: 3px solid var(--neon-pink);
}

.toast.info {
  border-left: 3px solid var(--neon-cyan);
}

.toast-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.toast.success .toast-icon {
  color: var(--neon-green);
}
.toast.error .toast-icon {
  color: var(--neon-pink);
}
.toast.info .toast-icon {
  color: var(--neon-cyan);
}

.toast span {
  color: var(--text-primary);
  font-size: 0.9rem;
}

/* ========== Loading Spinner ========== */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--neon-cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ========== Language Switch ========== */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-switch select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: var(--transition-fast);
}

.lang-switch select:hover {
  border-color: var(--border-neon);
  color: var(--text-primary);
}

.lang-switch select option {
  background: var(--bg-secondary);
}

/* ========== Responsive Design ========== */
@media (max-width: 1024px) {
  .email-list-panel {
    width: 340px;
  }
}

@media (max-width: 900px) {
  :root {
    --sidebar-width: 100%;
  }

  .app-container {
    flex-direction: column;
  }

  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    max-height: none;
  }

  .action-buttons {
    padding: 1rem;
  }

  .main-content {
    margin-left: 0;
  }

  .content-body {
    flex-direction: column;
  }

  .email-list-panel {
    width: 100%;
    max-height: 45vh;
    border-right: none;
    border-bottom: 1px solid var(--border-glass);
  }

  .email-detail-panel {
    min-height: 50vh;
  }

  .hero-content h2 {
    font-size: 2rem;
  }

  .hero-features {
    gap: 1.25rem;
  }
}

@media (max-width: 480px) {
  .landing-nav {
    padding: 1rem;
  }

  .admin-card {
    padding: 1.5rem;
  }

  .hero-icon {
    width: 100px;
    height: 100px;
  }

  .hero-icon svg {
    width: 50px;
    height: 50px;
  }

  .hero-content h2 {
    font-size: 1.75rem;
  }
}

/* ========== Utility Classes ========== */
.hidden {
  display: none !important;
}
.text-center {
  text-align: center;
}
.mt-1 {
  margin-top: 0.5rem;
}
.mt-2 {
  margin-top: 1rem;
}
.mb-1 {
  margin-bottom: 0.5rem;
}
.mb-2 {
  margin-bottom: 1rem;
}

/* Neon Text Utility */
.neon-text {
  color: var(--neon-cyan);
  text-shadow: 0 0 10px rgba(0, 245, 255, 0.5);
}

.neon-text-purple {
  color: var(--neon-purple);
  text-shadow: 0 0 10px rgba(178, 75, 255, 0.5);
}
