/* Tailwind CSS Custom Styles for Sunrise ERP - Enhanced Animated Sidebar */
/* This file contains custom styles with next-level professional animations */

/* Reset body and html to remove any gaps */
html, body {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
}

/* Advanced Animation Keyframes */
@keyframes slideInFromLeft {
    0% {
        transform: translateX(-100%);
        opacity: 0.8;
    }
    50% {
        transform: translateX(-10%);
        opacity: 0.9;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutToLeft {
    0% {
        transform: translateX(0);
        opacity: 1;
    }
    50% {
        transform: translateX(-10%);
        opacity: 0.9;
    }
    100% {
        transform: translateX(-100%);
        opacity: 0.8;
    }
}

@keyframes fadeInUp {
    0% {
        transform: translateY(20px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeOutDown {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(20px);
        opacity: 0;
    }
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3) translateY(-50px);
        opacity: 0;
    }
    50% {
        transform: scale(1.05) translateY(-10px);
        opacity: 0.8;
    }
    70% {
        transform: scale(0.9) translateY(0);
        opacity: 0.9;
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    0% {
        transform: translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes morphIcon {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(90deg) scale(0.8);
    }
    100% {
        transform: rotate(180deg) scale(1);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(245, 158, 11, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(245, 158, 11, 0.6), 0 0 30px rgba(245, 158, 11, 0.4);
    }
}

@keyframes expandWidth {
    0% {
        width: 4rem;
        opacity: 0.9;
    }
    50% {
        width: 10rem;
        opacity: 0.95;
    }
    100% {
        width: 16rem;
        opacity: 1;
    }
}

@keyframes collapseWidth {
    0% {
        width: 16rem;
        opacity: 1;
    }
    50% {
        width: 10rem;
        opacity: 0.95;
    }
    100% {
        width: 4rem;
        opacity: 0.9;
    }
}

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 0.6;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

/* Enhanced Sidebar Animation Classes */
.sidebar-animate-in {
    animation: slideInFromLeft 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.sidebar-animate-out {
    animation: slideOutToLeft 0.4s cubic-bezier(0.55, 0.055, 0.675, 0.19) forwards;
}

.sidebar-expand {
    animation: expandWidth 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.sidebar-collapse {
    animation: collapseWidth 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.menu-item-animate-in {
    animation: fadeInUp 0.4s ease-out forwards;
}

.menu-item-animate-out {
    animation: fadeOutDown 0.3s ease-in forwards;
}

.overlay-animate-in {
    animation: fadeInUp 0.3s ease-out forwards;
}

.overlay-animate-out {
    animation: fadeOutDown 0.2s ease-in forwards;
}

.icon-morph {
    animation: morphIcon 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.button-pulse {
    animation: pulseGlow 1s infinite;
}

.menu-bounce-in {
    animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

/* Enhanced Transition Classes */
.transition-all-smooth {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.transition-transform-smooth {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.transition-width-smooth {
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.transition-opacity-smooth {
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced Hover Effects */
.menu-item-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.menu-item-hover:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.1), transparent);
    transition: left 0.5s;
}

.menu-item-hover:hover:before {
    left: 100%;
}

.menu-item-hover:hover {
    transform: translateX(4px);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(251, 191, 36, 0.05));
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}

/* Enhanced Button Effects */
.button-enhanced {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.button-enhanced:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.button-enhanced:hover:before {
    width: 300px;
    height: 300px;
}

.button-enhanced:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.button-enhanced:active {
    transform: translateY(0);
}

/* Ripple Effect */
.ripple-effect {
    position: relative;
    overflow: hidden;
}

.ripple-effect:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ripple-effect:active:before {
    width: 300px;
    height: 300px;
}

/* Enhanced Tooltip Styling */
.tooltip-enhanced {
    position: absolute;
    left: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%) scale(0.8);
    background: linear-gradient(135deg, #1f2937, #374151);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
    pointer-events: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.tooltip-enhanced:before {
    content: '';
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-right-color: #1f2937;
}

.tooltip-enhanced.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) scale(1);
}

/* Enhanced Loading Animation */
.loading-enhanced {
    position: relative;
}

.loading-enhanced:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #f59e0b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Staggered Animation for Menu Items */
.menu-item:nth-child(1) { animation-delay: 0.1s; }
.menu-item:nth-child(2) { animation-delay: 0.15s; }
.menu-item:nth-child(3) { animation-delay: 0.2s; }
.menu-item:nth-child(4) { animation-delay: 0.25s; }
.menu-item:nth-child(5) { animation-delay: 0.3s; }
.menu-item:nth-child(6) { animation-delay: 0.35s; }
.menu-item:nth-child(7) { animation-delay: 0.4s; }
.menu-item:nth-child(8) { animation-delay: 0.45s; }

/* Enhanced Submenu Animations */
.submenu-enhanced {
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: top;
}

.submenu-enhanced.collapsed {
    max-height: 0;
    opacity: 0;
    transform: scaleY(0);
}

.submenu-enhanced.expanded {
    max-height: 500px;
    opacity: 1;
    transform: scaleY(1);
}

.submenu-item {
    transform: translateX(-20px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.submenu-enhanced.expanded .submenu-item {
    transform: translateX(0);
    opacity: 1;
}

.submenu-enhanced.expanded .submenu-item:nth-child(1) { transition-delay: 0.1s; }
.submenu-enhanced.expanded .submenu-item:nth-child(2) { transition-delay: 0.15s; }
.submenu-enhanced.expanded .submenu-item:nth-child(3) { transition-delay: 0.2s; }
.submenu-enhanced.expanded .submenu-item:nth-child(4) { transition-delay: 0.25s; }
.submenu-enhanced.expanded .submenu-item:nth-child(5) { transition-delay: 0.3s; }

/* Enhanced Icon Animation */
.icon-enhanced {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.icon-enhanced:hover {
    transform: scale(1.1) rotate(5deg);
    color: #f59e0b;
}

/* Enhanced User Menu Animation */
.user-menu-enhanced {
    transform-origin: bottom center;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.user-menu-enhanced.show {
    animation: bounceIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.user-menu-enhanced.hide {
    animation: fadeOutDown 0.2s ease-in forwards;
}

/* Enhanced Overlay Effect */
.overlay-enhanced {
    backdrop-filter: blur(8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.overlay-enhanced.show {
    animation: fadeInUp 0.3s ease-out forwards;
}

.overlay-enhanced.hide {
    animation: fadeOutDown 0.2s ease-in forwards;
}

/* Mobile-specific animations */
@media (max-width: 1023px) {
    .sidebar-mobile-slide-in {
        animation: slideInFromLeft 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    }
    
    .sidebar-mobile-slide-out {
        animation: slideOutToLeft 0.3s cubic-bezier(0.55, 0.055, 0.675, 0.19) forwards;
    }
    
    /* Fix sidebar scroll container on mobile - ensure content scrolls properly below header */
    #tailwindSidebar {
        padding-top: 64px !important;
    }
    
    #tailwindSidebar .flex-1.overflow-y-auto {
        max-height: calc(100vh - 64px - 80px) !important; /* Account for header and footer */
        overflow-y: auto !important;
    }
    
    /* Ensure sidebar menu items don't get hidden behind header on mobile */
    #logo-sidebar {
        padding-top: 0 !important;
    }
    
    #logo-sidebar > div {
        padding-top: 64px !important;
        height: calc(100vh) !important;
        box-sizing: border-box !important;
    }
}

/* Desktop-specific animations */
@media (min-width: 1024px) {
    .sidebar-desktop-expand {
        animation: expandWidth 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    }
    
    .sidebar-desktop-collapse {
        animation: collapseWidth 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    }
}

/* Logo Animation */
.logo-enhanced {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-enhanced.collapsed {
    transform: scale(0.8);
    opacity: 0;
}

.logo-enhanced.expanded {
    transform: scale(1);
    opacity: 1;
}

/* Enhanced Chevron Animation */
.chevron-enhanced {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.chevron-enhanced.rotated {
    transform: rotate(90deg);
}

/* Enhanced Button Glow Effect */
.button-glow {
    position: relative;
    overflow: hidden;
}

.button-glow:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.button-glow:hover:before {
    left: 100%;
}

/* Smooth text transitions */
.text-smooth-transition {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.text-smooth-transition.hide {
    opacity: 0;
    transform: translateX(-10px);
}

.text-smooth-transition.show {
    opacity: 1;
    transform: translateX(0);
}

/* Enhanced Active State */
.menu-item-active {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(251, 191, 36, 0.1));
    border-left: 4px solid #f59e0b;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

/* Hide old sidebar and header specific styles */
.sidebar,
.mobile-menu-toggle,
.sidebar-overlay {
    display: none !important;
}

/* Override old main-content styles to work with new Tailwind layout */
.main-content {
    margin-left: 0 !important;
    width: 100% !important;
    padding: 0 !important;
    background: none !important;
    min-height: auto !important;
    transition: margin-left 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Flowbite Sidebar Specific Styles */
#logo-sidebar {
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible;
}

/* Collapsed sidebar styles */
#logo-sidebar.w-16 {
    overflow: visible;
}

#logo-sidebar.w-16 .menu-text {
    display: none !important;
}

#logo-sidebar.w-16 .submenu {
    display: none !important;
}

#logo-sidebar.w-16 .submenu-arrow {
    display: none !important;
}

#logo-sidebar.w-16 .menu-item {
    justify-content: center;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

/* Tooltip styles for collapsed sidebar */
.group:hover .group-hover\:opacity-100 {
    opacity: 1 !important;
}

.group:hover .group-hover\:visible {
    visibility: visible !important;
}

/* Tooltip positioning */
.tooltip {
    position: absolute;
    left: calc(100% + 0.5rem);
    top: 50%;
    transform: translateY(-50%);
    background-color: #1f2937;
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    pointer-events: none;
}

.tooltip::before {
    content: '';
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-right-color: #1f2937;
}

/* Custom scrollbar for sidebar */
#logo-sidebar::-webkit-scrollbar {
    width: 6px;
}

#logo-sidebar::-webkit-scrollbar-track {
    background: #f1f5f9;
}

#logo-sidebar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
    transition: background 0.3s ease;
}

#logo-sidebar::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Menu item active state */
.menu-item.active {
    background-color: #fef3c7 !important;
    color: #92400e !important;
    transform: translateX(4px);
    border-left: 4px solid #f59e0b;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.menu-item.active .menu-icon {
    color: #d97706 !important;
}

/* Submenu styles */
.submenu {
    margin-left: 0.5rem;
    border-left: 2px solid #e5e7eb;
    padding-left: 0.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.submenu.hidden {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: scaleY(0);
}

.submenu:not(.hidden) {
    max-height: 500px;
    opacity: 1;
    transform: scaleY(1);
}

.submenu li a {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.submenu li a:hover {
    transform: translateX(4px);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(251, 191, 36, 0.05));
}

/* Submenu arrow animation */
.submenu-arrow {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.submenu-arrow.rotate-180 {
    transform: rotate(180deg);
}

/* Responsive adjustments */
@media (max-width: 640px) {
    #main-content {
        margin-left: 0 !important;
    }
    
    #logo-sidebar {
        transform: translateX(-100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    #logo-sidebar.translate-x-0 {
        transform: translateX(0);
    }
    
    #logo-sidebar:not(.translate-x-0) {
        transform: translateX(-100%);
    }
}

/* Desktop sidebar states */
@media (min-width: 640px) {
    #main-content.sm\:ml-64 {
        margin-left: 16rem !important;
        transition: margin-left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    #main-content.sm\:ml-16 {
        margin-left: 4rem !important;
        transition: margin-left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    #logo-sidebar {
        transform: translateX(0) !important;
    }
    
    #logo-sidebar.-translate-x-full {
        transform: translateX(0) !important;
    }
    
    /* Ensure no right gaps on desktop */
    #main-content {
        margin-right: 0 !important;
        padding-right: 0 !important;
        width: calc(100vw - 16rem) !important;
        transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    /* When sidebar is collapsed */
    #main-content.sm\:ml-16 {
        width: calc(100vw - 4rem) !important;
    }
}

/* Smooth transitions for main content */
#main-content {
    transition: margin-left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Remove default margins and padding on main content */
#main-content {
    margin-right: 0 !important;
    padding-right: 0 !important;
}

/* Ensure content area uses full width when sidebar is collapsed */
#main-content.sm\:ml-16 {
    margin-left: 4rem !important;
    margin-right: 0 !important;
}

/* Full width content on mobile */
@media (max-width: 640px) {
    #main-content {
        width: 100vw !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* Enhanced Loading animation */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Enhanced Button hover effects */
button:hover {
    transform: translateY(-2px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

button:active {
    transform: translateY(0);
}

/* Enhanced Menu item hover effects */
.menu-item:hover {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(251, 191, 36, 0.05)) !important;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}

.menu-item:hover .menu-icon {
    color: #f59e0b !important;
    transform: scale(1.1);
}

/* Focus styles for accessibility */
.menu-item:focus,
button:focus {
    outline: 2px solid #f59e0b;
    outline-offset: 2px;
}

/* Enhanced Dropdown styles */
.dropdown-menu {
    transform: scale(0.95) translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.dropdown-menu.show {
    transform: scale(1) translateY(0);
    opacity: 1;
    visibility: visible;
}

/* User menu dropdown positioning */
#userDropdown {
    right: 0;
    top: 100%;
    margin-top: 0.5rem;
    min-width: 12rem;
}

/* Ensure proper layering */
.z-40 {
    z-index: 40;
}

.z-50 {
    z-index: 50;
}

/* Enhanced Loading states */
.loading-state {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: #6b7280;
}

.error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: #ef4444;
}

/* Success and error notification styles */
.notification-success {
    border-left: 4px solid #10b981;
    background-color: #f0fdf4;
}

.notification-error {
    border-left: 4px solid #ef4444;
    background-color: #fef2f2;
}

.notification-warning {
    border-left: 4px solid #f59e0b;
    background-color: #fffbeb;
}

.notification-info {
    border-left: 4px solid #3b82f6;
    background-color: #eff6ff;
}

/* Mobile optimizations */
@media (max-width: 640px) {
    .content-wrapper {
        padding: 1rem;
    }
    
    .menu-text {
        font-size: 0.875rem;
    }
    
    /* Remove all horizontal margins and padding on mobile */
    #main-content {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* Ensure content starts at header height with no side gaps */
    #main-content > div {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* Mobile Header Responsive Fixes */
@media (max-width: 1023px) {
    /* Ensure header doesn't overflow on mobile */
    .header-container {
        width: 100%;
        max-width: 100vw;
        overflow: hidden;
    }
    
    /* Mobile Company and Financial Year Text Truncation */
    #mobileSelectedCompanyText {
        max-width: 60px !important;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        display: inline-block;
    }
    
    #mobileSelectedFinancialYearText {
        max-width: 50px !important;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        display: inline-block;
    }
    
    /* Mobile dropdown positioning fixes */
    #mobileCompanyDropdownMenu {
        left: 0 !important;
        right: auto !important;
        max-width: 280px;
        transform-origin: top-left !important;
    }
    
    #mobileFinancialYearDropdownMenu {
        right: 0 !important;
        left: auto !important;
        max-width: 260px;
        transform-origin: top-right !important;
    }
    
    /* Mobile button flex fixes */
    #mobileCompanyDropdownButton,
    #mobileFinancialYearDropdownButton {
        max-width: 100px;
        overflow: hidden;
    }
    
    /* Fix mobile header spacing */
    .flex.lg\\:hidden {
        flex: 1;
        min-width: 0;
        max-width: 200px;
    }
}

/* Extra small mobile devices */
@media (max-width: 375px) {
    #mobileSelectedCompanyText {
        max-width: 45px !important;
    }
    
    #mobileSelectedFinancialYearText {
        max-width: 35px !important;
    }
    
    .flex.lg\\:hidden {
        max-width: 160px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .border-gray-200 {
        border-color: #000 !important;
    }
    
    .text-gray-600 {
        color: #000 !important;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}

/* Print styles */
@media print {
    #logo-sidebar,
    nav,
    .no-print {
        display: none !important;
    }
    
    #main-content {
        margin-left: 0 !important;
    }
}
