/* Custom styles for SOC AI with Tailwind CSS */

/* Hero section background */
.hero-section {
    background-attachment: fixed;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        background-attachment: scroll;
        height: 70vh;
    }
}

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

/* Custom hover effects */
.hover-scale:hover {
    transform: scale(1.05);
}

/* Table striping for better readability */
.table-row-striped:nth-child(even) {
    background-color: #f9fafb;
}

/* Custom focus styles */
.focus-ring:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5);
}

/* Loading spinner */
.spinner {
    border: 4px solid #f3f4f6;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Dropdown menu fixes for table overflow issues */
.dropdown-menu {
    position: fixed !important;
    z-index: 9999 !important;
    transform: translateX(-100%);
}

/* Ensure table container doesn't clip dropdowns */
.table-container {
    position: static;
}

.table-container .overflow-x-auto {
    overflow: visible;
}

/* For mobile responsiveness, restore overflow on smaller screens */
@media (max-width: 768px) {
    .table-container .overflow-x-auto {
        overflow-x: auto;
    }
    
    .dropdown-menu {
        position: absolute !important;
        transform: none;
    }
}
