/* ==========================
   Theme Variables
   ========================== */
:root {
  --bg-black: #000000;
  --gradient-pink: rgba(255,20,147, 0.05);
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --text-color: #e6e6e6;
}

/* ==========================
   Global Reset & Black BG
   ========================== */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg-black) fixed;
  font-family: 'Inter', sans-serif;
  color: var(--text-color);
}

* {
  box-sizing: border-box;
}

/* ==========================
   Top Bar (fixed)
   ========================== */
.topbar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  background: var(--glass-bg);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
}
.menu-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  margin-right: 20px;
  cursor: pointer;
  color: var(--text-color);
}
.compose-btn {
  margin-right: 20px;
}

/* ==========================
   Sidebar (slide-out)
   ========================== */
.sidebar {
  position: fixed;
  top: 0; left: 0;
  width: 250px;
  height: 100%;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  padding-top: 64px; /* push below topbar */
  z-index: 999;
}
.sidebar.open {
  transform: translateX(0);
}
.sidebar h2 {
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 20px;
}
.menu-item {
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.2s;
}
.menu-item:hover {
  background: rgba(255,255,255,0.1);
}

/* ==========================
   Main Content
   ========================== */
.content {
  margin-top: 64px;  /* below topbar */
  padding: 20px;
}

/* Inbox List */
.inbox-list {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.inbox-item {
  display: block;
  padding: 12px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-color);
  transition: background 0.2s;
}
.inbox-item:hover,
.inbox-item.active {
  background: rgba(255,255,255,0.2);
}

/* Mail Container */
.mail-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px;
}

/* Email Header & Body */
.email-header {
  margin-bottom: 24px;
}
.email-header .back-link {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--text-color);
  text-decoration: none;
}
.email-header h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}
.email-header p {
  font-size: 0.9rem;
  opacity: 0.8;
}
.email-body {
  line-height: 1.6;
}