/* HCIS - Shared Styles */
* {
    font-family: 'Inter', sans-serif;
}

/* Sidebar Active State */
.sidebar-link.active {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.sidebar-link.active svg {
    color: white !important;
}

/* Stat Card Hover */
.stat-card:hover {
    transform: translateY(-4px);
}

/* Text Gradient */
.text-gradient {
    background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.5s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-fade-in {
    animation: fadeIn 0.3s ease-out forwards;
}

/* Custom Scrollbar */
.scrollbar-thin::-webkit-scrollbar {
    width: 6px;
}

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

.scrollbar-thin::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

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

/* Org Card Hover */
.org-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
}

/* Table Row Hover */
tbody tr:hover {
    background-color: #f8fafc;
}

/* Button Focus States */
button:focus,
a:focus {
    outline: none;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid #ef4444;
    outline-offset: 2px;
}

/* Input Focus States */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Badge Pulse Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Spinner Animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

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

.duration-300 {
    transition-duration: 300ms;
}

/* Card Shadow on Hover */
.hover\:shadow-xl:hover {
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Gradient Backgrounds */
.bg-gradient-red {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.bg-gradient-emerald {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.bg-gradient-cyan {
    background: linear-gradient(135deg, #06b6d4 0%, #0284c7 100%);
}

.bg-gradient-amber {
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
}

.bg-gradient-violet {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    #sidebar-container aside {
        position: fixed;
        left: -100%;
        top: 0;
        z-index: 50;
        transition: left 0.3s ease-in-out;
    }

    #sidebar-container aside.open {
        left: 0;
    }

    .sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 40;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease-in-out;
    }

    .sidebar-overlay.open {
        opacity: 1;
        visibility: visible;
    }
}
