/* Email Suggestions Styling */
.email-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    display: none;
}

.email-suggestions .suggestion-item {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.email-suggestions .suggestion-item:hover {
    background-color: #f8f9fa;
}

.email-suggestions .suggestion-item:last-child {
    border-bottom: none;
}

/* Dark mode support */
[data-bs-theme="dark"] .email-suggestions {
    background: #212529;
    border-color: #495057;
    color: #fff;
}

[data-bs-theme="dark"] .email-suggestions .suggestion-item {
    border-bottom-color: #495057;
}

[data-bs-theme="dark"] .email-suggestions .suggestion-item:hover {
    background-color: #343a40;
}

/* Ensure input containers are positioned relatively */
.input-group {
    position: relative;
}

/* Style for email input fields with suggestions */
input[type="email"].email-suggestion-input {
    position: relative;
}

/* Loading state for suggestions */
.email-suggestions.loading {
    padding: 12px;
    text-align: center;
    color: #6c757d;
    font-style: italic;
}

.email-suggestions.loading::after {
    content: "Loading suggestions...";
}

/* No suggestions state */
.email-suggestions.no-suggestions {
    padding: 12px;
    text-align: center;
    color: #6c757d;
    font-style: italic;
}

.email-suggestions.no-suggestions::after {
    content: "No suggestions found";
}
