/* This file is not strictly necessary as we're using Tailwind CSS */
/* But we can add any custom styles here if needed */

/* User dropdown menu styles */
#user-dropdown .dropdown-menu {
    transition: opacity 0.2s ease, visibility 0.2s ease;
    opacity: 0;
    visibility: hidden;
    display: block !important;
}

#user-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

/* Add a delay when moving away to give more time to interact */
#user-dropdown .dropdown-menu:hover,
#user-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

/* Add margin to create a larger interactive area */
#user-dropdown .dropdown-menu::before {
    content: '';
    position: absolute;
    top: -16px;
    left: 0;
    right: 0;
    height: 16px;
}

/* Handsontable overrides */
.handsontable .bg-gray-100 {
    background-color: #f3f4f6;
}

.handsontable .editable-cell {
    background-color: #fafafa;
}

/* Custom scrollbar for better UX */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* Focus styles for better accessibility */
button:focus, input:focus, select:focus, textarea:focus {
    outline: 2px solid rgba(59, 130, 246, 0.5);
    outline-offset: 2px;
}

/* Animation for toast notifications */
@keyframes slideIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.animate-slide-in {
    animation: slideIn 0.3s ease forwards;
}

/* Custom transitions */
.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Tooltip styles */
.tooltip-container {
    position: relative;
    display: inline-block;
}

.tooltip-container:hover .tooltip-content {
    display: block;
}

.tooltip-content {
    transition: opacity 0.3s ease;
}

.tooltip-arrow {
    z-index: 11;
}

/* For better mobile experience */
@media (max-width: 640px) {
    .responsive-table {
        display: block;
        width: 100%;
        overflow-x: auto;
    }
    
    .mobile-p-0 {
        padding: 0 !important;
    }
    
    .mobile-full-width {
        width: 100% !important;
    }
    
    .tooltip-content {
        width: 240px !important;
        left: -120px !important;
    }
    
    .tooltip-arrow {
        left: 120px !important;
    }
}
