/* Invites styles for new preferencesPoll page */

.invites-section {
    padding: 20px 0;
}

.invite-line {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    position: relative;
}

.invite-line-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.invite-line-number {
    font-weight: 600;
    color: #495057;
}

.invite-line-actions {
    display: flex;
    gap: 8px;
}

.invite-fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 768px) {
    .invite-fields {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.invite-field {
    position: relative;
}

.invite-field.full-width {
    grid-column: 1 / -1;
}

.invite-field label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #495057;
    margin-bottom: 4px;
    display: block;
}

.invite-field input {
    width: 100%;
}

/* Contact Search Dropdown */
.contact-search-container {
    position: relative;
}

.contact-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 2px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: none;
}

.contact-search-results.show {
    display: block;
}

.contact-search-item {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.15s;
}

.contact-search-item:hover {
    background-color: #f8f9fa;
}

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

.contact-search-item-name {
    font-weight: 600;
    color: #212529;
}

.contact-search-item-details {
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 2px;
}

.contact-search-item-details i {
    margin-right: 4px;
}

/* Recently Used Contacts */
.recent-contacts-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
}

.recent-contact-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
}

.recent-contact-badge:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.recent-contact-badge i {
    margin-left: 6px;
    color: #6c757d;
}

/* Invite Type Badge */
.invite-type-badge {
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 3px;
    background: #e7f3ff;
    color: #0066cc;
    margin-left: 8px;
}

/* No Results Message */
.contact-search-no-results {
    padding: 15px;
    text-align: center;
}

.no-results-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.875rem;
    color: #6c757d;
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 6px;
    border: 1px dashed #dee2e6;
}

.no-results-message i {
    color: #28a745;
    font-size: 1rem;
}

.no-results-message i.fa-user-times {
    color: #dc3545;
}

.no-results-message i.fa-envelope-plus,
.no-results-message i.fa-user-plus {
    color: #28a745;
}

