:root {
    --primary: #059669;
    --primary-dark: #047857;
    --primary-light: #34d399;
    --primary-glow: rgba(5, 150, 105, 0.15);
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --sidebar-bg: #0f172a;
    --sidebar-text: #94a3b8;
    --sidebar-hover: #1e293b;
    --danger: #ef4444;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    height: 100vh;
    overflow: hidden;
}

.screen {
    display: none;
    height: 100%;
    width: 100%;
}

.screen.active {
    display: flex;
}

/* Setup Screen */
#setup-screen {
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.setup-container {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    width: 100%;
    max-width: 500px;
    text-align: center;
}

.setup-header {
    margin-bottom: 2rem;
}

.header-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.setup-header h1 {
    font-size: 1.8rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.setup-header p {
    color: var(--text-muted);
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.form-group input, .form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 0.5px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-large {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
}

.btn-success {
    background-color: #10b981;
    color: white;
}

.btn-success:hover {
    background-color: #059669;
}

.btn-outline-danger {
    background-color: transparent;
    border: 1px solid var(--danger);
    color: var(--danger);
    width: 100%;
}

.btn-outline-danger:hover {
    background-color: var(--danger);
    color: white;
}

/* Dashboard Sidebar */
.sidebar {
    width: 280px;
    background-color: var(--sidebar-bg);
    color: var(--sidebar-text);
    display: flex;
    flex-direction: column;
    transition: width 0.25s ease, min-width 0.25s ease;
    overflow: hidden;
    min-width: 280px;
}

.sidebar.collapsed {
    width: 0;
    min-width: 0;
}

.sidebar.collapsed .menu,
.sidebar.collapsed .sidebar-footer,
.sidebar.collapsed .logo {
    opacity: 0;
    pointer-events: none;
}

/* Hamburger toggle button */
#sidebar-toggle-btn {
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 999;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    width: 38px;
    height: 38px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    transition: background 0.2s;
}

#sidebar-toggle-btn:hover {
    background: var(--primary-dark, #059669);
}

#sidebar-toggle-btn span {
    display: block;
    width: 18px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.2s;
}

.logo {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--sidebar-hover);
}

.logo i {
    font-size: 1.5rem;
    color: var(--primary);
}

.menu {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: var(--sidebar-text);
    text-decoration: none;
    transition: all 0.2s;
}

.menu-item:hover, .menu-item.active {
    background-color: var(--sidebar-hover);
    border-left: 4px solid var(--primary);
}

.menu-item i {
    width: 20px;
    text-align: center;
    color: var(--text-muted);
}

.menu-item.active i {
    color: var(--primary);
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--sidebar-hover);
}

/* Dashboard Content */
.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-color);
    overflow: hidden;
}

.content-header {
    background: var(--card-bg);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    z-index: 10;
}

#dashboard-screen.header-hidden .content-header {
    display: none !important;
}

#dashboard-screen.header-hidden #show-header-btn {
    display: flex !important;
}

.view-section {
    display: none;
    padding: 2rem;
    flex: 1;
    overflow-y: auto;
}

.view-section.active {
    display: block;
}

#timetable-view {
    height: 100%;
    overflow: hidden;
    padding: 1.5rem 2rem 1rem 2rem;
    box-sizing: border-box;
}

#timetable-view.active {
    display: flex;
    flex-direction: column;
}

/* Add Cards */
.add-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.add-card h3 {
    margin-bottom: 1rem;
    color: var(--text-main);
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row input, .form-row select {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 0.5px solid var(--border-color);
    border-radius: 0.5rem;
    outline: none;
    transition: all 0.2s;
}

.form-row input:focus, .form-row select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

/* Data Lists */
.data-list h3 {
    margin-bottom: 1rem;
    color: var(--text-main);
}

.item-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.item-card {
    background: var(--card-bg);
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid var(--primary);
}

.delete-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
}

.delete-btn:hover {
    color: var(--danger);
}

/* Timetable Styles */
.timetable-controls {
    background: var(--card-bg);
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

.form-group.inline {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0;
}

.form-group.inline label {
    margin-bottom: 0;
}

.form-group.inline select {
    width: auto;
    min-width: 200px;
}

.timetable-container {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow);
    overflow-x: auto;
}

.timetable {
    width: 100%;
    border-collapse: collapse;
}

.timetable th, .timetable td {
    border: 0.5px solid var(--border-color);
    padding: 0.75rem;
    text-align: center;
}

.timetable th {
    background-color: var(--bg-color);
    font-weight: 600;
    color: var(--text-main);
}

.cell-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cell-select {
    width: 100%;
    padding: 0.25rem;
    border: 0.5px solid var(--border-color);
    border-radius: 0.25rem;
    font-size: 0.85rem;
    background: #f9fafb;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--border-color);
}

/* Privacy Mode for Teacher List */
.privacy-mode th:nth-child(2),
.privacy-mode th:nth-child(3),
.privacy-mode th:nth-child(4),
.privacy-mode th:nth-child(5),
.privacy-mode th:nth-child(6),
.privacy-mode th:nth-child(7),
.privacy-mode td:nth-child(2),
.privacy-mode td:nth-child(3),
.privacy-mode td:nth-child(4),
.privacy-mode td:nth-child(5),
.privacy-mode td:nth-child(6),
.privacy-mode td:nth-child(7) {
    display: none;
}

.privacy-toggle-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #6366f1 0%, #4338ca 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
    z-index: 2000;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 3px solid white;
}

.privacy-toggle-btn:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.5);
}

.privacy-toggle-btn:active {
    transform: scale(0.95);
}

.privacy-toggle-btn.active {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.4);
}

/* ===== MODAL OVERLAY VA CONTENT ===== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    background: var(--primary);
    color: white;
    flex-shrink: 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
    max-height: 75vh;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.2s;
    line-height: 1;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Toast xabarnoma */
.toast-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #1e293b;
    color: white;
    padding: 14px 22px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 9999;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 350px;
}

.toast-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-notification.success {
    background: linear-gradient(135deg, #10b981, #059669);
}

.toast-notification.error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

/* Taqsimot modal */
#taqsimot-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}


/* Settings Compact Mode */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.setting-card-compact {
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    padding: 1rem !important;
}

.setting-card-compact:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.setting-card-compact h3 {
    margin-bottom: 0 !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.setting-card-compact h3::after {
    content: '\f078';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    color: var(--text-muted);
}

.setting-card-compact.expanded h3::after {
    transform: rotate(180deg);
}

.setting-card-compact .setting-card-content {
    display: none;
    margin-top: 1.5rem;
    cursor: default;
}

.setting-card-compact.expanded {
    grid-column: span 2;
    cursor: default;
}

@media (max-width: 768px) {
    .setting-card-compact.expanded {
        grid-column: span 1;
    }
}

.setting-card-compact.expanded .setting-card-content {
    display: block;
}

.setting-card-compact.expanded h3 {
    margin-bottom: 1rem !important;
}

/* Sidebar Submenu Styles */
.submenu {
    display: none;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.15);
    border-left: 4px solid transparent;
    overflow: hidden;
    transition: all 0.25s ease;
}
.submenu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1.5rem 0.65rem 3rem;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
}
.submenu-item:hover {
    color: #f9fafb;
    background-color: var(--sidebar-hover);
}
.submenu-item i {
    font-size: 0.85rem;
    width: 16px;
    text-align: center;
    color: #94a3b8;
    transition: color 0.2s;
}
.submenu-item:hover i {
    color: var(--primary);
}


/* Login Screen Style */
#login-screen {
    align-items: center;
    justify-content: center;
    background: linear-gradient(-45deg, #0f172a, #1e293b, #0f271c, #0d1e15);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.login-container {
    width: 100%;
    max-width: 440px;
    padding: 20px;
}

.login-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px) saturate(120%);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    color: white;
    text-align: center;
    transition: all 0.3s;
}

.login-header {
    margin-bottom: 30px;
}

.login-icon-wrapper {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
    animation: pulseLock 2.5s infinite;
}

@keyframes pulseLock {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(16, 185, 129, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.login-lock-icon {
    font-size: 2rem;
    color: white;
}

.login-header h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
    background: linear-gradient(to right, #ffffff, #a7f3d0);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-header p {
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1.5;
}

.form-group-custom {
    margin-bottom: 22px;
    text-align: left;
}

.form-group-custom label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: #a7f3d0;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group-custom input {
    width: 100%;
    background: rgba(15, 23, 42, 0.6);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 16px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s;
    box-sizing: border-box;
}

.form-group-custom input::placeholder {
    color: #475569;
}

.form-group-custom input:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.25);
    background: rgba(15, 23, 42, 0.8);
}

.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.password-input-wrapper input {
    padding-right: 45px;
}

.password-toggle-btn-custom {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    font-size: 1rem;
    padding: 4px;
    transition: color 0.2s;
}

.password-toggle-btn-custom:hover {
    color: #10b981;
}

.login-btn {
    margin-top: 10px;
    border-radius: 12px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(16, 185, 129, 0.4);
}

/* Shake Animation */
.shake {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    perspective: 1000px;
}

@keyframes shake {
    10%, 90% { transform: translate3d(-2px, 0, 0); }
    20%, 80% { transform: translate3d(4px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-6px, 0, 0); }
    40%, 60% { transform: translate3d(6px, 0, 0); }
}

/* Switch UI elements for Password Modal */
.switch-custom input:checked + .slider-custom {
    background-color: #10b981 !important;
}

.switch-custom input:checked + .slider-custom:before {
    transform: translateX(20px);
}

.slider-custom:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

/* Sidebar Category Styling */
.menu-category {
    margin-bottom: 0.75rem;
    padding: 0 0.5rem;
}

.menu-category-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.85;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 0.25rem;
    cursor: pointer;
    user-select: none;
    transition: opacity 0.2s;
    position: relative;
}

.menu-category-header:hover {
    opacity: 1;
}

.menu-category-header::after {
    content: '\f078';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 0.65rem;
    margin-left: auto;
    transition: transform 0.3s ease;
    opacity: 0.6;
}

.menu-category.collapsed .menu-category-header::after {
    transform: rotate(-90deg);
}

.menu-category-header i {
    font-size: 0.9rem;
}

.sub-menu-item {
    font-size: 0.88rem !important;
    padding: 0.75rem 1.25rem 0.75rem 2rem !important;
    border-radius: 6px;
    margin: 2px 0;
}

.sub-menu-item i {
    font-size: 0.8rem !important;
}

.menu-category-items {
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
    max-height: 1000px;
    transition: max-height 0.35s ease, opacity 0.25s ease;
    opacity: 1;
}

.menu-category.collapsed .menu-category-items {
    max-height: 0;
    opacity: 0;
}

/* Hide teacher add/edit/delete buttons globally in general teachers-view */
#open-add-teacher-view-btn,
#teachers-view button[onclick*="editTeacher"],
#teachers-view button[onclick*="deleteTeacher"] {
    display: none !important;
}

@media print {
    body * {
        visibility: hidden;
    }
    #bosh-buxgalter-tabel-view, #bosh-buxgalter-tabel-view * {
        visibility: visible;
    }
    #bosh-buxgalter-tabel-view {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        padding: 0 !important;
        margin: 0 !important;
        background: white !important;
    }
    #sidebar-toggle-btn,
    .sidebar,
    .content-header,
    #bosh-buxgalter-tabel-view h2,
    #bosh-buxgalter-tabel-view > div:first-of-type,
    #bosh-buxgalter-tabel-view button,
    #bosh-buxgalter-tabel-view label,
    #bosh-buxgalter-tabel-view select,
    #bosh-buxgalter-tabel-view input {
        display: none !important;
    }
    table {
        border-collapse: collapse !important;
        width: 100% !important;
    }
    th, td {
        border: 1px solid black !important;
        padding: 6px 8px !important;
        font-size: 0.75rem !important;
        color: black !important;
        background: transparent !important;
    }
}

/* Mavzu va boshqa matn inputlarining focused holatda kattalashishi */
.expandable-input {
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.75rem !important;
    padding: 5px 8px !important;
}
.expandable-input:focus {
    font-size: 1.05rem !important;
    padding: 10px 14px !important;
    border-color: #2563eb !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15), 0 0 0 3px rgba(37, 99, 235, 0.25) !important;
    outline: none !important;
    transform: scale(1.015);
    background-color: #ffffff !important;
    z-index: 10;
    position: relative;
}

/* MathML elements inherit the main text font-family to ensure visual consistency */
math, math *, mi, mn, mo, mtext, msqrt {
    font-family: 'Inter', sans-serif !important;
}

/* Taqsimot jadvalidagi yoziladigan joylar uchun qizil hoshiya */
.gt-week-input {
    width: 100% !important;
    height: 22px !important;
    border: 1.5px solid #ef4444 !important;
    border-radius: 4px !important;
    text-align: center !important;
    padding: 0 !important;
    font-size: 0.75rem !important;
    background: #ffffff !important;
    font-weight: 700 !important;
    color: #334155 !important;
    outline: none !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
}
.gt-week-input:focus {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2) !important;
    background: #fff5f5 !important;
}

/* Taqsimot tahrirlash oynasidagi va avtomatik to'ldirish oynasidagi inputlar */
.gt-edit-input,
input[data-uniform-key],
input[data-odd-key],
input[data-even-key] {
    border: 1.5px solid #ef4444 !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    outline: none !important;
    transition: all 0.2s ease !important;
}
.gt-edit-input:focus,
input[data-uniform-key]:focus,
input[data-odd-key]:focus,
input[data-even-key]:focus {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2) !important;
    background: #fff5f5 !important;
}

#tt-cards-panel-container {
    position: relative;
    margin-top: 0;
    margin-bottom: 0;
    padding: 8px 0 0 0;
    background: transparent;
    border-top: none;
    box-shadow: none;
    z-index: 100;
}

/* Dars tafsilotlari — fan kartalari bilan bir qatorda */
.tt-cards-row {
    display: flex;
    gap: 12px;
    align-items: stretch;
    height: 96px;
    min-height: 96px;
    max-height: 96px;
    padding: 0 5px 5px 5px;
    overflow: hidden;
}

.tt-cards-content-area {
    flex: 1;
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    align-items: flex-start;
    min-width: 0;
    height: 92px !important;
    min-height: 92px;
    max-height: 92px;
    overflow-x: auto;
    overflow-y: hidden;
}

.tt-hover-details-bottom {
    flex-shrink: 0;
    width: 290px;
    height: 92px;
    max-height: 92px;
    box-sizing: border-box;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    box-sizing: border-box;
    overflow-y: auto;
}

.tt-hover-details-content {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #64748b;
    font-size: 0.8rem;
    line-height: 1.35;
    transition: all 0.2s ease;
    overflow: hidden;
}

.tt-hover-details-content.tt-hover-details-filled {
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
    overflow-x: hidden;
    overflow-y: auto;
}

.tt-detail-line {
    font-size: 0.76rem;
    line-height: 1.35;
    color: #334155;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.tt-detail-label {
    font-weight: 700;
    color: #475569;
}

@keyframes pointerPulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.1); opacity: 1; }
}

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






