/* TempMail 5-Seat Viewer Styles */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    min-height: 100vh;
    position: relative;
    color: #333;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: -1;
}

.background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
}

/* Top Bar */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.top-left {
    display: flex;
    gap: 10px;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.2s;
}

.store-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.top-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 28px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    color: white;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.premium-btn {
    padding: 8px 20px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
    box-shadow: 0 4px 12px rgba(245, 87, 108, 0.3);
}

.premium-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(245, 87, 108, 0.4);
}

/* Container */
.container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Email Card */
.email-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.card-title {
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 25px;
}

/* Email Display */
.email-display {
    margin-bottom: 25px;
}

.email-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 30px;
    padding: 15px 25px;
}

#current-email {
    font-size: 18px;
    font-weight: 500;
    color: #667eea;
    letter-spacing: 0.5px;
}

.email-actions {
    display: flex;
    gap: 10px;
}

.icon-btn {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: #667eea;
}

.icon-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
}

/* Mailbox Selector */
.mailbox-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.mailbox-btn {
    flex: 1;
    min-width: 100px;
    padding: 12px 20px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s;
}

.mailbox-btn:hover {
    background: #e9ecef;
    border-color: #667eea;
}

.mailbox-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Inbox Panel */
.inbox-panel {
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
}

.inbox-header {
    display: grid;
    grid-template-columns: 2fr 3fr 100px;
    gap: 15px;
    background: #2c3e50;
    color: white;
    padding: 15px 20px;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.header-col-action {
    text-align: center;
}

#inbox-body {
    min-height: 200px;
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #adb5bd;
}

.empty-icon {
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #6c757d;
}

.empty-state p {
    font-size: 14px;
}

/* Loading dots animation */
.loading-dots::after {
    content: '.';
    animation: dots 1.5s steps(3, end) infinite;
}

@keyframes dots {
    0%, 20% {
        content: '.';
    }
    40% {
        content: '..';
    }
    60%, 100% {
        content: '...';
    }
}

/* Email Row */
.email-row {
    display: grid;
    grid-template-columns: 2fr 3fr 100px;
    gap: 15px;
    padding: 15px 20px;
    background: white;
    border-bottom: 1px solid #e9ecef;
    align-items: center;
    transition: background 0.2s;
}

.email-row:hover {
    background: #f8f9fa;
}

.email-sender {
    font-weight: 500;
    color: #495057;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.email-subject {
    color: #6c757d;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.email-action {
    text-align: center;
}

.view-btn {
    padding: 8px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.view-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Copy notification */
.copy-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 1000;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .top-bar {
        padding: 10px 15px;
    }
    
    .top-left {
        display: none;
    }
    
    .logo-text {
        font-size: 18px;
    }
    
    .email-card {
        padding: 25px 20px;
    }
    
    .card-title {
        font-size: 20px;
    }
    
    .email-pill {
        padding: 12px 15px;
    }
    
    #current-email {
        font-size: 14px;
    }
    
    .mailbox-selector {
        gap: 8px;
    }
    
    .mailbox-btn {
        min-width: auto;
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .inbox-header {
        grid-template-columns: 1.5fr 2fr 80px;
        gap: 10px;
        padding: 12px 15px;
        font-size: 11px;
    }
    
    .email-row {
        grid-template-columns: 1.5fr 2fr 80px;
        gap: 10px;
        padding: 12px 15px;
        font-size: 13px;
    }
    
    .view-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}
