/* IEU Timetable - Premium Light Design System */
/* Clean, Modern, Professional */

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

:root {
    /* Light Theme - Primary Palette */
    --white: #ffffff;
    --gray-50: #fafafa;
    --gray-100: #f4f4f5;
    --gray-200: #e4e4e7;
    --gray-300: #d4d4d8;
    --gray-400: #a1a1aa;
    --gray-500: #71717a;
    --gray-600: #52525b;
    --gray-700: #3f3f46;
    --gray-800: #27272a;
    --gray-900: #18181b;
    
    /* Brand Colors */
    --primary: #2563eb;
    --primary-light: #60a5fa;
    --primary-dark: #1d4ed8;
    --secondary: #7c3aed;
    --accent: #06b6d4;
    
    /* Semantic Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;    
    /* Layout Variables */
    --max-width: 1280px;
    --border-radius: 16px;
    --border-radius-sm: 8px;
    --border-radius-lg: 24px;
    
    /* Shadows - Subtle and Clean */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.10);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.12);
    
    /* Typography */
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
    --font-display: 'Inter', var(--font-sans);
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--gray-900);    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Background Pattern - Subtle */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, var(--primary) 0%, transparent 0.5%),
        radial-gradient(circle at 75% 75%, var(--accent) 0%, transparent 0.5%);
    background-size: 50px 50px;
    opacity: 0.03;
    z-index: -1;
}

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Header Section */
.header-section {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.9);
    padding: 24px 0;
    box-shadow: var(--shadow-sm);
}

/* Title Styling */
.header-section h1 {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 800;
    color: var(--gray-900);
    text-align: center;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.header-section p {
    text-align: center;
    font-size: 14px;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}

/* Select Dropdowns */
.fo {
    margin: 16px 0;
}
.fo select {
    width: 100%;
    padding: 14px 20px;
    padding-right: 48px;
    background: var(--white);
    color: var(--gray-900);
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius-sm);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9L12 15L18 9' stroke='%2371717a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 20px;
}

.fo select:hover {
    border-color: var(--primary);
    background-color: var(--gray-50);
}

.fo select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Option styling */.fo option {
    padding: 12px;
    background: var(--white);
    color: var(--gray-900);
}

/* Announcements Button */
#toggle-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--warning), var(--danger));
    border: none;
    border-radius: var(--border-radius);
    color: var(--white);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition-base);
    margin: 24px 0;
    box-shadow: var(--shadow-md);
    text-decoration: none;
}

#toggle-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

#toggle-button img {
    width: 20px;    height: 20px;
    filter: brightness(0) invert(1);
}

#toggle-button strong {
    background: rgba(255, 255, 255, 0.3);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
}

/* Announcements Content */
#content_o {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow);
}

#content_o.show {
    max-height: 1000px;
}

.oholosha {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-left: 4px solid var(--warning);
    border-radius: var(--border-radius-sm);
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}
.oholosha:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

/* Week Navigation */
.week-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 32px 0;
}

.yaktyj {
    display: inline-flex;
    align-items: center;
    gap: 24px;
    padding: 12px 32px;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-900);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.yaktyj:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}
.yaktyj a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--gray-100);
    border-radius: 50%;
    color: var(--primary);
    text-decoration: none;
    font-size: 20px;
    transition: all var(--transition-fast);
}

.yaktyj a:hover {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.1);
}

/* Schedule Changes Alert */
.zmina {
    display: inline-block;
    padding: 8px 16px;
    background: var(--gray-100);
    border-left: 3px solid var(--info);
    border-radius: var(--border-radius-sm);
    color: var(--gray-700);
    font-size: 14px;
    font-weight: 500;
    margin: 16px 0;
}
/* Schedule Container */
.schedule-container {
    padding: 32px 0;
}

/* Day Blocks */
.bloknaden {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    margin: 16px 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.bloknaden:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

/* Day Header */
.dentyjna {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    padding: 16px;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.dentyjna span {
    display: block;
    font-size: 14px;
    font-weight: 400;
    opacity: 0.9;
    margin-top: 4px;
}

/* Class Cards */
.para {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-sm);
    margin: 12px;
    padding: 0;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
    cursor: default;
}

.para:hover {
    background: var(--white);
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

/* Class Type Indicators */
.para[data-type="lecture"] {
    border-left: 4px solid var(--success);
}
.para[data-type="practical"] {
    border-left: 4px solid var(--info);
}

.para[data-type="lab"] {
    border-left: 4px solid var(--secondary);
}

.para[data-type="exam"] {
    border-left: 4px solid var(--danger);
    background: rgba(239, 68, 68, 0.05);
}

/* Time Header */
.hodyny {
    background: var(--gray-100);
    padding: 8px 16px;
    color: var(--gray-600);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--gray-200);
}

/* Class Content */
.para p {
    padding: 16px;    color: var(--gray-900);
    line-height: 1.5;
}

.para p span {
    display: block;
    margin-bottom: 8px;
}

/* Subject Name */
.predmet {
    color: var(--gray-900);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

/* Teacher Info */
.teacher {
    color: var(--gray-600);
    font-size: 14px;
}

/* Room Info */
.room {
    color: var(--gray-500);
    font-size: 13px;
}

/* Type Badge */
.type {
    display: inline-block;
    padding: 4px 12px;    background: var(--gray-100);
    border: 1px solid var(--gray-300);
    border-radius: 20px;
    color: var(--gray-700);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 8px;
}

/* Note */
.note {
    display: inline-block;
    padding: 4px 8px;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 4px;
    color: var(--warning);
    font-size: 12px;
    margin-top: 8px;
}

/* Course Link */
.nakurs {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all var(--transition-fast);
}

.nakurs:hover {
    border-bottom-color: var(--primary);
}
/* Video Link */
.video-link {
    position: absolute;
    bottom: 12px;
    right: 12px;
    padding: 6px 12px;
    background: var(--primary);
    border-radius: 20px;
    color: var(--white);
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-base);
}

.video-link:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

/* Camera Position */
.kam {
    position: absolute;
    bottom: 12px;
    right: 12px;
}

/* Footer */
.Made_by {
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    padding: 48px 24px 32px;    margin-top: 64px;
    text-align: center;
}

/* Footer Links */
.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 32px;
}

.footer-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    transition: all var(--transition-base);
}

.footer-links a:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.footer-links img {    width: 24px;
    height: 24px;
    opacity: 0.7;
    transition: all var(--transition-base);
}

.footer-links a:hover img {
    filter: brightness(0) invert(1);
    opacity: 1;
}

/* Footer Info */
.footer-info {
    color: var(--gray-600);
    font-size: 14px;
    line-height: 1.8;
}

.footer-info strong {
    color: var(--primary);
    font-size: 28px;
    font-weight: 700;
    display: block;
    margin: 8px 0;
}

/* Loading Screen */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;    height: 100%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

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

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

/* Responsive Grid */
@media (min-width: 768px) {
    .bloknaden {
        width: calc(50% - 16px);
        float: left;
    }
}

@media (min-width: 1024px) {
    .bloknaden {        width: calc(33.333% - 16px);
    }
}

@media (min-width: 1280px) {
    .bloknaden {
        width: calc(20% - 16px);
    }
}

/* Mobile Responsive */
@media (max-width: 767px) {
    .container {
        padding: 0 16px;
    }
    
    .header-section h1 {
        font-size: 24px;
    }
    
    .fo select {
        font-size: 14px;
        padding: 12px 16px;
    }
    
    .bloknaden {
        width: 100%;
        margin: 8px 0;
    }
    
    .para {
        margin: 8px;
    }    
    .dentyjna {
        font-size: 16px;
        padding: 12px;
    }
    
    .predmet {
        font-size: 14px;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}

/* Focus States */
*:focus-visible {    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Selection */
::selection {
    background: var(--primary);
    color: var(--white);
}

/* Links */
a {
    color: var(--primary);
    text-decoration: none;
    transition: all var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .header-section,
    .footer-links,
    .page-loader,
    #toggle-button,
    .week-navigation {        display: none;
    }
    
    .para {
        page-break-inside: avoid;
        border: 1px solid #ddd;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Utility Classes */.clear {
    clear: both;
}

/* Smooth Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Apply animations */
.bloknaden {
    animation: slideIn 0.5s ease;
}

.para {
    animation: fadeIn 0.3s ease;
}

/* End of Stylesheet */