:root {
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
    --accent: #00f2fe;
    --danger: #ff5f6d;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-gradient);
    color: var(--text-main);
    height: 100vh;
    overflow: hidden;
}

/* Utilities */
.hidden { display: none !important; }
.glass-card, .glass-panel, .glass-header {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Login Overlay */
.overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.4);
    z-index: 1000;
}

.login-card {
    padding: 40px;
    text-align: center;
    width: 350px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.login-card input {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    background: rgba(255,255,255,0.05);
    color: white;
    outline: none;
}

.login-card button {
    padding: 12px;
    border-radius: 8px;
    border: none;
    background: var(--accent);
    color: #333;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
}

.login-card button:hover {
    transform: scale(1.05);
}

/* Dashboard Layout */
.dashboard {
    display: flex;
    height: 100vh;
    padding: 20px;
    gap: 20px;
}

.sidebar {
    width: 280px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.logo {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 1px;
}

.btn-primary {
    width: 100%;
    padding: 12px;
    background: linear-gradient(90deg, #00f2fe 0%, #4facfe 100%);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.alias-box {
    margin-top: 10px;
    padding: 10px;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    font-family: monospace;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
    transition: background 0.2s;
}

.alias-box:hover {
    background: rgba(0,0,0,0.3);
}

nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

nav li {
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    transition: background 0.2s;
}

nav li:hover, nav li.active {
    background: rgba(255,255,255,0.1);
}

/* Content Area */
.content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.glass-header {
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.refresh-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
}

.inbox-container {
    flex: 1;
    display: flex;
    gap: 15px;
    overflow: hidden; /* For scrolling inside */
}

/* Email List */
.email-list {
    flex: 4;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.email-item {
    padding: 15px;
    border-bottom: 1px solid var(--glass-border);
    cursor: pointer;
    transition: background 0.2s;
}

.email-item:hover, .email-item.selected {
    background: rgba(255,255,255,0.05);
}

.email-subject { font-weight: 600; margin-bottom: 5px; }
.email-sender { font-size: 13px; color: var(--text-muted); display: flex; justify-content: space-between;}
.email-snippet { font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Email View */
.email-view {
    flex: 6;
    padding: 20px;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.95); /* Light bg for reading */
    color: #333; /* Dark text for reading */
}

.empty-state, .empty-view {
    padding: 40px;
    text-align: center;
    color: var(--text-muted);
}
.empty-view { color: #888; }
