/* Email Selector Modal Styles */
.email-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
}

.email-modal-content {
    background: #1a1a1a;
    margin: 5% auto;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: emailModalSlideIn 0.3s ease-out;
}

@keyframes emailModalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.email-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border-radius: 15px 15px 0 0;
}

.email-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.email-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.email-modal-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.email-modal-body {
    padding: 1.5rem;
}

.email-info, .email-subject {
    margin-bottom: 1rem;
    color: #64748b;
    font-size: 0.9rem;
}

.email-info strong, .email-subject strong {
    color: #1e293b;
    word-break: break-all;
}

.email-clients {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.email-client-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: #2a2a2a;
    color: #f9fafb;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-align: left;
}

.email-client-btn:hover {
    border-color: #6366f1;
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.email-client-btn i {
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.email-client-btn:nth-child(1) i { color: #0078d4; } /* Outlook */
.email-client-btn:nth-child(2) i { color: #ea4335; } /* Gmail */
.email-client-btn:nth-child(3) i { color: #6001d2; } /* Yahoo */
.email-client-btn:nth-child(4) i { color: #0a84ff; } /* Thunderbird */
.email-client-btn:nth-child(5) i { color: #6b7280; } /* Default */
.email-client-btn:nth-child(6) i { color: #059669; } /* Copy */

.copy-btn {
    border-color: #10b981 !important;
    color: #065f46 !important;
}

.copy-btn:hover {
    border-color: #059669 !important;
    background: #ecfdf5 !important;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .email-modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .email-clients {
        grid-template-columns: 1fr;
    }
    
    .email-modal-header {
        padding: 1rem;
    }
    
    .email-modal-body {
        padding: 1rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .email-modal-content {
        background: #1f2937;
        color: #f3f4f6;
    }
    
    .email-modal-header {
        border-bottom-color: #374151;
    }
    
    .email-client-btn {
        background: #374151;
        border-color: #4b5563;
        color: #f3f4f6;
    }
    
    .email-client-btn:hover {
        background: #4b5563;
        border-color: #6366f1;
    }
    
    .email-info, .email-subject {
        color: #9ca3af;
    }
    
    .email-info strong, .email-subject strong {
        color: #f3f4f6;
    }
}
