/* Панель управления, таблицы, редактор */
.admin-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 11px 18px;
    border-radius: 8px;
    font-family: inherit;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
    text-decoration: none;
}

    .admin-btn:hover {
        background: var(--primary);
    }

    .admin-btn.secondary {
        background: white;
        color: var(--primary);
        border: 1px solid #d5dbe3;
    }

        .admin-btn.secondary:hover {
            background: #f8fafc;
        }

    .admin-btn.danger {
        background: #fef2f2;
        color: var(--red);
        border: 1px solid #fecaca;
    }

        .admin-btn.danger:hover {
            background: var(--red);
            color: white;
        }

    .admin-btn.small {
        padding: 7px 12px;
        font-size: 13px;
    }

.admin-table {
    width: 100%;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border-collapse: collapse;
}

    .admin-table th, .admin-table td {
        padding: 14px 18px;
        text-align: left;
        border-bottom: 1px solid #f0f0f0;
        font-size: 14px;
        vertical-align: middle;
    }

    .admin-table th {
        background: #f8fafc;
        color: #555;
        font-weight: 600;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .admin-table tr:last-child td {
        border-bottom: none;
    }

    .admin-table tr:hover td {
        background: #fafbfc;
    }

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}

    .badge.user {
        background: #eef2ff;
        color: var(--accent);
    }

    .badge.admin {
        background: #fff7e0;
        color: #b8860b;
    }

    .badge.teacher {
        background: #f0fdf4;
        color: var(--green);
    }

/* Editor */
.editor-section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

    .editor-section h3 {
        margin: 0 0 18px 0;
        font-size: 16px;
        color: var(--primary);
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        flex-wrap: wrap;
    }

.form-row {
    margin-bottom: 14px;
}

    .form-row label {
        display: block;
        font-size: 12px;
        font-weight: 600;
        color: #555;
        margin-bottom: 6px;
    }

    .form-row input[type="text"],
    .form-row input[type="url"],
    .form-row input[type="file"],
    .form-row input[type="number"],
    .form-row input[type="datetime-local"],
    .form-row textarea,
    .form-row select {
        width: 100%;
        padding: 10px 12px;
        border: 1px solid #d5dbe3;
        border-radius: 8px;
        font-family: inherit;
        font-size: 14px;
        transition: 0.2s;
        outline: none;
        background: white;
    }

    .form-row textarea {
        resize: vertical;
        min-height: 70px;
    }

        .form-row input:focus, .form-row textarea:focus, .form-row select:focus {
            border-color: var(--accent);
            box-shadow: 0 0 0 3px rgba(23,64,194,0.10);
        }

    .form-row .hint {
        font-size: 11px;
        color: #888;
        margin-top: 4px;
    }

.editor-item {
    background: #f8fafc;
    border: 1px solid #e5e9f0;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 14px;
}

.editor-item-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

    .editor-item-head b {
        font-size: 14px;
        color: var(--primary);
    }

.editor-item-remove {
    background: #fef2f2;
    color: var(--red);
    border: 1px solid #fecaca;
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 12px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
}

    .editor-item-remove:hover {
        background: var(--red);
        color: white;
    }

.options-list {
    margin-top: 10px;
}

.option-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 8px;
}

    .option-row input[type="text"] {
        flex: 1;
        padding: 8px 12px;
        border: 1px solid #d5dbe3;
        border-radius: 6px;
        font-family: inherit;
        font-size: 13px;
        outline: none;
    }

    .option-row input[type="radio"] {
        accent-color: var(--green);
    }

    .option-row .opt-label {
        font-size: 11px;
        color: #777;
        font-weight: 600;
        min-width: 70px;
    }

.attachments-editor {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.att-editor-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: white;
    border: 1px solid #e5e9f0;
    border-radius: 8px;
    font-size: 13px;
}

    .att-editor-item i {
        color: var(--accent);
    }

    .att-editor-item .att-name {
        flex: 1;
        color: #333;
    }

    .att-editor-item .att-size {
        color: #999;
        font-size: 12px;
    }

    .att-editor-item button {
        background: #fef2f2;
        color: var(--red);
        border: 1px solid #fecaca;
        border-radius: 6px;
        padding: 4px 8px;
        font-size: 11px;
        cursor: pointer;
        font-family: inherit;
        font-weight: 600;
    }

        .att-editor-item button:hover {
            background: var(--red);
            color: white;
        }
/* ==================== Alpha 0.8: проверка сдач ДЗ ==================== */
.submission-item {
    padding: 10px 14px;
    background: #f8fafc;
    border: 1px solid #e5e9f0;
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 14px;
}

.submission-review {
    padding: 14px;
    background: #f8fafc;
    border: 1px solid #e5e9f0;
    border-radius: 10px;
    margin-bottom: 10px;
}
/* ==================== Alpha 0.8.2: проверка ДЗ ==================== */
#admin-homework-container .editor-section h3 {
    margin-bottom: 12px;
    font-size: 15px;
}

#admin-homework-container .submission-item {
    margin-bottom: 8px;
}

#admin-homework-container .submission-review {
    margin-bottom: 10px;
}