/* Global styles that apply to all components */
body {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    background-color: #f5f6fa;
    color: #333;
}

/* Ensure consistent font family throughout the app */
p, div, span, button, input, select, textarea, a, table, th, td, li, label {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
}

/* Typography system for consistent text sizing */
.text-xs { font-size: 0.75rem; } /* 12px */
.text-sm { font-size: 0.875rem; } /* 14px */
.text-base { font-size: 1rem; } /* 16px */
.text-lg { font-size: 1.125rem; } /* 18px */
.text-xl { font-size: 1.25rem; } /* 20px */
.text-2xl { font-size: 1.5rem; } /* 24px */

/* Font weights for better consistency */
.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* Remove blue outline on button click */
button:focus {
    outline: none;
    box-shadow: none;
}

/* Custom scrollbars with brand color */
::-webkit-scrollbar {
    width: 3px;
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #172F87;
    border-radius: 3px;
    height: 20px;
}

/* Notification badge position fix */
.notification-badge {
    top: -5px;
    right: -5px;
}

/* More compact UI for both desktop and mobile */
.container-fluid {
    padding-left: 12px;
    padding-right: 12px;
}

.card-body {
    padding: 12px;
}

/* Improved spacing throughout the UI */
#header-section {
    margin-bottom: 0.75rem !important;
}

/* More consistent heading sizes */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    font-weight: 700;
    margin-bottom: 0.5em;
}

h1 { font-size: 2rem; } /* 32px */
h2 { font-size: 1.75rem; } /* 28px */
h3 { font-size: 1.5rem; } /* 24px */
h4 { font-size: 1.25rem; } /* 20px */
h5 { font-size: 1.125rem; } /* 18px */
h6 { font-size: 1rem; } /* 16px */

/* Ensure consistent icon sizing */
.icon-sm {
    width: 16px;
    height: 16px;
    font-size: 9px;
}

.icon-md {
    width: 20px;
    height: 20px;
    font-size: 12px;
}

/* Fix for iOS safari inputs */
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    -webkit-appearance: none;
    appearance: none;
    border-radius: 4px;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    font-size: 0.875rem; /* 14px */
}

/* Consistent button text */
button, .btn {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    font-size: 0.875rem; /* 14px */
}

/* CSS moved from index.html */

/* Sidebar gradient */
.sidebar-gradient {
    background: linear-gradient(180deg, #fff 0%, #f3f4f6 100%);
}

/* Logo styling for better visibility */
#sidebar .logo-container {
    padding: 6px 0;
    margin-bottom: 10px;
}

#sidebar img.logo {
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.1));
}

#sidebar .academy-name {
    background: linear-gradient(90deg, #233489, #19224A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    font-weight: 700;
    font-size: 1.25rem; /* 20px */
    letter-spacing: -0.01em;
}

/* Improved mobile styles */
@media (max-width: 768px) {
    /* Mobile specific overrides moved to sidebar.js and sidebar-toggle.css */
    
    #close-sidebar {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }

    /* Prevent body scroll when sidebar is open */
    body.sidebar-open {
        overflow: hidden;
    }
    
    /* Adjust logo size on smaller screens */
    #sidebar img.logo {
        width: 76px !important;
        height: 76px !important;
        margin-bottom: 4px;
    }
    
    #sidebar .academy-name {
        font-size: 13px;
    }
}

/* More efficient spacing for all screen sizes */
.space-y-3 {
    --tw-space-y-reverse: 0;
    margin-top: calc(0.6rem * calc(1 - var(--tw-space-y-reverse)));
    margin-bottom: calc(0.6rem * var(--tw-space-y-reverse));
}

/* Universal text size compatibility */
.text-sm {
    font-size: 0.875rem !important;
    line-height: 1.25rem !important;
}

/* Optimize card paddings for all devices */
.dashboard-shadow {
    padding: 0.75rem !important;
}

/* Better spacing in grid layout */
.gap-4 {
    gap: 0.75rem !important;
}

/* Optimize for very small screens */
@media (max-width: 360px) {
    .dashboard-shadow {
        padding: 0.5rem !important;
    }
    
    .space-y-3 {
        --tw-space-y-reverse: 0;
        margin-top: calc(0.4rem * calc(1 - var(--tw-space-y-reverse)));
        margin-bottom: calc(0.4rem * var(--tw-space-y-reverse));
    }
}

/* Fix sidebar scrolling */
#sidebar {
    -webkit-overflow-scrolling: touch;
}

/* Save space with tighter padding in sidebar menu items */
#sidebar-menu li {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* Mobile charts optimization */
@media (max-width: 640px) {
    #allDetailsChart {
        max-height: 120px;
    }
}

/* Fix for touch areas on mobile */
@media (pointer: coarse) {
    button, a {
        min-height: 36px;
        min-width: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Header wrapper styles */
.header-wrapper {
    padding: 0 !important;
    margin: 0 !important;
    position: relative;
    z-index: 10;
    width: 100%;
    overflow: visible;
}

/* Hide scrollbar for tab navigation */
.hide-scrollbar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;  /* Chrome, Safari, Opera*/
}

/* Fix for sidebar width */
@media (min-width: 768px) {
    #sidebar {
        width: 16rem;
    }
}
/* dropdown */
.tabDropdown{
    display: none;
    position: absolute;
}.showme:hover .tabDropdown{
    display: block;
}