* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
}

body {
    background-color: #f6f8f9; /* Light background for the page bottom */
    color: #1a1d20;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 1. Header Section (Dark Theme) */
.container {
    width: 100%;
    background-color: #212529; /* Dark grey/black from the image */
    padding: 40px 20px 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

header h1 {
    font-size: 1.8rem;
    color: #00f59b; /* Bright green brand accent color */
    margin-bottom: 30px;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

header p {
    color: #9ba4b0;
    font-size: 0.95rem;
    max-width: 500px;
    margin-top: 20px;
    line-height: 1.5;
}

/* 2. Email Address Display Box */
.email-box {
    display: flex;
    background: #2b3035; /* Dark background card */
    border: 1px dashed #495057; /* Dashed border design */
    border-radius: 10px;
    padding: 15px 25px;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 520px;
    margin-bottom: 10px;
}

.email-address {
    font-size: 1.2rem;
    font-family: monospace; /* Clean tech font for the email address */
    color: #ffffff;
    word-break: break-all;
    font-weight: 500;
}

/* Copy Icon Container in the box */
.email-box .actions button {
    background: #00f59b;
    color: #212529;
    border-radius: 50%; /* Circle green button */
    width: 42px;
    height: 42px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.email-box .actions button:hover {
    background: #00d485;
    transform: scale(1.05);
}


/* 3. Navigation Actions (White/Grey pill buttons below the dark area) */
.action-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    background: #ffffff;
    width: 100%;
    padding: 20px 0;
    border-bottom: 1px solid #e9ecef;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.action-nav button {
    background: #f8f9fa;
    color: #212529;
    border: 1px solid #dee2e6;
    border-radius: 30px; /* Pill shape design */
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.action-nav button:hover {
    background: #e9ecef;
    border-color: #ced4da;
    transform: none;
}


/* 4. Inbox Section (White Theme) */
.inbox-section {
    width: 100%;
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
    flex: 1;
}

.inbox-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.inbox-header h2 {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #495057;
}

.refresh-indicator {
    font-size: 0.85rem;
    color: #868e96;
}

/* Mail Table Container */
.mail-list {
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Empty State */
.no-mail {
    text-align: center;
    padding: 80px 20px;
    color: #adb5bd;
    font-size: 0.95rem;
}

/* Mail row list design resembling a professional table */
.mail-item {
    display: grid;
    grid-template-columns: 1fr 2fr 80px;
    border-bottom: 1px solid #e9ecef;
    padding: 18px 24px;
    cursor: pointer;
    align-items: center;
    transition: background-color 0.15s;
}

.mail-item:last-child {
    border-bottom: none;
}

.mail-item:hover {
    background-color: #f8f9fa;
}

.mail-meta {
    font-weight: 600;
    color: #212529;
    font-size: 0.9rem;
}

.mail-subject {
    color: #495057;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 20px;
}

.mail-preview {
    color: #00c875; /* Teal green text action link */
    font-size: 0.85rem;
    font-weight: bold;
    text-align: right;
}

/* Modal setup */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(33, 37, 41, 0.6);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
    padding: 20px;
    z-index: 1000;
}

.modal-content {
    background: #ffffff;
    border-radius: 12px;
    width: 100%;
    max-width: 650px;
    padding: 30px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.modal-content h3 {
    color: #212529;
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.modal-meta-text {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 15px;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: #adb5bd;
    font-size: 1.8rem;
    cursor: pointer;
}

.close-btn:hover {
    color: #495057;
}

.mail-body-content {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    max-height: 350px;
    overflow-y: auto;
    color: #343a40;
    line-height: 1.6;
}
/* Center and contain Google Ads smoothly */
.ad-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px auto;
    width: 90%;
    max-width: 728px;
    background-color: #ffffff; /* Clean white block background */
    border: 1px solid #e9ecef;
    border-radius: 8px;
    min-height: 90px; /* Standard horizontal ad height */
    overflow: hidden;
    position: relative;
}

/* Optional sub-label to keep your layout Google-compliant */
.ad-container::before {
    content: "SPONSORED";
    position: absolute;
    top: 2px;
    left: 8px;
    font-size: 0.65rem;
    color: #ced4da;
    letter-spacing: 0.5px;
    font-weight: bold;
}
/* Sidebar Ad Styling */
.side-ad-container {
    position: fixed;
    top: 180px;        /* Keeps it clean and vertically aligned */
    right: 30px;       /* Floats it on the far right edge of the screen */
    width: 160px;      /* Standard vertical skyscraper width */
    height: 600px;
    z-index: 99;       /* Ensures it stays above the background */
}

/* Hide the ad on tablets and mobile screens so it doesn't cover your main UI */
@media (max-width: 1250px) {
    .side-ad-container {
        display: none;
    }
}