﻿.modal-backdrop {
    display : none;

}

.modal.show {
    display: block !important;
    overflow-x: hidden;
    overflow-y: auto;
}

body.modal-open {
    overflow: hidden;
    padding-right: 0 !important;
}

.user-card {
    transition: all 0.3s ease;
    height: 220px;
    display: flex;
    flex-direction: column;
}

.card-header {
    padding: 0.5rem 0.75rem;
    min-height: 40px;
}

    .card-header h5 {
        font-size: 0.85rem;
        margin: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.2;
    }

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.avatar-wrapper {
    margin: 0 auto 0.25rem;
}

.avatar-img, .avatar-placeholder {
    width: 50px;
    height: 50px;
    border: 2px solid #fff;
    box-shadow: 0 0.15rem 0.3rem rgba(0, 0, 0, 0.1);
}

.avatar-placeholder {
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .avatar-placeholder i {
        font-size: 1.5rem;
        color: #6c757d;
    }

.user-info h6 {
    font-size: 0.75rem;
    margin-bottom: 0.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-info p {
    font-size: 0.65rem;
    margin-bottom: 0.25rem;
    color: #6c757d;
}

.card-actions {
    margin-top: auto;
    padding-top: 0.25rem;
    display: flex;
    justify-content: center;
    gap: 0.25rem;
}

    .card-actions .btn {
        padding: 0.15rem 0.35rem;
        font-size: 0.65rem;
        border-radius: 0.25rem;
    }

.badge {
    font-size: 0.6rem;
    padding: 0.2em 0.35em;
}

.user-card.deactivated {
    opacity: 0.6;
    filter: grayscale(20%);
}

    .user-card.deactivated .card-header {
        background: linear-gradient(135deg, #9e9e9e, #616161) !important;
    }

#usersContainer {
    max-height: calc(100vh - 150px);
    overflow-y: auto;
}

.btn-primary {
    background-color: #4e73df;
    border-color: #4e73df;
}

    .btn-primary:hover {
        background-color: #2e59d9;
        border-color: #2653d4;
    }

.modal-content {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.3);
}

.ltr-direction {
    direction: ltr;
    text-align: left;
    font-size: 0.875rem;
    border-right: 0;
}

.toggle-password {
    border-top-left-radius: 0.25rem;
    border-bottom-left-radius: 0.25rem;
    border-left: 1px solid #ced4da !important;
    padding: 0.25rem 0.5rem;
}

.input-group-sm .form-control.ltr-direction {
    border-top-right-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;
    border-right: 1px solid #ced4da;
    padding: 0.25rem 0.5rem;
}

.input-group-sm > .form-control:not(textarea) {
    height: calc(1.5em + 0.5rem + 2px);
}