body {
    margin: 0;
    font-family: Arial;
    background: #0f172a;
    color: white;
  }
  
  .container {
    max-width: 700px;
    margin: auto;
    padding: 20px;
  }
  
  .top-box {
    background: #1e293b;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
  }
  
  .email-bar {
    display: flex;
    margin-top: 10px;
  }
  
  .email-bar input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 6px 0 0 6px;
  }
  
  .email-bar .btn.is-success {
    background: #16a34a;
  }

  @keyframes copy-btn-pulse {
    0% {
      transform: scale(1);
      box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.45);
    }
    55% {
      transform: scale(1.07);
      box-shadow: 0 0 0 8px rgba(22, 163, 74, 0);
    }
    100% {
      transform: scale(1);
      box-shadow: 0 0 0 0 rgba(22, 163, 74, 0);
    }
  }

  .email-bar .btn.is-success.is-copy-pulse {
    animation: copy-btn-pulse 0.42s ease-out;
  }
  
  .actions {
    margin-top: 15px;
  }

  .status-line {
    margin: 10px 0 0;
    font-size: 0.8rem;
    color: #94a3b8;
    line-height: 1.4;
    min-height: 1.2em;
    transition: opacity 0.35s ease;
  }

  .status-poll-hint {
    color: #64748b;
    font-style: italic;
    opacity: 0;
  }

  .status-poll-hint.is-on {
    opacity: 1;
  }

  .status-poll-hint.is-off {
    opacity: 0;
  }

  .status-connection {
    color: #fbbf24;
  }

  .inbox-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35em 0.5em;
    margin-top: 0;
  }

  .new-email-counter {
    font-size: 0.85rem;
    font-weight: 600;
    color: #059669;
  }
  
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 5px;
    padding: 8px 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font: inherit;
    line-height: 1.2;
    transition:
      background-color 0.25s ease,
      color 0.25s ease,
      transform 0.2s ease,
      opacity 0.25s ease,
      box-shadow 0.2s ease;
  }

  .btn:active:not(:disabled) {
    transform: scale(0.97);
  }

  .btn:disabled {
    cursor: not-allowed;
    opacity: 0.85;
  }

  .btn .btn-spinner {
    display: none;
    box-sizing: border-box;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: btn-spin 0.65s linear infinite;
  }

  .btn.is-loading .btn-spinner {
    display: inline-block;
  }

  .btn .btn-label {
    white-space: nowrap;
  }

  @keyframes btn-spin {
    to {
      transform: rotate(360deg);
    }
  }

  .actions .btn:nth-child(1) { background: #3b82f6; color: white; }
  .actions .btn:nth-child(2) { background: #10b981; color: white; }
  .actions .btn:nth-child(3) { background: #ef4444; color: white; }

  .email-bar .btn {
    margin: 0;
    padding: 10px 12px;
    background: #22c55e;
    color: white;
    border-radius: 0 6px 6px 0;
  }
  
  .inbox-box {
    margin-top: 20px;
    background: white;
    color: black;
    padding: 15px;
    border-radius: 10px;
  }
  
  .email-card {
    position: relative;
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
    cursor: pointer;
    transition:
      background-color 0.35s ease,
      box-shadow 0.35s ease,
      border-color 0.35s ease;
  }

  .email-card__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    margin-bottom: 4px;
  }

  .email-card__subject {
    flex: 1 1 auto;
    min-width: 0;
  }

  .email-card__meta small {
    color: #475569;
  }

  .email-badge {
    display: inline-block;
    flex-shrink: 0;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
  }

  .email-badge--new {
    background: #10b981;
    color: #fff;
  }

  .email-card--new {
    background: #ecfdf5;
    box-shadow:
      inset 0 0 0 1px rgba(16, 185, 129, 0.25),
      0 0 12px rgba(16, 185, 129, 0.2);
    border-radius: 6px;
    padding-left: 8px;
    padding-right: 8px;
    margin-left: -4px;
    margin-right: -4px;
  }

  .email-card--read {
    border-left: 3px solid #e2e8f0;
    padding-left: 10px;
    margin-left: -4px;
  }

  @keyframes email-card-fade-in {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .email-card--animate-in {
    animation: email-card-fade-in 0.4s ease forwards;
  }
  
  .email-body {
    display: none;
    margin-top: 8px;
    padding: 10px;
    background: #f1f5f9;
    border-radius: 6px;
    white-space: pre-wrap;
    word-break: break-word;
  }

  .email-body.is-open {
    display: block;
  }

  .inbox-hint,
  .inbox-empty,
  .inbox-expired {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .inbox-box .inbox-hint,
  .inbox-box .inbox-empty,
  .inbox-box .inbox-expired {
    padding: 14px 16px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    max-width: 100%;
    box-sizing: border-box;
  }

  .inbox-box .inbox-hint {
    background: #f8fafc;
    color: #64748b;
  }

  .inbox-box .inbox-empty {
    background: #f1f5f9;
    color: #475569;
    font-weight: 500;
  }

  .inbox-box .inbox-expired {
    background: #fffbeb;
    border-color: #fcd34d;
    color: #b45309;
    font-weight: 500;
  }

  .footer-admin {
    margin-top: 24px;
    text-align: center;
    font-size: 0.85rem;
  }

  .footer-admin a {
    color: #94a3b8;
  }

  .footer-admin a:hover {
    color: #cbd5e1;
  }

  .admin-nav {
    margin-bottom: 12px;
  }

  .admin-nav a {
    color: #94a3b8;
  }

  .admin-nav a:hover {
    color: #e2e8f0;
  }

  .admin-label {
    display: block;
    margin-top: 12px;
    font-size: 0.9rem;
    color: #cbd5e1;
  }

  .admin-help {
    margin: 8px 0 0;
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1.45;
    text-align: left;
  }

  .admin-email-input {
    width: 100%;
    max-width: 100%;
    margin-top: 8px;
    padding: 10px;
    border-radius: 6px;
    border: none;
    box-sizing: border-box;
  }

  .admin-select {
    width: 100%;
    max-width: 100%;
    margin-top: 8px;
    padding: 10px;
    border-radius: 6px;
    border: none;
    box-sizing: border-box;
  }

  .admin-top .actions {
    margin-top: 16px;
  }

.top-nav {
display: flex;
justify-content: flex-end;
margin-bottom: 10px;
}

.top-login-btn {
background: #6366f1;
color: white;
padding: 6px 12px;
font-size: 0.85rem;
}
