/* Avifo Staff Selector Styles */

.avifo-staff-selector {
    background: linear-gradient(135deg, #f5f7fa 0%, #f0f4f8 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.avifo-staff-selector-header {
    margin-bottom: 16px;
}

.avifo-staff-selector-header label {
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
}

.avifo-staff-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}

.avifo-staff-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 12px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #4a5568;
}

.avifo-staff-btn:hover {
    border-color: #cbd5e1;
    background: #f7fafc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.avifo-staff-btn.selected {
    background: #2563eb;
    border-color: #2563eb;
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.avifo-staff-btn-photo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    background: #e2e8f0;
}

.avifo-staff-btn-name {
    font-weight: 600;
    font-size: 13px;
    line-height: 1.2;
}

.avifo-staff-btn-type {
    font-size: 11px;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.avifo-staff-btn.selected .avifo-staff-btn-type {
    opacity: 1;
}

/* Staff Dropdown (voor >4 medewerkers) */
.avifo-staff-dropdown {
    position: relative;
}

.avifo-staff-dropdown-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 12px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
    color: #4a5568;
    gap: 8px;
}

.avifo-staff-dropdown-toggle:hover {
    border-color: #cbd5e1;
    background: #f7fafc;
}

.avifo-staff-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 100;
    margin-top: 8px;
    max-height: 300px;
    overflow-y: auto;
}

.avifo-staff-dropdown-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: background 0.15s ease;
    gap: 12px;
}

.avifo-staff-dropdown-item:hover {
    background: #f7fafc;
}

.avifo-staff-dropdown-item:last-child {
    border-bottom: none;
}

.avifo-staff-dropdown-item-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: #e2e8f0;
}

.avifo-staff-dropdown-item-info {
    flex: 1;
}

.avifo-staff-dropdown-item-name {
    font-weight: 600;
    font-size: 14px;
    color: #1a202c;
}

.avifo-staff-dropdown-item-type {
    font-size: 12px;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.2px;
}

/* Admin Dashboard Staff Toewijzing */
.avifo-staff-assign-btn {
    background: #8b5cf6;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.avifo-staff-assign-btn:hover {
    background: #7c3aed;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(123, 58, 237, 0.3);
}

.avifo-staff-assign-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.avifo-staff-assign-modal.show {
    display: flex;
}

.avifo-staff-assign-modal-content {
    background: white;
    border-radius: 12px;
    padding: 24px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15);
}

.avifo-staff-assign-modal-header {
    margin-bottom: 16px;
}

.avifo-staff-assign-modal-header h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1a202c;
}

.avifo-staff-assign-modal-body {
    margin-bottom: 20px;
}

.avifo-staff-assign-list {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    max-height: 300px;
    overflow-y: auto;
}

.avifo-staff-assign-item {
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
    cursor: pointer;
    transition: background 0.15s ease;
    font-size: 14px;
}

.avifo-staff-assign-item:hover {
    background: #f7fafc;
}

.avifo-staff-assign-item:last-child {
    border-bottom: none;
}

.avifo-staff-assign-item.selected {
    background: #dbeafe;
    color: #2563eb;
    font-weight: 600;
}

.avifo-staff-assign-modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.avifo-staff-assign-modal-footer button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.avifo-staff-assign-modal-footer .btn-primary {
    background: #2563eb;
    color: white;
}

.avifo-staff-assign-modal-footer .btn-primary:hover {
    background: #1d4ed8;
}

.avifo-staff-assign-modal-footer .btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
}

.avifo-staff-assign-modal-footer .btn-secondary:hover {
    background: #cbd5e1;
}

/* Responsive */
@media (max-width: 768px) {
    .avifo-staff-buttons {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .avifo-staff-btn {
        padding: 12px 8px;
        font-size: 12px;
    }

    .avifo-staff-btn-photo {
        width: 40px;
        height: 40px;
    }
}
