/* Custom Styles for VerifyMC Medical Admin */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Toggle Switch Animation */
.toggle-switch {
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.toggle-switch:active span {
    width: 1.25rem;
}

/* Tab transitions */
.tab-content {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

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

/* Sidebar tooltip enhancement */
@media (min-width: 1024px) {
    .group:hover .absolute {
        display: none;
    }
}

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

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

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

/* Mobile optimizations */
@media (max-width: 640px) {
    .tab-btn {
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
    }
}

/* Print styles */
@media print {
    #sidebar,
    header,
    .tab-btn {
        display: none !important;
    }
    
    main {
        margin-left: 0 !important;
        width: 100% !important;
    }
}

/* Loading state for buttons */
button:active:not(:disabled) {
    transform: scale(0.98);
}

/* Accessibility: Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}