:root {
    --primary: #6c5ce7;
    --primary-glow: #a29bfe;
    --secondary: #00cec9;
    --danger: #ff7675;
    --bg-dark: #0f172a;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

.blob-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 20% 30%, rgba(108, 92, 231, 0.15) 0%, transparent 40%),
                radial-gradient(circle at 80% 70%, rgba(0, 206, 201, 0.1) 0%, transparent 40%);
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-glow);
}

.logo i {
    font-size: 1.8rem;
    color: var(--primary);
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

nav a:hover, nav a.active {
    color: var(--primary-glow);
}

/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: 4rem;
}

h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 0%, #a29bfe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-section p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

/* Glass Cards */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Email Card */
.email-card {
    max-width: 700px;
    margin: 0 auto 2rem;
}

.email-display-container {
    margin-bottom: 2rem;
    text-align: left;
}

.email-display-container label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.email-input-group {
    display: flex;
    gap: 1rem;
}

#temp-email {
    flex-grow: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
    outline: none;
    transition: var(--transition);
}

#temp-email:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.2);
}

#copy-btn, #qr-btn {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 0 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#qr-btn {
    background: var(--secondary);
    color: var(--bg-dark);
}

#copy-btn:hover, #qr-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px -4px rgba(108, 92, 231, 0.4);
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.btn.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn.danger {
    background: rgba(255, 118, 117, 0.1);
    color: var(--danger);
}

.btn.danger:hover {
    background: rgba(255, 118, 117, 0.2);
    transform: translateY(-2px);
}

/* Timer Display */
.timer-display {
    max-width: 300px;
    margin: 0 auto;
    padding: 1.5rem;
}

#countdown {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary);
    font-family: var(--font-heading);
}

.timer-display p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

#progress-fill {
    height: 100%;
    background: var(--secondary);
    width: 100%;
    transition: width 1s linear;
}

/* Inbox Section */
.inbox-section {
    margin-top: 2rem;
}

.inbox-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.inbox-header h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
}

#status-indicator {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#status-indicator.online::before {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--secondary);
    border-radius: 50%;
    display: inline-block;
}

#inbox-container {
    min-height: 300px;
    padding: 0;
    overflow: hidden;
}

.empty-inbox {
    padding: 4rem;
    text-align: center;
    color: var(--text-secondary);
}

.empty-inbox i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

/* Message List Items */
.message-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2rem;
    border-bottom: 1px solid var(--glass-border);
    cursor: pointer;
    transition: var(--transition);
}

.message-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.message-item:last-child {
    border-bottom: none;
}

.msg-details {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.msg-from {
    font-weight: 600;
    font-size: 1.1rem;
}

.msg-subject {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.msg-time {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Footer */
footer {
    margin-top: auto;
    padding-top: 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-info .small {
    font-size: 0.8rem;
    opacity: 0.6;
}

footer .links a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-left: 1.5rem;
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    padding: 2rem;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    max-width: 500px;
    width: 100%;
}

.modal-content.small {
    max-width: 350px;
    text-align: center;
}

.modal-content.wide {
    max-width: 800px;
}

.qr-container {
    background: white;
    padding: 1rem;
    border-radius: 12px;
    margin: 1.5rem 0;
}

.qr-container img {
    width: 100%;
    display: block;
}

/* Email Viewer Actions */
.email-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 1.5rem;
}

.btn-icon {
    background: none;
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    margin-left: 0.5rem;
    transition: var(--transition);
}

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

.email-body {
    background: rgba(255, 255, 255, 0.95);
    color: #1e293b;
    padding: 2rem;
    border-radius: 12px;
    min-height: 200px;
    max-height: 400px;
    overflow-y: auto;
}

@media (max-width: 768px) {
    .container { padding: 1rem; }
    h1 { font-size: 2rem; }
    header { margin-bottom: 2rem; }
    .email-input-group { flex-direction: column; }
    #copy-btn, #qr-btn { padding: 1rem; justify-content: center; }
    footer { flex-direction: column; text-align: center; gap: 1rem; }
}
