/* Custom Dialog Styles */
.custom-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.custom-dialog {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    animation: dialogSlideIn 0.3s ease-out;
}

@keyframes dialogSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.custom-dialog-header {
    padding: 20px 20px 0 20px;
    border-bottom: 1px solid #e9ecef;
}

.custom-dialog-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.custom-dialog-body {
    padding: 20px;
    color: #666;
    line-height: 1.5;
}

.custom-dialog-footer {
    padding: 0 20px 20px 20px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.custom-dialog-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.custom-dialog-btn-primary {
    background: #007bff;
    color: white;
}

.custom-dialog-btn-primary:hover {
    background: #0056b3;
}

.custom-dialog-btn-secondary {
    background: #6c757d;
    color: white;
}

.custom-dialog-btn-secondary:hover {
    background: #545b62;
}

.custom-dialog-btn-danger {
    background: #dc3545;
    color: white;
}

.custom-dialog-btn-danger:hover {
    background: #c82333;
}

.custom-dialog-btn-success {
    background: #28a745;
    color: white;
}

.custom-dialog-btn-success:hover {
    background: #1e7e34;
}

.custom-dialog-btn-warning {
    background: #ffc107;
    color: #212529;
}

.custom-dialog-btn-warning:hover {
    background: #e0a800;
}

/* Password Visibility Toggle Buttons */
.input-group .btn-outline-secondary {
    border-left: none !important;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border: 1px solid #ced4da !important;
    border-left: none !important;
    background-color: #fff !important;
    color: #6c757d !important;
    padding: 0.375rem 0.75rem !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
    border-radius: 0 0.375rem 0.375rem 0 !important;
}

.input-group .btn-outline-secondary:hover {
    background-color: #e9ecef !important;
    border-color: #ced4da !important;
    color: #495057 !important;
}

.input-group .btn-outline-secondary:focus {
    box-shadow: 0 0 0 0.2rem rgba(108, 117, 125, 0.25) !important;
    border-color: #ced4da !important;
}

/* Only apply to password input groups (settings page) */
.input-group.password-input-group .form-control {
    border-right: none !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.input-group.password-input-group .form-control:focus {
    border-right: none !important;
    box-shadow: none !important;
}

.input-group.password-input-group .form-control:focus + .btn-outline-secondary {
    border-color: #86b7fe !important;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25) !important;
}

/* Ensure Bootstrap Icons are visible - only for specific contexts */
.input-group .bi {
    display: inline-block !important;
    font-size: 16px !important;
    line-height: 1 !important;
}

.input-group .bi-eye, .input-group .bi-eye-slash {
    font-size: 14px !important;
    color: #6c757d !important;
}

/* Force input group styling */
.input-group > .btn {
    position: relative !important;
    z-index: 2 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 40px !important;
}

/* Pagination Styles */
.pagination {
    margin-bottom: 0 !important;
}

.pagination .page-link {
    color: #007bff;
    border: 1px solid #dee2e6;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}

.pagination .page-link:hover {
    color: #0056b3;
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.pagination .page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
    color: #fff;
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    background-color: #fff;
    border-color: #dee2e6;
}

/* Hide any duplicate pagination elements */
.pagination + .pagination {
    display: none !important;
}

/* Ensure clean pagination spacing */
.pagination-wrapper {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #dee2e6;
}

 