*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --green: #008B45;
    --green-light: #00a854;
    --green-dark: #006633;
    --green-glow: rgba(0, 139, 69, 0.3);
    --green-subtle: rgba(0, 139, 69, 0.08);
    --black: #000000;
    --white: #FFFFFF;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #eeeeee;
    --gray-300: #e0e0e0;
    --gray-400: #bdbdbd;
    --gray-500: #9e9e9e;
    --gray-600: #757575;
    --gray-700: #616161;
    --gray-800: #1a1a1a;
    --gray-900: #0d0d0d;
    --bg: #000000;
    --bg-card: #0d0d0d;
    --bg-hover: #1a1a1a;
    --text: #ffffff;
    --text-secondary: #b0b0b0;
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(0, 139, 69, 0.4);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-green: 0 0 30px rgba(0, 139, 69, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Cairo', 'Tajawal', sans-serif;
}



/* Clip only on the html element — this is the ONE safe place.
   Never put overflow-x hidden/clip on body — it breaks position:fixed */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    /* NO overflow-x here — would clip fixed children on mobile browsers */
    line-height: 1.7;
    /* Prevent content from exceeding viewport width */
    width: 100%;
}

/* =================== Animated Background =================== */
.bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.bg-pattern::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 139, 69, 0.07) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatOrb 15s ease-in-out infinite;
}

.bg-pattern::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 139, 69, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatOrb 20s ease-in-out infinite reverse;
}

@keyframes floatOrb {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(50px, -80px) scale(1.1);
    }

    66% {
        transform: translate(-30px, 60px) scale(0.95);
    }
}

.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* =================== Main Container =================== */
.app-container {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    /* Prevent any child from causing horizontal scroll */
    box-sizing: border-box;
}

/* =================== Header =================== */
.header {
    padding: 32px 0 24px;
    text-align: center;
    position: relative;
}

.header-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--green-subtle);
    border: 1px solid rgba(0, 139, 69, 0.2);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: var(--green-light);
    margin-bottom: 16px;
    animation: fadeInDown 0.6s ease;
}

.header-badge .pulse {
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(0, 139, 69, 0.5);
    }

    50% {
        opacity: 0.8;
        box-shadow: 0 0 0 8px rgba(0, 139, 69, 0);
    }
}

.header h1 {
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 8px;
    animation: fadeInDown 0.7s ease;
}

.header h1 .highlight {
    background: linear-gradient(135deg, var(--green), var(--green-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header p {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInDown 0.8s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =================== Stats Bar =================== */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 32px;
    padding: 20px 0;
    margin-bottom: 24px;
    flex-wrap: wrap;
    animation: fadeIn 1s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--green-subtle);
    border: 1px solid rgba(0, 139, 69, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.stat-info {
    text-align: right;
}

.stat-value {
    font-size: 20px;
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 400;
}

/* =================== Layout =================== */
.main-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 24px;
    padding-bottom: 60px;
    animation: fadeInUp 0.8s ease;
    /* Critical: prevents grid children from overflowing their columns */
    min-width: 0;
}

/* Every direct grid child must also have min-width:0 */
.main-layout > * {
    min-width: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =================== Sidebar =================== */
.sidebar {
    position: sticky;
    top: 20px;
    /* Use dvh (dynamic viewport height) for mobile browsers where toolbar shows/hides */
    height: calc(100vh - 40px);
    height: calc(100dvh - 40px);
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    /* overflow:hidden clips sticky children — use clip instead */
    overflow: clip;
    min-width: 0;  /* prevent grid blowout */
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.sidebar-header h2 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.sidebar-header p {
    font-size: 13px;
    color: var(--text-secondary);
}

.search-box {
    padding: 12px 20px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.search-input {
    width: 100%;
    padding: 10px 14px;
    padding-right: 38px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font);
    font-size: 14px;
    transition: var(--transition);
    outline: none;
}

.search-input::placeholder {
    color: var(--gray-500);
}

.search-input:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px var(--green-glow);
}

.search-wrapper {
    position: relative;
}

.search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-500);
    font-size: 16px;
    pointer-events: none;
}

/* Course List */
.course-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 12px;
    scrollbar-width: thin;
    scrollbar-color: var(--green-dark) transparent;
}

.course-list::-webkit-scrollbar {
    width: 5px;
}

.course-list::-webkit-scrollbar-track {
    background: transparent;
}

.course-list::-webkit-scrollbar-thumb {
    background: var(--green-dark);
    border-radius: 10px;
}

.level-group {
    margin-bottom: 8px;
}

.level-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    user-select: none;
}

.level-header:hover {
    background: var(--bg-hover);
}

.level-badge {
    min-width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--green);
    color: white;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.level-title {
    font-size: 14px;
    font-weight: 700;
    flex: 1;
}

.level-count {
    font-size: 12px;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    border-radius: 100px;
}

.level-chevron {
    color: var(--text-secondary);
    transition: var(--transition);
    font-size: 12px;
}

.level-group.open .level-chevron {
    transform: rotate(90deg);
}

.level-courses {
    display: none;
    padding: 4px 0 4px 8px;
}

.level-group.open .level-courses {
    display: block;
}

.course-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    cursor: pointer;
}

.course-item:hover {
    background: var(--bg-hover);
}

.course-item.selected {
    background: var(--green-subtle);
    border: 1px solid rgba(0, 139, 69, 0.2);
}

.custom-checkbox {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 2px solid var(--gray-600);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.course-item.selected .custom-checkbox {
    background: var(--green);
    border-color: var(--green);
}

.custom-checkbox::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: 700;
    opacity: 0;
    transition: var(--transition);
}

.course-item.selected .custom-checkbox::after {
    opacity: 1;
}

.course-name {
    font-size: 13px;
    font-weight: 500;
    flex: 1;
    line-height: 1.5;
}

.course-sections-count {
    font-size: 11px;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}

.btn-generate {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--green), var(--green-light));
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-generate:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-green);
}

.btn-generate:active {
    transform: translateY(0);
}

.btn-generate:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-generate .sparkle {
    font-size: 18px;
}

.selected-count {
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 8px;
}

.selected-count span {
    color: var(--green-light);
    font-weight: 700;
}

.btn-clear {
    width: 100%;
    padding: 10px 24px;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-family: var(--font);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 8px;
}

.btn-clear:hover {
    border-color: #e53935;
    color: #e53935;
    background: rgba(229, 57, 53, 0.08);
}

/* =================== Results Area =================== */
.results-area {
    min-height: 400px;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 500px;
    text-align: center;
    padding: 40px;
}

.empty-icon {
    width: 100px;
    height: 100px;
    background: var(--green-subtle);
    border: 1px solid rgba(0, 139, 69, 0.15);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    margin-bottom: 24px;
    will-change: transform;
    backface-visibility: hidden;
    transform-style: preserve-3d;
    animation: float none; 
}

@keyframes float {
    0%   { transform: translate3d(0, 0, 0) rotate(0.01deg); }
    50%  { transform: translate3d(0, -5px, 0) rotate(0.01deg); }
    100% { transform: translate3d(0, 0, 0) rotate(0.01deg); }
}

.empty-state h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 350px;
}

.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 400px;
    gap: 20px;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--border);
    border-top-color: var(--green);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
}

.loading-ai-text {
    font-size: 13px;
    color: var(--green-light);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Results Header */
.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.results-title {
    font-size: 20px;
    font-weight: 700;
}

.results-count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--green-subtle);
    border: 1px solid rgba(0, 139, 69, 0.2);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: var(--green-light);
}

/* Schedule Card */
.schedule-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
    overflow: hidden;
    transition: var(--transition);
    animation: cardFadeIn 0.4s ease both;
}

.schedule-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-green);
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
}

.card-header:hover {
    background: var(--bg-hover);
}

.card-num-badge {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--green), var(--green-light));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    color: white;
}

.card-num-text {
    font-size: 15px;
    font-weight: 700;
}

.card-expand-icon {
    color: var(--text-secondary);
    font-size: 14px;
    transition: var(--transition);
}

.schedule-card.open .card-expand-icon {
    transform: rotate(180deg);
}

.card-body {
    display: none;
    padding: 4px 0;
}

.schedule-card.open .card-body {
    display: block;
}

/* Section Row */
.section-row {
    display: grid;
    grid-template-columns: 2fr 0.6fr 1.5fr 1.2fr;
    gap: 12px;
    padding: 12px 20px;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: var(--transition);
    font-size: 13px;
    text-align: center;
}

.section-course-name {
    font-weight: 600;
    color: var(--white);
    text-align: right;
}

.section-row:last-child {
    border-bottom: none;
}

.section-row:hover {
    background: var(--bg-hover);
}

.section-num {
    color: var(--green-light);
    font-weight: 700;
    text-align: center;
}

.section-time {
    color: var(--text-secondary);
    direction: ltr;
    text-align: right;
}

.section-instructor {
    color: var(--text-secondary);
    font-size: 12px;
}

/* ── Time slots ── */
.section-time {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    direction: rtl;
}

.time-slot {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 6px;
    padding: 2px 6px;
    direction: rtl;
    font-size: 11px;
    line-height: 1.5;
    white-space: nowrap;
}

.time-day {
    background: var(--green-subtle);
    border: 1px solid rgba(0,139,69,0.25);
    color: var(--green-light);
    border-radius: 4px;
    padding: 0 4px;
    font-size: 10px;
    font-weight: 700;
    font-family: var(--font);
}

.time-range {
    color: var(--text-secondary);
    font-size: 11px;
    letter-spacing: 0.3px;
    direction: ltr;
    unicode-bidi: embed;
}

.time-empty {
    color: var(--gray-600);
    font-size: 12px;
}

/* No results */
.no-results {
    text-align: center;
    padding: 60px 40px;
    color: var(--text-secondary);
}

.no-results .icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.no-results h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}

/* =================== Footer =================== */
.footer {
    text-align: center;
    padding: 32px 0;
    border-top: 1px solid var(--border);
    margin-top: 40px;
}

.footer p {
    font-size: 13px;
    color: var(--text-secondary);
}

.footer .ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--green-light);
    font-weight: 600;
}

/* =================== Pagination =================== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.page-btn {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.page-btn:hover:not(:disabled) {
    border-color: var(--green);
    background: var(--green-subtle);
}

.page-btn.active {
    background: var(--green);
    border-color: var(--green);
    color: white;
}

.page-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* =================== Table Header =================== */
.table-header {
    display: grid;
    grid-template-columns: 2fr 0.6fr 1.5fr 1.2fr;
    gap: 12px;
    padding: 10px 20px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
}

/* Center the الشعبة and الوقت header labels */
.table-header span:nth-child(2),
.table-header span:nth-child(3),
.table-header span:nth-child(4) {
    text-align: center;
}

/* =================== AI Feature Badges =================== */
.ai-features {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.ai-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.ai-feature-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--green-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

/* =================== Sort Controls =================== */
.sort-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.sort-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
    white-space: nowrap;
}

.sort-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 100px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.sort-btn:hover {
    border-color: var(--green);
    color: var(--green-light);
    background: var(--green-subtle);
}

.sort-btn.active {
    border-color: var(--green);
    background: var(--green);
    color: white;
}

/* =================== Score Badges =================== */
.score-badges {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.score-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
}

.score-badge.days {
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.25);
    color: #60a5fa;
}

.score-badge.breaks {
    background: rgba(251, 146, 60, 0.12);
    border: 1px solid rgba(251, 146, 60, 0.25);
    color: #fb923c;
}

.score-badge.rank-best {
    background: rgba(0, 139, 69, 0.15);
    border: 1px solid rgba(0, 139, 69, 0.3);
    color: var(--green-light);
}

.card-header-meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
    gap: 10px;
    flex-wrap: wrap;
}

.card-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.card-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    flex: 1;
    min-width: 0;
}

/* Action buttons row — calendar / analyze / export */
.card-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    width: 100%;
    margin-top: 6px;
}

/* Large screen, one-line header action layout */
@media (min-width: 1100px) {
    .card-header-meta {
        flex-wrap: nowrap;
    }
    .card-header-left {
        flex-wrap: nowrap;
    }
    .card-actions {
        flex-wrap: nowrap;
        width: auto;
        margin-top: 0;
        flex: 0 1 auto;
    }
}

/* =================== AI Analyze Button =================== */
.btn-analyze {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 100px;
    border: 1px solid rgba(0, 139, 69, 0.3);
    background: var(--green-subtle);
    color: var(--green-light);
    font-family: var(--font);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    min-height: 34px;        /* comfortable tap target */
    touch-action: manipulation;
}

.btn-analyze:hover {
    background: var(--green);
    color: white;
    border-color: var(--green);
}

.btn-analyze:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* =================== AI Analysis Panel =================== */
.ai-analysis-panel {
    margin: 0 16px 16px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 139, 69, 0.2);
    background: linear-gradient(135deg, rgba(0, 139, 69, 0.06), rgba(0, 139, 69, 0.02));
    overflow: hidden;
}

.ai-analysis-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(0, 139, 69, 0.12);
    font-size: 13px;
    font-weight: 700;
    color: var(--green-light);
}

.ai-analysis-body {
    padding: 14px 16px;
    font-size: 13.5px;
    line-height: 1.9;
    color: #d0d0d0;
    white-space: pre-wrap;
}

.ai-typing {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: var(--green);
    border-radius: 2px;
    animation: blink 0.7s step-end infinite;
    vertical-align: middle;
    margin-right: 2px;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* =================== Cap Warning =================== */
.cap-warning {
    background: rgba(251, 146, 60, 0.1);
    border: 1px solid rgba(251, 146, 60, 0.3);
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 13px;
    color: #fb923c;
    margin-bottom: 16px;
}

.sort-row {
    margin-bottom: 20px;
    margin-top: -8px;
}

/* =================== Export Button =================== */
.btn-export {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 100px;
    border: 1px solid rgba(96, 165, 250, 0.3);
    background: rgba(96, 165, 250, 0.08);
    color: #60a5fa;
    font-family: var(--font);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    min-height: 34px;
    touch-action: manipulation;
}

.btn-export:hover {
    background: rgba(96, 165, 250, 0.18);
    border-color: #60a5fa;
}

/* =================== Calendar View =================== */
.btn-calendar {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 100px;
    border: 1px solid rgba(167, 139, 250, 0.3);
    background: rgba(167, 139, 250, 0.08);
    color: #a78bfa;
    font-family: var(--font);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    min-height: 34px;
    touch-action: manipulation;
}

.btn-calendar:hover {
    background: rgba(167, 139, 250, 0.18);
    border-color: #a78bfa;
}

.calendar-panel {
    margin: 0 16px 16px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(167, 139, 250, 0.2);
    background: rgba(167, 139, 250, 0.04);
    overflow: hidden;
}

/* Scroll wrapper — lets the grid scroll horizontally without breaking the card */
.calendar-scroll-wrap {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;   /* smooth momentum on iOS */
    overscroll-behavior-x: contain;
    /* subtle scrollbar on desktop, hidden on touch */
    scrollbar-width: thin;
    scrollbar-color: rgba(167, 139, 250, 0.3) transparent;
}
.calendar-scroll-wrap::-webkit-scrollbar { height: 4px; }
.calendar-scroll-wrap::-webkit-scrollbar-track { background: transparent; }
.calendar-scroll-wrap::-webkit-scrollbar-thumb {
    background: rgba(167, 139, 250, 0.3);
    border-radius: 10px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: 54px repeat(6, minmax(80px, 1fr));
    min-width: 540px;   /* prevents collapse; scroll kicks in below this */
    width: 100%;
}

.cal-header {
    padding: 8px 4px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: #a78bfa;
    border-bottom: 1px solid rgba(167, 139, 250, 0.15);
    background: rgba(167, 139, 250, 0.06);
    white-space: nowrap;
}

.cal-time {
    padding: 4px 4px;
    text-align: center;
    font-size: 9px;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    direction: ltr;
    white-space: nowrap;
}

.cal-cell {
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    border-right: 1px solid rgba(255, 255, 255, 0.04);
    min-height: 28px;
    position: relative;
}

.cal-event {
    position: absolute;
    left: 2px;
    right: 2px;
    border-radius: 4px;
    padding: 2px 4px;
    font-size: 9px;
    font-weight: 600;
    color: white;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    z-index: 1;
    cursor: default;
    line-height: 1.3;
}

/* =================== Floating Chat Button =================== */
.chat-fab {
    position: fixed;
    /* safe-area-inset-bottom handles iPhone home bar (notch devices) */
    bottom: calc(32px + env(safe-area-inset-bottom, 0px));
    left: 32px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green-dark), var(--green));
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 20px rgba(0, 139, 69, 0.4);
    /* z-index must be ABOVE chat-drawer (1001) so FAB stays tappable */
    z-index: 1002;
    transition: var(--transition);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.chat-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(0, 139, 69, 0.55);
}

.chat-fab-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 18px;
    height: 18px;
    background: #e53935;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 800;
    color: white;
    display: none;
}

.chat-fab-badge.visible {
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    /* Never wider than the screen */
    width: 380px;
    max-width: 100vw;
    height: 520px;
    /* Account for iPhone home indicator */
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: #0a0a0a;
    border: 1px solid rgba(0, 139, 69, 0.2);
    border-bottom: none;
    border-radius: 20px 20px 0 0;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    transform: translateY(110%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.5);
    /* Prevent the drawer content from overflowing horizontally */
    overflow: hidden;
}

.chat-drawer.open {
    transform: translateY(0);
}

.chat-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.chat-drawer-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 700;
}

.chat-ai-dot {
    width: 10px;
    height: 10px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.chat-close-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    transition: var(--transition);
    line-height: 1;
}

.chat-close-btn:hover {
    background: var(--bg-hover);
    color: var(--text);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scrollbar-width: thin;
    scrollbar-color: var(--green-dark) transparent;
}

.chat-msg {
    max-width: 88%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.7;
    animation: msgSlide 0.2s ease;
}

@keyframes msgSlide {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-msg.user {
    align-self: flex-end;
    background: var(--green);
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-msg.assistant {
    align-self: flex-start;
    background: #1a1a1a;
    border: 1px solid var(--border);
    color: #d8d8d8;
    border-bottom-left-radius: 4px;
    white-space: pre-wrap;
}

.chat-msg.assistant.thinking {
    color: var(--text-secondary);
    font-style: italic;
}

.chat-msg .msg-label {
    font-size: 10px;
    font-weight: 700;
    opacity: 0.6;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chat-input-area {
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 10px;
    align-items: flex-end;
    flex-shrink: 0;
}

.chat-input {
    flex: 1;
    background: #111;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 14px;
    color: var(--text);
    font-family: var(--font);
    font-size: 13px;
    resize: none;
    outline: none;
    max-height: 100px;
    line-height: 1.5;
    transition: var(--transition);
}

.chat-input:focus {
    border-color: var(--green);
}

.chat-input::placeholder {
    color: var(--gray-500);
}

.chat-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--green);
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}

.chat-send-btn:hover {
    background: var(--green-light);
}

.chat-send-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.chat-suggestions {
    padding: 8px 16px 0;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.chat-suggestion {
    padding: 5px 12px;
    border-radius: 100px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font);
    font-size: 11px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.chat-suggestion:hover {
    border-color: var(--green);
    color: var(--green-light);
    background: var(--green-subtle);
}

/* =================== Scrape Row & Last Update Badge =================== */
.scrape-row {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 24px;
}

.glass-update-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(0, 139, 69, 0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 139, 69, 0.18);
    border-radius: 100px;
    box-shadow:
        0 0 0 1px rgba(0, 139, 69, 0.06) inset,
        0 4px 24px rgba(0, 0, 0, 0.25),
        0 1px 0 rgba(255, 255, 255, 0.04) inset;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
}

.glass-update-badge:hover {
    background: rgba(0, 139, 69, 0.1);
    border-color: rgba(0, 139, 69, 0.3);
    box-shadow:
        0 0 0 1px rgba(0, 139, 69, 0.1) inset,
        0 6px 28px rgba(0, 0, 0, 0.3),
        0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

.glass-update-badge .icon {
    font-size: 15px;
    opacity: 0.8;
}

.glass-update-badge .label {
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    opacity: 0.7;
}

.glass-update-badge .value {
    color: var(--white);
    font-weight: 700;
    letter-spacing: 0.5px;
    font-family: monospace;
    font-size: 13px;
}

/* =================== Selected Courses Panel =================== */
.selected-panel {
    background: var(--bg-card);
    border: 1px solid rgba(0, 139, 69, 0.2);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    margin-bottom: 16px;
}

.selected-panel-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--green-light);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.selected-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.selected-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--green-subtle);
    border: 1px solid rgba(0, 139, 69, 0.25);
    color: var(--text);
    font-size: 12px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 100px;
}

.selected-tag-remove {
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 11px;
    line-height: 1;
    transition: var(--transition);
}

.selected-tag-remove:hover {
    color: #e57373;
}

.selected-panel-empty {
    font-size: 12px;
    color: var(--gray-500);
    font-style: italic;
}

/* =================== Toast Notification =================== */
.toast {
    position: fixed;
    /* Sit above FAB height (58px) + bottom offset (32px) + gap */
    bottom: calc(110px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--bg-card);
    border: 1px solid rgba(0, 139, 69, 0.3);
    border-radius: var(--radius-md);
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--green-light);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    /* Never wider than viewport */
    max-width: calc(100vw - 32px);
    white-space: nowrap;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* =================== Responsive =================== */

/* ── Tablet landscape (≤1024px) ── */
@media (max-width: 1024px) {
    .main-layout { grid-template-columns: 300px 1fr; gap: 16px; }
    .ai-features { gap: 16px; }
}

/* ── Tablet portrait / iPad (≤900px) ── */
@media (max-width: 900px) {

    /* Layout: stack sidebar above results */
    .main-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Sidebar becomes scrollable card, not sticky */
    .sidebar {
        position: relative;
        top: 0;
        height: auto;
        max-height: 70vh;
        overflow: hidden;       /* back to hidden — ok since not sticky */
    }

    /* RTL layout: المادة+المحاضر (right) | الشعبة (mid) | الوقت (left) */
    .section-row {
        grid-template-columns: 1fr 44px auto;
        grid-template-rows: auto auto;
        gap: 2px 10px;
        align-items: start;
    }
    .section-course-name {
        grid-column: 1;
        grid-row: 1;
        font-size: 13px;
        font-weight: 700;
    }
    .section-instructor {
        grid-column: 1;
        grid-row: 2;
        font-size: 11px;
        color: var(--green-light);
        opacity: 0.9;
        margin-top: 1px;
    }
    .section-instructor:empty { display: none; }
    .section-num {
        grid-column: 2;
        grid-row: 1 / 3;
        align-self: center;
        text-align: center;
        font-size: 13px;
        font-weight: 700;
        color: var(--green-light);
    }
    .section-time {
        grid-column: 3;
        grid-row: 1 / 3;
        align-self: center;
        text-align: left;
        font-size: 12px;
        direction: ltr;
        color: var(--text-secondary);
    }
    .table-header {
        grid-template-columns: 1fr 52px 110px;
    }
    .table-header span:last-child { display: none; }

    /* Card header: stack vertically so buttons don't crunch */
    .card-header-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .card-header-left { width: 100%; flex-wrap: wrap; gap: 6px; }
    .score-badges { flex-wrap: wrap; }

    /* 3 buttons share the full width equally */
    .btn-calendar, .btn-analyze, .btn-export {
        flex: 1 1 0;
        justify-content: center;
        min-width: 0;
    }

    /* Calendar columns tighter */
    .calendar-grid {
        grid-template-columns: 46px repeat(6, minmax(70px, 1fr));
    }

    /* Chat drawer: wider on iPad */
    .chat-drawer { width: min(420px, 100vw); }

    .scrape-row { padding: 0 16px; }
}

/* ── Large phones / small tablets (≤768px) ── */
@media (max-width: 768px) {

    .app-container { padding: 0 16px; }
    .header { padding: 24px 0 16px; }
    .header p { font-size: 14px; }

    .ai-features { gap: 12px; margin-bottom: 20px; }
    .ai-feature  { font-size: 12px; }

    .stats-bar { gap: 16px; padding: 16px 0; margin-bottom: 16px; }

    .results-header { flex-direction: column; align-items: flex-start; }
    .sort-controls  { width: 100%; }
    .sort-btn       { font-size: 11px; padding: 6px 10px; }

    .card-header { padding: 14px 16px; }

    /* Chat drawer: full width bottom sheet */
    .chat-drawer {
        width: 100vw;
        max-width: 100vw;
        left: 0;
        right: 0;
        border-radius: 20px 20px 0 0;
        height: 75vh;
        max-height: 75vh;
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    .chat-fab {
        bottom: calc(24px + env(safe-area-inset-bottom, 0px));
        left: 20px;
        width: 52px;
        height: 52px;
        font-size: 22px;
        /* Extra glow so it's visible against dark content */
        box-shadow: 0 4px 24px rgba(0, 139, 69, 0.65),
                    0 0 0 3px rgba(0, 0, 0, 0.4);
    }

    .glass-update-badge { font-size: 12px; padding: 8px 16px; gap: 8px; }

    .section-row { grid-template-columns: 2fr 0.55fr 1.3fr; padding: 10px 14px; font-size: 12px; gap: 6px; }
    .calendar-panel   { margin: 0 10px 12px; }
    .ai-analysis-panel{ margin: 0 10px 12px; }
}

/* ── Standard phones (≤600px) ── */
@media (max-width: 600px) {

    .app-container { padding: 0 12px; }
    .header { padding: 20px 0 12px; }
    .header h1 { font-size: clamp(22px, 6vw, 30px); line-height: 1.35; }
    .header p  { font-size: 13px; }

    .scrape-row { padding: 0; margin-top: 16px; }
    .glass-update-badge { width: 100%; justify-content: center; padding: 10px 14px; }

    .ai-features { justify-content: flex-start; gap: 8px; }
    .ai-feature  { font-size: 11px; gap: 6px; }
    .ai-feature-icon { width: 28px; height: 28px; font-size: 14px; }

    .stats-bar { gap: 8px; justify-content: space-between; }
    .stat-item  { flex-direction: column; text-align: center; gap: 4px; flex: 1; }
    .stat-info  { text-align: center; }
    .stat-value { font-size: 18px; }
    .stat-icon  { width: 34px; height: 34px; font-size: 16px; }

    .sidebar { max-height: 80vh; }
    .sidebar-header { padding: 16px; }
    .sidebar-header h2 { font-size: 15px; }
    .search-box { padding: 10px 16px; }
    .sidebar-footer { padding: 12px 16px; }

    .btn-generate { padding: 13px; font-size: 14px; }
    .btn-clear    { padding: 9px 12px; margin-top: 8px; font-size: 13px; }

    .selected-panel { padding: 12px 14px; }
    .results-title  { font-size: 17px; }
    .sort-controls  { gap: 6px; }
    .sort-label     { font-size: 12px; }
    .sort-btn       { font-size: 10px; padding: 5px 8px; }

    .schedule-card { margin-bottom: 12px; }
    .card-header   { padding: 12px 14px; }

    /* 3 action buttons: each takes 1/3 of the row */
    .btn-calendar, .btn-analyze, .btn-export {
        flex: 1 1 0;
        font-size: 10px;
        padding: 7px 4px;
        gap: 3px;
        min-height: 34px;
        justify-content: center;
    }

    /* Same RTL grid on small phones: المادة+المحاضر | ش. | الوقت */
    .section-row {
        display: grid;
        grid-template-columns: 1fr 44px auto;
        grid-template-rows: auto auto;
        gap: 2px 8px;
        align-items: start;
        padding: 10px 12px;
    }
    .section-row .section-course-name {
        grid-column: 1; grid-row: 1;
        font-size: 12px; font-weight: 700; color: var(--white);
    }
    .section-row .section-instructor {
        grid-column: 1; grid-row: 2;
        font-size: 11px; color: var(--green-light); opacity: 0.9;
    }
    .section-row .section-num {
        grid-column: 2; grid-row: 1 / 3;
        align-self: center; text-align: center;
        font-size: 12px; font-weight: 700; color: var(--green-light);
    }
    .section-row .section-time {
        grid-column: 3; grid-row: 1 / 3;
        align-self: center; text-align: left;
        font-size: 11px; direction: ltr; color: var(--text-secondary);
    }

    .pagination { gap: 4px; margin-top: 16px; }
    .page-btn   { min-width: 34px; height: 34px; font-size: 13px; }

    .empty-state { height: 380px; padding: 24px 16px; }
    .empty-icon  { width: 80px; height: 80px; font-size: 38px; }
    .empty-state h3 { font-size: 18px; }
    .empty-state p  { font-size: 13px; }

    .chat-drawer {
        height: 82vh;
        max-height: 82vh;
    }
    .chat-fab {
        bottom: calc(20px + env(safe-area-inset-bottom, 0px));
        left: 16px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    .toast {
        font-size: 12px;
        padding: 10px 16px;
        bottom: calc(90px + env(safe-area-inset-bottom, 0px));
    }

    .calendar-grid { grid-template-columns: 40px repeat(6, minmax(60px, 1fr)); }
    .cal-header     { font-size: 10px; padding: 6px 2px; }
}

/* ── Small phones (≤400px) ── */
@media (max-width: 400px) {
    .app-container { padding: 0 10px; }
    .header h1 { font-size: 20px; }

    .ai-features { flex-wrap: wrap; }
    .stats-bar   { gap: 6px; }
    .stat-value  { font-size: 16px; }
    .stat-label  { font-size: 10px; }

    .btn-generate { font-size: 13px; padding: 12px; }

    .btn-calendar, .btn-analyze, .btn-export {
        font-size: 9px;
        padding: 6px 3px;
        gap: 2px;
    }

    .score-badge { font-size: 10px; padding: 2px 7px; }
    .sort-btn    { font-size: 9px; padding: 5px 6px; }

    .chat-drawer { height: 85vh; max-height: 85vh; }
    .chat-fab    { left: 12px; width: 46px; height: 46px; font-size: 18px; }
    .chat-input  { font-size: 12px; }
    .chat-msg    { font-size: 12px; }

    .calendar-grid { grid-template-columns: 36px repeat(6, minmax(52px, 1fr)); }
}

/* ── Landscape phones (short screen) ── */
@media (max-height: 500px) and (orientation: landscape) {
    .header    { padding: 14px 0 10px; }
    .header h1 { font-size: 22px; }

    .sidebar   { max-height: 60vh; }
    .empty-state { height: 260px; }

    .chat-drawer {
        height: 90vh;
        max-height: 90vh;
        padding-bottom: 0;
        /* landscape: safe area on sides, not bottom */
        padding-right: env(safe-area-inset-right, 0px);
    }
    .chat-fab {
        bottom: 16px;
        left: calc(16px + env(safe-area-inset-left, 0px));
    }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}