/* Modal specific styles */
.modal {
    display: block !important; /* Needed for the fade animation to work with HTMX */
    opacity: 0;
    pointer-events: none;
}

.modal.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-backdrop {
    opacity: 0;
}

.modal-backdrop.show {
    opacity: 0.5;
}

/* Transition effects */
.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
    transform: translate(0, -50px);
}

.modal.show .modal-dialog {
    transform: translate(0, 0);
}

/* Client Management Specific Styles */
.client-type-badge {
    font-size: 0.8rem;
    margin-right: 0.3rem;
}

.sidebar {
    background-color: #f8f9fa;
    border-right: 1px solid #dee2e6;
    height: calc(100vh - 56px);
    padding-top: 1rem;
}

.main-content {
    padding: 2rem;
}

/* Table enhancements */
.table-hover tbody tr {
    transition: background-color 0.2s ease;
}

/* Modal form styling */
.modal-content {
    border-radius: 0.5rem;
}

.form-switch .form-check-input {
    width: 2.5em;
    height: 1.5em;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sidebar {
        height: auto;
        border-right: none;
        border-bottom: 1px solid #dee2e6;
    }
    
    .filter-switches {
        margin-top: 1rem;
    }
}