/* Custom styling and animation enhancements */

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

.animate-fade-in {
    animation: fadeIn 0.18s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Custom scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Form input focus styles */
input:focus, select:focus, textarea:focus {
    outline: none;
}

/* Dropdown Shadow & Positioning */
.action-dropdown, #presetDropdownMenu {
    box-shadow: 0 12px 30px -5px rgba(0, 0, 0, 0.12), 0 8px 12px -6px rgba(0, 0, 0, 0.08);
    transform-origin: top right;
}

/* Custom date input styling */
input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    filter: invert(0.3);
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
    filter: invert(0.1);
}

/* Login backdrop blur */
#loginPortalView {
    backdrop-filter: blur(8px);
}

/* Table Text Wrap Rules */
table td {
    vertical-align: middle;
}
