/* Custom Styles for VerifyMC Medical Admin */

/* Primary Sidebar Tooltips */
.sidebar-tooltip {
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 12px;
    padding: 6px 12px;
    background-color: #1e293b;
    color: white;
    font-size: 12px;
    font-weight: 500;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 100;
    pointer-events: none;
}

.sidebar-tooltip::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 4px 4px 4px 0;
    border-color: transparent #1e293b transparent transparent;
}

.sidebar-item:hover .sidebar-tooltip {
    opacity: 1;
    visibility: visible;
    margin-left: 16px;
}

/* Active Navigation States */
.nav-item.active {
    background-color: #eff6ff;
    color: #2563eb;
    font-weight: 600;
}

.nav-item.active svg {
    color: #2563eb;
}

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

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

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

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

/* Smooth transitions */
* {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Focus styles for accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* Primary Sidebar Active Indicator */
.sidebar-item.active {
    position: relative;
}

/* Card hover effects */
.bg-white {
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
    .primary-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .primary-sidebar.open {
        transform: translateX(0);
    }
    
    main, header {
        margin-left: 0 !important;
    }
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .bg-white {
        border-radius: 12px;
    }
    
    /* Horizontal scroll for mobile secondary menu */
    #secondaryMenu:not(.hidden) {
        max-height: 60vh;
        overflow-y: auto;
    }
}

/* Print styles */
@media print {
    .primary-sidebar,
    header {
        display: none;
    }
    
    main {
        margin-left: 0;
    }
}

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

.bg-white {
    animation: fadeIn 0.4s ease-out forwards;
}

.bg-white:nth-child(1) { animation-delay: 0.1s; }
.bg-white:nth-child(2) { animation-delay: 0.2s; }
.bg-white:nth-child(3) { animation-delay: 0.3s; }
.bg-white:nth-child(4) { animation-delay: 0.4s; }