:root {
    --primary-bg: #2b343b;      /* Dark Header Background */
    --secondary-bg: #354048;    /* Slightly lighter dark for Navbar */
    --accent-color: #00bfa5;    /* Teal/Green Accent */
    --accent-hover: #009688;
    --text-white: #ffffff;
    --text-dark: #333333;
    --text-muted: #777777;
    --bg-light: #f4f6f7;        /* Main body background */
    --border-color: #e0e0e0;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    margin: 0;
    background-color: var(--bg-light);
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* CONTAINER */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

/* NAVBAR */
.navbar {
    background-color: var(--secondary-bg);
    color: var(--text-white);
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: 700;
}

.logo-icon {
    width: 28px;
    height: 28px;
    margin-right: 10px;
    fill: var(--accent-color);
}

.nav-links a {
    color: #b0bec5;
    text-decoration: none;
    margin-left: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-white);
}

/* HERO SECTION */
.hero {
    background-color: var(--primary-bg);
    padding: 60px 0 80px;
    text-align: center;
    color: var(--text-white);
}

.email-box-wrapper {
    background: rgba(255,255,255,0.1);
    padding: 30px;
    border-radius: 8px;
    max-width: 800px;
    margin: 0 auto 20px;
    backdrop-filter: blur(5px);
}

/* Email Input Area */
.email-input-container {
    display: flex;
    background: #fff;
    border-radius: 50px;
    padding: 5px;
    margin-bottom: 25px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

#address-display {
    flex: 1;
    border: none;
    font-size: 24px;
    padding: 15px 20px;
    color: #444;
    outline: none;
    background: transparent;
    font-family: monospace; /* Looks more like technical data */
    font-weight: bold;
}

.copy-btn {
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0 30px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background 0.3s;
}

.copy-btn svg {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    fill: currentColor;
}

.copy-btn:hover {
    background-color: var(--accent-hover);
}

/* Action Buttons Row */
.actions-row {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.action-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #ddd;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: 14px;
    transition: all 0.3s;
}

.action-btn svg {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    fill: currentColor;
}

.action-btn:hover {
    background: rgba(255,255,255,0.2);
    color: white;
}

.action-btn.delete:hover {
    background: rgba(244, 67, 54, 0.2);
    color: #ff8a80;
    border-color: #ff8a80;
}

.expiry-text {
    font-size: 14px;
    color: #90a4ae;
    margin-top: 10px;
}

/* MAIN CONTENT */
.main-content {
    flex: 1;
    margin-top: -40px; /* Overlap effect */
    padding-bottom: 60px;
}

/* INBOX */
.inbox-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
    margin-bottom: 40px;
    min-height: 300px;
}

.inbox-header {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.inbox-header h2 {
    margin: 0;
    font-size: 18px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
}

.inbox-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    fill: var(--text-muted);
}

.refresh-hint {
    font-size: 12px;
    color: #999;
    animation: blink 2s infinite;
}

@keyframes blink { 50% { opacity: 0.5; } }

/* Inbox List */
.inbox-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.empty-state {
    padding: 60px;
    text-align: center;
    color: var(--text-muted);
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--accent-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Email Items (When added by JS) */
.email-item {
    border-bottom: 1px solid #f0f0f0;
    padding: 15px 20px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    justify-content: space-between;
}
.email-item:hover { background: #f9f9f9; }
.email-sender { font-weight: bold; color: #333; }
.email-subject { color: #555; }
.email-body { display: none; padding: 20px; background: #fafafa; border-bottom: 1px solid #ddd; }
.email-item.open .email-body { display: block; }

/* INFO GRID (SEO Text) */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.info-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.info-card h3 {
    color: var(--primary-bg);
    margin-top: 0;
    font-size: 18px;
}

.info-card p, .info-card li {
    color: #666;
    line-height: 1.6;
    font-size: 14px;
}

.info-card ul {
    list-style: none;
    padding: 0;
}

/* FOOTER */
footer {
    background: #fff;
    border-top: 1px solid var(--border-color);
    text-align: center;
    padding: 30px;
    color: #999;
    font-size: 13px;
}

/* RESPONSIVE */
@media (max-width: 600px) {
    .email-input-container {
        flex-direction: column;
        border-radius: 8px;
        background: transparent;
        box-shadow: none;
    }
    #address-display {
        background: white;
        border-radius: 4px;
        margin-bottom: 10px;
        text-align: center;
        width: 100%;
        box-sizing: border-box;
    }
    .copy-btn {
        width: 100%;
        justify-content: center;
        padding: 12px;
    }
}