@font-face {
    font-family: "bodyFont";
    src: url(res/zaiSmith.otf);
    /* https://www.dafont.com/zai-smith-corona-galaxie-typewriter.font?a=on&psize=xs&l[]=10&l[]=1&l[]=6&text=let+me+test+It+12%25%24%21%3F%60%7E */
}

body {
	background-image: url(img/bgImg.jpg); /* https://pixabay.com/photos/forest-wilderness-night-midnight-4395986/ */
	background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 100vh;
    font-family: bodyFont, monospace;
}

.section {
	border: 2px dashed gray;
	border-radius: 2%;
	background-color: #BFCFCE;
}

hr {margin: 2%;}

/* Reset margins and force full viewport height */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body, html {
  height: 100%;
  color: #333;
}


/* 3-Column Grid Container */
.wowInbox {
  display: grid;
  /* Col 1: fixed width, Col 2: fixed width, Col 3: takes remaining space */
  grid-template-columns: 200px 320px 1fr;
  height: 100vh;
  overflow: hidden; /* Prevents whole-page scrolling */
}

/* Column 1: Navigation Sidebar */
nav {
  color: #fff;
  padding: 1rem;
}

nav .logo {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  color: #6d4aff; /* Accent color */
}

nav ul {
  list-style: none;
}

nav li a {
  color: #a0a5b5;
  text-decoration: none;
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  margin-bottom: 0.25rem;
}

nav li.active a,
nav li a:hover {
  background-color: #2a2b32;
  color: #fff;
}

/* Column 2: Message List */
.message-list {
  background-color: rgba(247, 248, 250, 0.80);
  border-right: 1px solid #e1e3e8;
  overflow-y: auto; /* Independent scrolling for list */
}

.list-header {
  padding: 1rem;
  border-bottom: 1px solid #e1e3e8;
  background-color: #fff;
}

.email-item {
  padding: 1rem;
  border-bottom: 1px solid #e1e3e8;
  cursor: pointer;
  background-color: #fff;
  transition: background 0.15s ease;
}

.email-item:hover {
  background-color: #f0f2f5;
}

.email-item.active {
  background-color: #e8ebf5;
  border-left: 4px solid #6d4aff;
}

.email-sender {
  font-weight: bold;
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}

.email-subject {
  font-size: 0.85rem;
  color: #222;
  margin-bottom: 0.2rem;
}

.email-snippet {
  font-size: 0.8rem;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Column 3: Email Reading Pane */
.email-view {
  background-color: #fff;
  overflow-y: auto; /* Independent scrolling for email content */
  padding: 2rem;
}

.view-header {
  border-bottom: 1px solid #e1e3e8;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.view-header h2 {
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.meta-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #666;
}

.view-body p, .reg p, .reg ol {
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Center placeholder message */
.view-body {
  height: 100%;
}

.placeholder-text {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60vh;
  color: #888;
  font-size: 1.1rem;
}

/* Hide header bottom border when empty */
.view-header.empty-state {
  border-bottom: none;
}

blockquote {border-left: 2px solid rgba(131, 131, 131, 0.51); padding-left: 3%; margin: 3% 1%;}