/* TempMail - Full Dark Blue Theme */

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #1a1a2e;
  color: #fff;
  min-height: 100vh;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Header */
.header {
  background: #1a1a2e;
  padding: 18px 0;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  font-size: 28px;
}

.logo-text {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 2px;
}

/* Main Section */
.main-section {
  background: #1a1a2e;
  padding: 35px 0 40px;
  text-align: center;
}

.main-section h1 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 22px;
}

/* Email Box */
.email-box {
  display: flex;
  align-items: center;
  max-width: 480px;
  margin: 0 auto 18px;
  background: #252540;
  border-radius: 10px;
  padding: 6px;
  border: 1px solid #3a3a5c;
}

.email-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  padding: 12px 15px;
  outline: none;
  min-width: 0;
}

.email-input::placeholder {
  color: #666;
}

.copy-btn {
  background: #00d09c;
  border: none;
  color: #fff;
  padding: 11px 13px;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s;
  flex-shrink: 0;
}

.copy-btn:hover {
  background: #00b386;
}

.copy-btn:active {
  transform: scale(0.95);
}

.tagline {
  color: #777;
  font-size: 13px;
  margin-bottom: 25px;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 20px;
  background: #2a2a45;
  border: 1px solid #3a3a5c;
  border-radius: 25px;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.action-btn:hover {
  background: #3a3a5c;
  transform: translateY(-1px);
}

/* Quote Section - Below buttons */
.quote-section {
  padding: 20px 0 10px;
  text-align: center;
}

.quote-text {
  color: #888;
  font-size: 14px;
  font-style: italic;
  margin-bottom: 5px;
}

.quote-author {
  color: #666;
  font-size: 12px;
}

/* Inbox Section - Same dark blue */
.inbox-section {
  background: #1a1a2e;
  padding: 0 0 50px;
}

.inbox-box {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
}

.inbox-header {
  display: grid;
  grid-template-columns: minmax(100px, 1fr) minmax(150px, 2fr) 80px;
  background: #1a1a2e;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  padding: 14px 20px;
}

.inbox-body {
  min-height: 200px;
  background: #fff;
}

.empty-inbox {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 20px;
}

.loader {
  width: 35px;
  height: 35px;
  border: 3px solid #eee;
  border-top-color: #00d09c;
  border-radius: 50%;
  margin-bottom: 18px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.empty-title {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.empty-subtitle {
  font-size: 13px;
  color: #00d09c;
}

/* Email Row */
.email-row {
  display: grid;
  grid-template-columns: minmax(100px, 1fr) minmax(150px, 2fr) 80px;
  padding: 14px 20px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: background 0.15s;
  align-items: center;
}

.email-row:hover {
  background: #f8fafb;
}

.email-row.unread {
  background: #f0f8ff;
}

.email-row.unread .email-sender {
  font-weight: 600;
  color: #1a1a2e;
}

.email-sender {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #333;
  font-size: 13px;
  min-width: 0;
}

.sender-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00d09c 0%, #00b386 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}

.sender-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.email-subject {
  color: #555;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 10px;
}

.email-view {
  text-align: right;
}

.view-btn {
  background: #00d09c;
  color: #fff;
  border: none;
  padding: 7px 16px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.view-btn:hover {
  background: #00b386;
}

/* Features Section - SAME dark blue theme */
.features-section {
  background: #1a1a2e;
  padding: 40px 0 60px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: #252540;
  border: 1px solid #3a3a5c;
  border-radius: 14px;
  padding: 30px 20px;
  text-align: center;
  transition: transform 0.2s, border-color 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: #00d09c;
}

.feature-card .feature-icon {
  font-size: 38px;
  margin-bottom: 15px;
  display: block;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 13px;
  color: #888;
  line-height: 1.5;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 15px;
  overflow-y: auto;
}

.modal.show {
  display: flex;
}

.modal-content {
  background: #fff;
  border-radius: 14px;
  width: 100%;
  max-width: 650px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 18px 20px;
  border-bottom: 1px solid #eee;
  background: #fafafa;
}

.modal-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a2e;
  flex: 1;
  padding-right: 15px;
  line-height: 1.4;
}

.modal-close {
  background: #f0f0f0;
  border: none;
  font-size: 18px;
  color: #666;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: #e0e0e0;
  color: #333;
}

.modal-meta {
  padding: 14px 20px;
  background: #fff;
  border-bottom: 1px solid #eee;
}

.sender-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sender-avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #00d09c, #00b386);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: 16px;
}

.sender-details {
  min-width: 0;
}

.sender-name-full {
  font-weight: 600;
  color: #1a1a2e;
  font-size: 14px;
}

.sender-time {
  font-size: 12px;
  color: #888;
  margin-top: 2px;
}

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  font-size: 14px;
  line-height: 1.7;
  color: #333;
}

.modal-body a {
  color: #00d09c;
}

.modal-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.modal-attachments {
  padding: 15px 20px;
  border-top: 1px solid #eee;
  background: #fafafa;
}

.modal-attachments.hidden {
  display: none;
}

.modal-attachments h4 {
  font-size: 13px;
  margin-bottom: 10px;
  color: #555;
}

.attachment-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-right: 8px;
  margin-bottom: 8px;
  cursor: pointer;
  font-size: 13px;
}

.attachment-item:hover {
  border-color: #00d09c;
  background: #f0fff8;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #252540;
  color: #fff;
  padding: 12px 28px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  transition: transform 0.3s;
  z-index: 1001;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

/* Mobile */
@media (max-width: 600px) {
  .header {
    padding: 15px 0;
  }

  .logo-icon {
    font-size: 24px;
  }

  .logo-text {
    font-size: 18px;
  }

  .main-section {
    padding: 25px 0 30px;
  }

  .main-section h1 {
    font-size: 18px;
    margin-bottom: 18px;
  }

  .email-box {
    margin: 0 10px 15px;
    max-width: none;
  }

  .email-input {
    font-size: 12px;
    padding: 10px 12px;
  }

  .copy-btn {
    padding: 10px 12px;
  }

  .tagline {
    font-size: 12px;
    margin-bottom: 20px;
  }

  .action-buttons {
    gap: 8px;
    padding: 0 10px;
    margin-bottom: 20px;
  }

  .action-btn {
    padding: 9px 14px;
    font-size: 12px;
  }

  .quote-section {
    padding: 15px 10px;
  }

  .quote-text {
    font-size: 12px;
  }

  .quote-author {
    font-size: 11px;
  }

  .inbox-section {
    padding: 0 10px 40px;
  }

  .inbox-header {
    grid-template-columns: 1fr 1fr 60px;
    padding: 12px 15px;
    font-size: 10px;
  }

  .email-row {
    grid-template-columns: 1fr 1fr 60px;
    padding: 12px 15px;
  }

  .sender-dot {
    width: 28px;
    height: 28px;
    font-size: 11px;
  }

  .sender-name {
    font-size: 12px;
  }

  .email-subject {
    font-size: 12px;
    padding: 0 5px;
  }

  .view-btn {
    padding: 6px 12px;
    font-size: 10px;
  }

  .features-section {
    padding: 30px 0 50px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 0 10px;
  }

  .feature-card {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
  }

  .feature-card .feature-icon {
    font-size: 30px;
    margin-bottom: 0;
  }

  .feature-card h3 {
    margin-bottom: 3px;
  }

  .feature-card p {
    font-size: 12px;
  }

  .modal {
    padding: 10px;
    align-items: flex-start;
    padding-top: 20px;
  }

  .modal-content {
    max-height: calc(100vh - 40px);
  }

  .modal-header {
    padding: 15px;
  }

  .modal-header h3 {
    font-size: 14px;
  }

  .modal-body {
    padding: 15px;
    font-size: 13px;
  }

  .toast {
    padding: 10px 22px;
    font-size: 13px;
    bottom: 20px;
  }
}

@media (max-width: 380px) {
  .action-btn span:last-child {
    display: none;
  }

  .action-btn {
    padding: 10px 12px;
  }

  .sender-dot {
    display: none;
  }
}