/* Invite Modal Styles - angepasst an bestehendes Design */
#invite-modal .modal-card {
    width: 90%;
    max-width: 600px;
    background-color: #333;
    color: white;
}

#invite-modal .modal-card-head {
    background-color: #333;
    border-bottom: 2px solid #C0392B;
}

#invite-modal .modal-card-title {
    color: white;
    font-family: 'Titillium Web', sans-serif;
    font-size: 1.5rem;
}

#invite-modal .modal-card-body {
    background-color: #333;
    color: white;
}

#invite-modal .modal-card-foot {
    background-color: #333;
    border-top: 2px solid #C0392B;
    justify-content: space-between;
}

#invite-modal .label {
    color: white;
    font-family: 'Open Sans', Arial, sans-serif;
}

#invite-modal .input {
    background-color: #252525;
    border: 2px solid #C0392B;
    color: white;
}

#invite-modal .input:focus {
    border-color: #C0392B !important;
    box-shadow: 0 0 0 0.125em #C0392B;
    background-color: #252525;
    color: white;
}

#invite-modal .input::placeholder {
    color: #bbb;
}

#invite-modal .icon {
    color: #C0392B;
}

.user-list {
    max-height: 400px;
    overflow-y: auto;
    border: 2px solid #C0392B;
    border-radius: 10px;
    padding: 0.5rem;
    background-color: #252525;
}

.user-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    border-bottom: 1px solid #555;
    transition: background-color 0.2s;
    color: white;
}

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

.user-item:hover {
    background-color: #404040;
}

.user-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.user-info strong {
    margin-bottom: 0.25rem;
    color: white;
}

.user-info small {
    font-size: 0.85em;
    color: #a0a0a0 !important;
}

.user-item .button {
    background-color: #C0392B;
    color: white;
    border: 2px solid #C0392B;
    border-radius: 6px;
    font-family: 'Open Sans', Arial, sans-serif;
}

.user-item .button:hover {
    background-color: #a0321f;
    border-color: #a0321f;
}

.user-item .button.is-success {
    background-color: #27ae60;
    border-color: #27ae60;
}

.user-item .button.is-success:hover {
    background-color: #219a52;
    border-color: #219a52;
}

.selected-users {
    border-top: 2px solid #C0392B;
    padding-top: 1rem;
    margin-top: 1rem;
}

.selected-users .tags {
    margin-top: 0.5rem;
}

.selected-users .tag {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    background-color: #C0392B;
    color: white;
    border-radius: 6px;
}

.selected-users .tag .delete {
    background-color: rgb(255 255 255 / 20%);
}

.selected-users .tag .delete:hover {
    background-color: rgb(255 255 255 / 40%);
}

#invite-modal .button.is-success {
    width: auto;
    background-color: #C0392B;
    border-color: #C0392B;
    color: white;
    border-radius: 6px;
    font-family: 'Open Sans', Arial, sans-serif;
}

#invite-modal .button.is-success:hover {
    background-color: #a0321f;
    border-color: #a0321f;
}

#invite-modal .button.is-success:disabled {
    background-color: #666;
    border-color: #666;
    color: #999;
}

#invite-modal .button:not(.is-success) {
    width: auto;
    background-color: #37414e;
    color: white;
    border: 2px solid #C0392B;
    border-radius: 6px;
    font-family: 'Open Sans', Arial, sans-serif;
}

#invite-modal .button:not(.is-success):hover {
    background-color: #404040;
}

#invite-modal .button.is-info {
    background-color: #3498db;
    border-color: #3498db;
    color: white;
    border-radius: 6px;
    font-family: 'Open Sans', Arial, sans-serif;
}

#invite-modal .button.is-info:hover {
    background-color: #2980b9;
    border-color: #2980b9;
}

#invite-modal .help {
    color: #bbb;
    font-size: 0.9em;
    margin-top: 0.25rem;
}

.selected-users .tag.is-info {
    background-color: #3498db;
    color: white;
}

#invite-modal .notification.is-danger {
    background-color: #e74c3c;
    color: white;
}

/* Responsive */
@media screen and (width <= 768px) {
    #invite-modal .modal-card {
        width: 95%;
        margin: 1rem;
    }
    
    .user-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .user-item button {
        align-self: flex-end;
    }
}
