/* Banner z problemem technicznym */
.technical-banner {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    padding: 12px 16px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
    border-bottom: 3px solid #991b1b;
    animation: slideDown 0.3s ease-out;
    display: none;
}

.technical-banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.banner-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #fef2f2;
    animation: pulse 2s infinite;
}

.banner-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}

.banner-text strong {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 2px;
    color: #fef2f2;
}

.banner-text span {
    font-size: 13px;
    color: #fecaca;
    font-weight: 500;
}

.close-banner-btn {
    position: absolute;
    right: 0;
    background: none;
    border: none;
    color: #fecaca;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-banner-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: scale(1.1);
}

.close-banner-btn i {
    width: 16px;
    height: 16px;
}

/* Animacje dla bannera */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(-100%);
        opacity: 0;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Dodaj padding-top do body gdy banner jest widoczny */
body.banner-visible {
    padding-top: 60px;
}

/* Responsywność bannera */
@media (max-width: 640px) {
    .technical-banner {
        padding: 10px 12px;
    }
    
    .technical-banner-content {
        gap: 8px;
    }
    
    .banner-text {
        align-items: flex-start;
        text-align: left;
    }
    
    .banner-text strong {
        font-size: 13px;
    }
    
    .banner-text span {
        font-size: 12px;
    }
    
    body.banner-visible {
        padding-top: 55px;
    }
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 16px;
    color: #1e293b;
}

.container {
    max-width: 420px;
    margin: 0 auto;
    background: white;
    border-radius: 24px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12), 0 8px 16px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(20px);
}

header {
    background: white;
    color: #1e293b;
    padding: 32px 24px 24px;
    text-align: center;
    position: relative;
}

header::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 5px;
    background: #000;
    border-radius: 3px;
}

header h1 {
    font-size: 1.5rem;
    margin-bottom: 4px;
    font-weight: 600;
    color: #1e293b;
}

header p {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 12px;
} */

/* Status danych */
/* .data-status {
    background: #f1f5f9;
    padding: 8px 16px;
    border-radius: 20px;
    margin: 0 auto;
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.data-status.loading {
    background: #fef3c7;
    color: #92400e;
    border-color: #f59e0b;
}

.data-status.success {
    background: #dcfce7;
    color: #166534;
    border-color: #22c55e;
}

.data-status.error {
    background: #fee2e2;
    color: #dc2626;
    border-color: #ef4444;
}

main {
    padding: 0 24px 24px;
}

.controls {
    background: #f8fafc;
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 16px;
    border: 1px solid #e2e8f0;
}

.filter-group {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s ease;
    font-size: 0.9rem;
    color: #475569;
}

.filter-group label:hover {
    color: #0ea5e9;
}

.filter-group input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: #0ea5e9;
}

.selector-container {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

#item-selector {
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.9rem;
    min-width: 200px;
    transition: all 0.2s ease;
    background: white;
    color: #1e293b;
}

#item-selector:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

#item-selector:disabled {
    background-color: #f8fafc;
    color: #94a3b8;
    cursor: not-allowed;
}

#load-btn {
    padding: 12px 24px;
    background: #0ea5e9;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

#load-btn:hover:not(:disabled) {
    background: #0284c7;
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(14, 165, 233, 0.3);
}

#load-btn:active:not(:disabled) {
    transform: translateY(0);
}

#load-btn:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.loading {
    text-align: center;
    padding: 32px;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e2e8f0;
    border-top: 3px solid #0ea5e9;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.schedule-container {
    margin-top: 16px;
}

.schedule-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.schedule-table th {
    background: #f8fafc;
    color: #475569;
    padding: 12px 8px;
    text-align: center;
    font-weight: 600;
    font-size: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.schedule-table td {
    padding: 8px 4px;
    text-align: center;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: top;
    position: relative;
}

.schedule-table tr:hover {
    background-color: #f8fafc;
}

.lesson-number {
    background: #f1f5f9;
    font-weight: 600;
    color: #475569;
    font-size: 0.75rem;
    width: 60px;
    min-width: 60px;
    border-right: 1px solid #e2e8f0;
}

.lesson-cell {
    min-width: 80px;
    padding: 4px 2px;
}

.lesson {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #0ea5e9;
    border-radius: 8px;
    padding: 6px;
    margin: 1px 0;
    font-size: 0.7rem;
    line-height: 1.2;
    text-align: left;
    box-shadow: 0 2px 4px rgba(14, 165, 233, 0.1);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.lesson::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
}

.lesson:hover {
    border-color: #0284c7;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.25);
    transform: translateY(-1px) scale(1.02);
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
}

.lesson .subject {
    font-weight: 600;
    color: #0c4a6e;
    margin-bottom: 2px;
    font-size: 0.75rem;
}

.lesson .details {
    font-size: 0.65rem;
    color: #64748b;
    line-height: 1.1;
}

.lesson .teacher {
    color: #059669;
    font-weight: 500;
}

.lesson .room {
    color: #dc2626;
    font-weight: 500;
}

.lesson .class {
    color: #7c3aed;
    font-weight: 500;
}

.lesson .group {
    color: #dc2626;
    font-size: 0.6rem;
    font-weight: 600;
    background: rgba(220, 38, 38, 0.1);
    padding: 1px 4px;
    border-radius: 4px;
    margin-top: 2px;
    display: inline-block;
    border: 1px solid rgba(220, 38, 38, 0.2);
}


.lesson[data-subject*="matematyka"], .lesson[data-subject*="mat"] {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #f59e0b;
}

.lesson[data-subject*="matematyka"]::before, .lesson[data-subject*="mat"]::before {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.lesson[data-subject*="język"], .lesson[data-subject*="pol"] {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-color: #ef4444;
}

.lesson[data-subject*="język"]::before, .lesson[data-subject*="pol"]::before {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.lesson[data-subject*="fizyka"], .lesson[data-subject*="fiz"] {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    border-color: #6366f1;
}

.lesson[data-subject*="fizyka"]::before, .lesson[data-subject*="fiz"]::before {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
}

.lesson[data-subject*="chemia"], .lesson[data-subject*="chem"] {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border-color: #22c55e;
}

.lesson[data-subject*="chemia"]::before, .lesson[data-subject*="chem"]::before {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.lesson[data-subject*="historia"], .lesson[data-subject*="hist"] {
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
    border-color: #a855f7;
}

.lesson[data-subject*="historia"]::before, .lesson[data-subject*="hist"]::before {
    background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
}

.lesson[data-subject*="geografia"], .lesson[data-subject*="geo"] {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-color: #10b981;
}

.lesson[data-subject*="geografia"]::before, .lesson[data-subject*="geo"]::before {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
} */

/* .lesson[data-subject*="informatyka"], .lesson[data-subject*="inf"] {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-color: #0ea5e9;
}

.lesson[data-subject*="informatyka"]::before, .lesson[data-subject*="inf"]::before {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
}

.lesson[data-subject*="wf"], .lesson[data-subject*="sport"] {
    background: linear-gradient(135deg, #fff7ed 0%, #fed7aa 100%);
    border-color: #f97316;
}

.lesson[data-subject*="wf"]::before, .lesson[data-subject*="sport"]::before {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

.error-message {
    background: #fef2f2;
    color: #dc2626;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #fecaca;
    margin: 16px 0;
    text-align: center;
    font-size: 0.9rem;
}

.hidden {
    display: none;
} */

/* Footer z metadanymi */
/* .footer {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 16px 24px;
    margin-top: 0;
}

.metadata {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    font-size: 0.75rem;
    color: #64748b;
}

.metadata p {
    margin: 0;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.metadata span {
    font-weight: 600;
    color: #475569;
} */

/* Responsywność */
/* @media (max-width: 480px) {
    body {
        padding: 8px;
    }
    
    .container {
        border-radius: 16px;
        max-width: 100%;
    }
    
    header {
        padding: 24px 16px 16px;
    }
    
    header h1 {
        font-size: 1.25rem;
    }
    
    header p {
        font-size: 0.8rem;
    }
    
    .data-status {
        font-size: 0.7rem;
        padding: 6px 12px;
    }
    
    main {
        padding: 0 16px 16px;
    }
    
    .controls {
        padding: 16px;
        border-radius: 12px;
    }
    
    .filter-group {
        flex-direction: column;
        gap: 8px;
        align-items: center;
        margin-bottom: 12px;
    }
    
    .filter-group label {
        font-size: 0.8rem;
    }
    
    .selector-container {
        flex-direction: column;
        gap: 8px;
    }
    
    #item-selector {
        min-width: 100%;
        font-size: 0.8rem;
        padding: 10px 12px;
    }
    
    #load-btn {
        width: 100%;
        font-size: 0.8rem;
        padding: 10px 16px;
    }
    
    .schedule-table {
        font-size: 0.65rem;
    }
    
    .schedule-table th,
    .schedule-table td {
        padding: 6px 2px;
    }
    
    .lesson-number {
        width: 50px;
        min-width: 50px;
        font-size: 0.65rem;
    }
    
    .lesson-cell {
        min-width: 70px;
        padding: 2px 1px;
    }
    
    .lesson {
        padding: 4px;
        font-size: 0.6rem;
        margin: 0.5px 0;
        border-radius: 6px;
    }
    
    .lesson .subject {
        font-size: 0.65rem;
        margin-bottom: 1px;
    }
    
    .lesson .details {
        font-size: 0.55rem;
    }
    
    .lesson .group {
        font-size: 0.5rem;
        padding: 1px 3px;
    }
    
    .footer {
        padding: 12px 16px;
    }
    
    .metadata {
        font-size: 0.7rem;
        gap: 6px;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .container {
        max-width: 480px;
    }
    
    .filter-group {
        gap: 16px;
        flex-wrap: wrap;
    }
    
    .selector-container {
        gap: 10px;
    }
    
    .metadata {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
}

@media (min-width: 769px) {
    body {
        padding: 24px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }
    
    .container {
        max-width: 480px;
        border-radius: 28px;
    }
    
    header {
        padding: 40px 32px 32px;
    }
    
    header h1 {
        font-size: 1.75rem;
    }
    
    main {
        padding: 0 32px 32px;
    }
    
    .controls {
        padding: 24px;
        border-radius: 20px;
    }
    
    .filter-group {
        gap: 24px;
    }
    
    .selector-container {
        gap: 16px;
    }
    
    #item-selector {
        font-size: 1rem;
        padding: 14px 20px;
        min-width: 240px;
    }
    
    #load-btn {
        font-size: 1rem;
        padding: 14px 28px;
    }
    
    .schedule-table {
        font-size: 0.8rem;
    }
    
    .lesson-number {
        width: 80px;
        min-width: 80px;
        font-size: 0.8rem;
    }
    
    .lesson-cell {
        min-width: 120px;
        padding: 8px 4px;
    }
    
    .lesson {
        font-size: 0.8rem;
        padding: 8px;
        margin: 2px 0;
    }
    
    .lesson .subject {
        font-size: 0.85rem;
    }
    
    .lesson .details {
        font-size: 0.75rem;
    }
    
    .metadata {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 16px;
        font-size: 0.8rem;
    }
    
    .metadata p {
        flex-direction: column;
        text-align: center;
        gap: 4px;
    }
    
    .footer {
        padding: 24px 32px;
    }
}
 */
/* Dodatkowe efekty animacji */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.container {
    animation: fadeIn 0.6s ease-out;
}

.lesson {
    animation: slideIn 0.3s ease-out;
    animation-fill-mode: both;
}

.lesson:nth-child(1) { animation-delay: 0.1s; }
.lesson:nth-child(2) { animation-delay: 0.2s; }
.lesson:nth-child(3) { animation-delay: 0.3s; }
.lesson:nth-child(4) { animation-delay: 0.4s; }
.lesson:nth-child(5) { animation-delay: 0.5s; }

#load-btn {
    position: relative;
    overflow: hidden;
}

#load-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

#load-btn:active::before {
    width: 300px;
    height: 300px;
}

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

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 100vh;
    padding: 20px;
    color: #e2e8f0;
}

.container {
    max-width: 1400px; /* Szerszy kontener */
    margin: 0 auto;
    background: rgba(30, 41, 59, 0.95);
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(148, 163, 184, 0.1);
    overflow: hidden;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(148, 163, 184, 0.1);
}

header {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: #f1f5f9;
    padding: 40px;
    text-align: center;
    position: relative;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.5), transparent);
}

header h1 {
    font-size: 3rem;
    margin-bottom: 12px;
    font-weight: 300;
    background: linear-gradient(135deg, #f1f5f9 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

header p {
    font-size: 1.2rem;
    opacity: 0.8;
    color: #94a3b8;
}

.data-status {
    background: rgba(15, 23, 42, 0.8);
    padding: 12px 24px;
    border-radius: 25px;
    margin: 20px auto 0;
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 500;
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.2);
    backdrop-filter: blur(10px);
}

.data-status.loading {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.3);
}

.data-status.success {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
    border-color: rgba(34, 197, 94, 0.3);
}

.data-status.error {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.3);
}

main {
    padding: 40px;
}

.controls {
    background: rgba(15, 23, 42, 0.7);
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 40px;
    border: 1px solid rgba(148, 163, 184, 0.1);
    backdrop-filter: blur(15px);
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.filter-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-section label {
    font-weight: 600;
    color: #f1f5f9;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-section select {
    padding: 16px 20px;
    border: 2px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    font-size: 1rem;
    background: rgba(30, 41, 59, 0.8);
    color: #f1f5f9;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.filter-section select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.filter-section select:disabled {
    background: rgba(15, 23, 42, 0.5);
    color: #64748b;
    cursor: not-allowed;
}

.filter-section select option {
    background: #1e293b;
    color: #f1f5f9;
    padding: 12px;
}

.action-container {
    display: flex;
    justify-content: center;
}

#load-btn {
    padding: 16px 48px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

#load-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
}

#load-btn:active:not(:disabled) {
    background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
}

#load-btn:disabled {
    background: rgba(71, 85, 105, 0.5);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.loading {
    text-align: center;
    padding: 60px;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(148, 163, 184, 0.2);
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 24px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.schedule-container {
    margin-top: 40px;
}

.schedule-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: rgba(15, 23, 42, 0.8);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.schedule-table th {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: #f1f5f9;
    padding: 20px 16px;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.schedule-table td {
    padding: 16px 12px;
    text-align: center;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    vertical-align: top;
    position: relative;
    background: rgba(30, 41, 59, 0.3);
}

.schedule-table tr:hover td {
    background: rgba(30, 41, 59, 0.6);
}

.lesson-number {
    background: rgba(15, 23, 42, 0.8);
    font-weight: 600;
    color: #cbd5e1;
    font-size: 0.9rem;
    width: 80px;
    min-width: 80px;
    border-right: 1px solid rgba(148, 163, 184, 0.2);
}

.lesson-cell {
    min-width: 120px;
    padding: 12px 8px;
}

.lesson {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(29, 78, 216, 0.15) 100%);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    padding: 12px;
    margin: 4px 0;
    font-size: 0.85rem;
    line-height: 1.4;
    text-align: left;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.lesson::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.lesson:hover {
    border-color: #2563eb;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25) 0%, rgba(29, 78, 216, 0.25) 100%);
}

.lesson .subject {
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.lesson .details {
    font-size: 0.8rem;
    color: #cbd5e1;
    line-height: 1.3;
}

.lesson .teacher {
    color: #4ade80;
    font-weight: 500;
}

.lesson .room {
    color: #f87171;
    font-weight: 500;
}

.lesson .class {
    color: #a78bfa;
    font-weight: 500;
}

.lesson .group {
    color: #fbbf24;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(245, 158, 11, 0.2);
    padding: 4px 8px;
    border-radius: 6px;
    margin-top: 6px;
    display: inline-block;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.error-message {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid rgba(239, 68, 68, 0.3);
    margin: 24px 0;
    text-align: center;
    font-size: 1rem;
    backdrop-filter: blur(10px);
}

.hidden {
    display: none;
}

.footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    padding: 32px 40px;
    margin-top: 0;
}

.metadata {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    font-size: 0.9rem;
    color: #94a3b8;
}

.metadata p {
    margin: 0;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.metadata span {
    font-weight: 600;
    color: #f1f5f9;
}

/* Sekcja informacji o aplikacji */
.app-info {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.app-links {
    display: flex;
    gap: 16px;
    align-items: center;
}

.app-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #94a3b8;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.1);
    transition: all 0.2s ease;
    font-size: 0.85rem;
    font-weight: 500;
}

.app-links a:hover {
    color: #f1f5f9;
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.3);
}

.github-link:hover {
    background: rgba(88, 166, 255, 0.2);
    border-color: rgba(88, 166, 255, 0.3);
}

.feedback-link:hover {
    background: rgba(248, 113, 113, 0.2);
    border-color: rgba(248, 113, 113, 0.3);
}

.app-links i {
    width: 16px;
    height: 16px;
}

.app-version {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #64748b;
}

.version-label {
    font-weight: 500;
}

.version-number {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #94a3b8;
    background: rgba(30, 41, 59, 0.8);
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid rgba(148, 163, 184, 0.1);
}

/* Responsywność */
@media (max-width: 768px) {
    body {
        padding: 12px;
    }
    
    .container {
        border-radius: 16px;
        max-width: 100%;
    }
    
    header {
        padding: 24px 20px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    header p {
        font-size: 1rem;
    }
    
    main {
        padding: 24px 20px;
    }
    
    .controls {
        padding: 24px;
        border-radius: 16px;
    }
    
    .filter-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 24px;
    }
    
    .filter-section select {
        padding: 14px 16px;
        font-size: 0.9rem;
    }
    
    #load-btn {
        padding: 14px 32px;
        font-size: 1rem;
        width: 100%;
    }
    
    .schedule-table {
        font-size: 0.8rem;
        min-width: 600px;
    }
    
    .schedule-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .schedule-table th,
    .schedule-table td {
        padding: 12px 8px;
        white-space: nowrap;
    }
    
    .lesson-number {
        width: 60px;
        min-width: 60px;
        font-size: 0.8rem;
    }
    
    .lesson-cell {
        min-width: 100px;
        padding: 8px 4px;
    }
    
    .lesson {
        padding: 8px;
        font-size: 0.75rem;
        margin: 2px 0;
        border-radius: 8px;
    }
    
    .lesson .subject {
        font-size: 0.8rem;
        margin-bottom: 4px;
    }
    
    .lesson .details {
        font-size: 0.7rem;
    }
    
    .lesson .group {
        font-size: 0.65rem;
        padding: 2px 6px;
    }
    
    .footer {
        padding: 24px 20px;
    }
    
    .metadata {
        grid-template-columns: 1fr;
        gap: 16px;
        font-size: 0.8rem;
    }
    
    .metadata p {
        padding: 12px;
    }
    
    .app-info {
        margin-top: 24px;
        padding-top: 16px;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .app-links {
        justify-content: center;
        gap: 12px;
    }
    
    .app-links a {
        flex: 1;
        justify-content: center;
        font-size: 0.8rem;
        padding: 10px 12px;
    }
    
    .app-version {
        justify-content: center;
        font-size: 0.75rem;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1600px;
    }
    
    .filter-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .metadata {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .app-info {
        margin-top: 40px;
        padding-top: 32px;
    }
    
    .app-links {
        gap: 20px;
    }
    
    .app-links a {
        font-size: 0.9rem;
        padding: 10px 20px;
    }
    
    .app-version {
        font-size: 0.85rem;
    }
}