/*
 * Unfold Custom CSS — Layout & Components
 * Cards, buttons, sidebar, pagination, scrollbar, dashboard widgets, animations
 */

/* Button hover effects */
.bg-primary-600:hover {
    background-color: var(--primary-700) !important;
}

/* Links in primary color */
a.text-primary-600 {
    color: var(--primary-600) !important;
}

a.text-primary-600:hover {
    color: var(--primary-700) !important;
}

/* Custom card styling */
.admin-card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    transition: all 0.2s;
}

.admin-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Sidebar active item */
.sidebar-active {
    background-color: var(--primary-500) !important;
    color: white !important;
}

/* Pagination active */
.pagination .current {
    background-color: var(--primary-500) !important;
    color: white !important;
}

/* Dashboard widgets */
.dashboard-widget {
    border-left: 4px solid var(--primary-500);
}

/* Loading spinner color */
.spinner {
    border-top-color: var(--primary-500) !important;
}

/* Custom animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

::-webkit-scrollbar-track {
    background: rgb(243, 244, 246);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-400);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-500);
}

.dark ::-webkit-scrollbar-track {
    background: rgb(31, 41, 55);
}

.dark ::-webkit-scrollbar-thumb {
    background: var(--primary-500);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .admin-card {
        border-radius: 0.25rem;
    }
}

/* Admin logo + site name */
a[href="/admin/"]:has(img) {
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
    text-decoration: none !important;
}

a[href="/admin/"]:has(img)::after {
    content: "NEIMS";
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: rgb(21, 128, 61);
    white-space: nowrap;
}

.dark a[href="/admin/"]:has(img)::after {
    color: rgb(74, 222, 128);
}
