* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
    padding: 30px;
}

h1 {
    color: #333;
    margin-bottom: 5px;
}

.subtitle {
    color: #666;
    font-size: 14px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.inbox-section {
    margin-bottom: 30px;
}

.inbox-section h2 {
    display: inline-block;
    font-size: 18px;
    color: #555;
    margin-right: 15px;
}

.btn-refresh {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
}

.btn-refresh:hover {
    background: #45a049;
}

.email-list {
    margin-top: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.email-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.2s;
}

.email-item:hover {
    background: #f5f5f5;
}

.email-item:last-child {
    border-bottom: none;
}

.email-from {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.email-subject {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

.email-date {
    color: #999;
    font-size: 12px;
}

.loading, .empty {
    padding: 40px;
    text-align: center;
    color: #999;
}

.reply-section {
    border-top: 2px solid #667eea;
    padding-top: 25px;
    margin-top: 10px;
}

.reply-section h2 {
    color: #667eea;
    margin-bottom: 15px;
}

.reply-info {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
}

.reply-subject {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
}

textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
}

.reply-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.btn-send {
    background: #667eea;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
}

.btn-send:hover {
    background: #5a67d8;
}

.btn-cancel {
    background: #e0e0e0;
    color: #333;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
}

.hidden {
    display: none;
}

.status {
    margin-top: 15px;
    padding: 10px;
    border-radius: 8px;
    font-size: 13px;
}

.status.success {
    background: #d4edda;
    color: #155724;
}

.status.error {
    background: #f8d7da;
    color: #721c24;
}