.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.course-item {
    background: #fff;
    border: 2px solid #eee;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
}

.course-item:hover {
    border-color: #2ecc71;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.course-icon { font-size: 45px; margin-bottom: 10px; }

/* Стили прогресса */
.progress-bar-bg { width: 100%; height: 12px; background: #eee; border-radius: 6px; margin: 10px 0; }
.progress-bar-fill { height: 100%; background: #2ecc71; border-radius: 6px; transition: 0.5s; }

.lesson-list { list-style: none; padding: 0; margin-top: 20px; }
.lesson-list li { padding: 10px; border-bottom: 1px solid #eee; font-size: 14px; }

/* Общий стиль для всех таблиц в админке */
.admin-table {
    width: 100%;
    border-collapse: collapse; /* Убирает двойные рамки */
    margin-top: 15px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden; /* Чтобы скругления работали */
}

.admin-table th {
    background-color: #f8f9fa;
    color: #555;
    font-weight: 600;
    text-align: left;
    padding: 12px 15px;
    border-bottom: 2px solid #eee;
}

.admin-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #f1f1f1;
    vertical-align: middle;
    color: #444;
}

/* Эффект при наведении на строку */
.admin-table tbody tr:hover {
    background-color: #f9fdfb;
}

/* Стили для бейджей статуса */
.status-paid {
    color: #2ecc71;
    font-weight: bold;
    background: #eafaf1;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

/* Стиль для типа урока */
.type-badge {
    background: #eee;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    text-transform: uppercase;
}

#studentSearch:focus {
    outline: none;
    border-color: #2ecc71;
    box-shadow: 0 0 5px rgba(46, 204, 113, 0.2);
    transition: 0.3s;
}

/* --- Стили для рабочей среды урока --- */
#lesson-workspace {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #ecf0f1;
    z-index: 9999;
    flex-direction: column;
}

.workspace-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #2c3e50;
    color: white;
    height: 60px;
}

.workspace-body {
    display: flex;
    flex: 1;
    height: calc(100vh - 60px);
}

.panel-left {
    width: 40%;
    background: white;
    padding: 20px;
    overflow-y: auto;
    border-right: 2px solid #bdc3c7;
}

.panel-right {
    width: 60%;
    display: flex;
    flex-direction: column;
    background: #1e1e1e;
}

.console-container {
    height: 30%;
    background: #2d2d2d;
    display: flex;
    flex-direction: column;
}

.console-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 15px;
    background: #3d3d3d;
    color: white;
    font-size: 14px;
}

#console-output {
    flex: 1;
    padding: 10px;
    color: #ecf0f1;
    font-family: 'Courier New', Courier, monospace;
    overflow-y: auto;
    white-space: pre-wrap;
}

.lesson-content-text {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

.btn-delete {
    background-color: #e74c3c; /* Красный */
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.btn-delete:hover {
    background-color: #c0392b; /* Темно-красный */
    transform: translateY(-1px);
}

