.table-responsive {
    max-height: 500px;
    overflow-y: auto;
}

.search-box {
    max-width: 300px;
}

.icon-header {
    margin-right: 8px;
}

/* Custom CSS for toast */
.toast {
    max-width: 300px; /* Smaller width */
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    background-color: #fff;
    overflow: hidden;
    transition: transform 0.2s ease, opacity 0.2s ease;
    font-size: 0.9rem; /* Smaller font */
}

.toast-header {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--header-start), var(--header-end));
    color: #fff;
    font-weight: 500;
}

.toast-body {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    line-height: 1.4;
    color: #fff; /* White message text */
    background-color: rgba(0, 0, 0, 0.05); /* Slight background tint for contrast */
}

.toast-icon {
    margin-right: 0.5rem;
    font-size: 1rem; /* Smaller icon */
}

.toast-container {
    z-index: 9999;
}

/* Success styling */
.text-bg-success .toast-header {
    --header-start: #2ecc71;
    --header-end: #27ae60;
}

.text-bg-success .toast-body {
    background-color: rgba(46, 204, 113, 0.1); /* Light success tint */
}

/* Error styling */
.text-bg-danger .toast-header {
    --header-start: #e74c3c;
    --header-end: #c0392b;
}

.text-bg-danger .toast-body {
    background-color: rgba(231, 76, 60, 0.1); /* Light error tint */
}

/* Warning styling */
.text-bg-warning .toast-header {
    --header-start: #f1c40f;
    --header-end: #e67e22;
    color: #2c3e50;
}

.text-bg-warning .toast-body {
    background-color: rgba(241, 196, 15, 0.1); /* Light warning tint */
}

.btn-close {
    filter: brightness(200%);
    width: 0.5em;
    height: 0.5em;
}

.toast:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* Fade-in animation */
.toast.show {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}