a {
    color: inherit;
    text-decoration: none;
}

body {
    font-family: 'JetBrains Mono', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: radial-gradient(ellipse 80% 100% at 20% 30%, #1a1f2e 0%, #0d1117 60%);
    background-attachment: fixed;
    min-height: 100vh;
    color: #c9d1d9;
}

.center {
    text-align: center;
    animation: center-reveal 700ms ease-out both;
    text-shadow: 0 0 0 rgba(88, 166, 255, 0.0);
}

@keyframes center-reveal {
    0% {
        opacity: 0;
        transform: translateY(40px);
        text-shadow: 0 0 0 rgba(88, 166, 255, 0.0);
    }
    60% {
        opacity: 0.7;
        transform: translateY(-5px);
        text-shadow: 0 0 12px rgba(88, 166, 255, 0.25);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        text-shadow: 0 0 0 rgba(88, 166, 255, 0.0);
    }
}

header {
    background: #161b22;
    padding: 1rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid #30363d;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #58a6ff;
}

nav a {
    margin-left: 2rem;
    text-decoration: none;
    color: #c9d1d9;
    transition: color 0.3s;
}

nav a:hover {
    color: #58a6ff;
}

.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.hero {
    background: #161b22;
    border-radius: 8px;
    padding: 3rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid #30363d;
}

.hero h1 {
    color: #58a6ff;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.hero p {
    color: #c9d1d9;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: #154a99;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.btn:hover {
    transform: translateY(-2px);
    background: #1853ac;
    box-shadow: 0 5px 20px rgba(88, 166, 255, 0.4);
}

.btn.back-link {
    padding: 0.35rem 0.7rem;
    background: #21262d;
    color: #c9d1d9;
    border: 1px solid #30363d;
    border-radius: 6px;
    font-weight: 600;
    letter-spacing: 0.2px;
    font-size: 0.85rem;
}

.btn.back-link:hover {
    transform: translateY(-1px);
    background: #30363d;
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.card {
    background: #161b22;
    border-radius: 6px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #30363d;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(88, 166, 255, 0.15);
    border-color: #58a6ff;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.card h3 {
    color: #58a6ff;
    margin-bottom: 0.5rem;
}

.card p {
    color: #8b949e;
    line-height: 1.6;
}

footer {
    background: #161b22;
    color: #8b949e;
    text-align: center;
    padding: 0.5rem;
    margin-top: 1.0rem;
    border-top: 1px solid #30363d;
    transition: all 0.75s ease;
    opacity: 1;
    transform: translateY(0);
}

body.loading footer {
    opacity: 0;
    transform: translateY(20px);
}

.section {
    opacity: 1;
}
.section.fade-out {
    opacity: 0;
    transition: opacity 0.35s ease;
}
.section.fade-in {
    opacity: 1;
    transition: opacity 0.35s ease;
}



    .przedmioty-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1rem;
    }
    .card {
        margin: 0;
        padding: 1rem;
    }
    .card h3 {
        margin-top: 0;
    }
    .hr-label {
        position: relative;
        text-align: center;
        margin: 2rem 0;
    }
    .hr-label::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        height: 2px;
        background: linear-gradient(to right, transparent, #58a6ff, transparent);
        z-index: -1;
    }
    .hr-label span {
        background: #0d1117;
        padding: 0 1rem;
        color: #58a6ff;
        font-weight: bold;
    }

    table {
        width: 100%;
        border-collapse: collapse;
        background: #161b22;
        border: 1px solid #30363d;
        border-radius: 6px;
        overflow: hidden;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    }

    thead th {
        background: #21262d;
        color: #8b949e;
        font-weight: 600;
        text-align: left;
        letter-spacing: 0.2px;
    }

    th,
    td {
        padding: 0.85rem 1rem;
        border-bottom: 1px solid #30363d;
        vertical-align: top;
    }

    tbody td {
        color: #c9d1d9;
        font-weight: 400;
        font-size: 0.9rem;
    }

    tbody tr:nth-child(even) {
        background: inherit;     
    }

    tbody tr:hover {
        background: #21262d;
        color: #ffffff;
        border-left: 2px solid #58a6ff;
    }

    table th:nth-child(1),
    table td:nth-child(1) {
        width: 12%;
    }

    table th:nth-child(2),
    table td:nth-child(2) {
        width: 8%;
    }

    table th:nth-child(3),
    table td:nth-child(3) {
        width: 6%;
        text-align: center;
    }

    table th:nth-child(4),
    table td:nth-child(4) {
        width: 8%;
        text-align: center;
    }

    table th:nth-child(5),
    table td:nth-child(5) {
        width: 28%;
    }

    table th:nth-child(6),
    table td:nth-child(6) {
        width: 28%;
    }

    table th:nth-child(7),
    table td:nth-child(7) {
        width: 10%;
        text-align: center;
    }

    .red_point{
        color: rgb(255, 0, 0);
        font-size: 20px;
    }
    .green_point{
        color: rgb(0, 255, 0);
        font-size: 20px;
    }
    .grey_point{
        color: rgb(128, 128, 128);
        font-size: 20px;
    }

    .blink{
        animation: gentle-blink 3s ease-in-out infinite;
    }

    @keyframes gentle-blink {
        0%, 100% {
            background-color: #161b22;
        }
        50% {
            background-color: rgba(255, 255, 255, 0.1);
        }
    }