:root {
    --primary: #2c3e50;
    --accent: #27ae60;
    --blue: #3498db;
    --bg: #f4f7f6;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background: var(--bg);
    margin: 0;
    padding-top: 80px;
}

/* NAVBAR (ОСТАВИЛ ОДНУ ВЕРСИЮ — БЫЛ КРИТИЧЕСКИЙ БАГ) */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 60px;
    background: var(--primary);
    display: flex;
    align-items: center;
    padding: 0 20px;
    color: white;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    box-sizing: border-box;
}

.nav-logo {
    font-size: 22px;
    font-weight: 900;
}

.nav-logo span {
    color: var(--blue);
}

.nav-links {
    flex: 1;
    display: flex;
    gap: 10px;
    margin-left: 30px;
}

.nav-btn {
    text-decoration: none;
    color: #bdc3c7;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    transition: 0.3s;
}

.nav-btn:hover {
    color: white;
    background: rgba(255,255,255,0.1);
}

.nav-btn.active {
    background: var(--blue);
    color: white;
}

.nav-actions {
    display: flex;
    gap: 8px;
}

/* BUTTONS */
.lang-btn {
    background: #e67e22;
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

.print-btn {
    background: #27ae60;
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

/* GRID */
.container {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 20px;
    padding: 20px;
    max-width: 1600px;
    margin: 0 auto;
}

/* CARD */
.card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid #ddd;
}

.card h3 {
    margin: 0 0 20px 0;
    color: var(--primary);
    font-size: 18px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

/* FORM */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

label {
    font-size: 12px;
    font-weight: bold;
    color: #555;
    text-transform: uppercase;
   
}

select, input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}

select:focus, input:focus {
    border-color: var(--blue);
}

/* INPUT SPLIT */
.input-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.input-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* BUTTONS */
.btn-update {
    background: var(--accent);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 15px;
}

.btn-copy {
    background: #ecf0f1;
    color: #2c3e50;
    border: 1px solid #bdc3c7;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
}

/* TABLE */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    border: 2px solid #000;
}

th {
    background: #f8f9fa;
    padding: 12px;
    border: 1px solid #000;
    font-size: 13px;
    text-transform: uppercase;
}

td {
    padding: 10px;
    border: 1px solid #000;
    text-align: center;
    font-size: 15px;
}

/* MONTH */
.month-badge {
    background: var(--blue);
    color: white;
    padding: 6px 20px;
    border-radius: 5px;
    font-weight: bold;
    margin-bottom: 15px;
    display: inline-block;
}

/* SUMMARY */
.summary-footer {
     border: solid;
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
}

/* PRINT (ОДИН РАЗ — БЫЛ ДУБЛЬ) */
@media print {
    .navbar,
    .card:first-child,
    .no-print {
        display: none !important;
    }

    body {
        padding-top: 0;
        background: white;
    }

    table {
        width: 100%;
        font-size: 12px;
    }

    .summary-footer {
        border: 2px solid #000;
    }
}
.main-counter-card{
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    background: linear-gradient(135deg, #3498db, #6dd5fa);
    padding: 18px 20px;
    border-radius: 18px;

    color: white;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);

    transition: 0.3s;
}

.main-counter-card:hover{
    transform: translateY(-3px);
}

.main-counter-card span{
    font-size: 12px;
    opacity: 0.9;
    margin-top: 5px;
}

.main-counter-card h1{
    font-size: 34px;
    margin: 5px 0;
}

.main-counter-card h2{
    font-size: 22px;
    margin: 5px 0;
    color: #fff;
}
/* 🔥 КНОПКА ОБНОВИТЬ УЧИТЕЛЕЙ */
button.teacher-btn {
    background: linear-gradient(135deg, #3498db, #6dd5fa);
    color: white;
    border: none;
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 6px 15px rgba(52, 152, 219, 0.3);
    width: 100%;
    margin-top: 8px;
    margin-bottom: 10px;
}

button.teacher-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(52, 152, 219, 0.4);
}

button.teacher-btn:active {
    transform: scale(0.97);
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.2);
}