﻿:root {
    --bg: #f4f6f8;
    --card: #ffffff;
    --text: #222222;
    --muted: #666666;
    --primary: #0f6cbf;
    --primary-dark: #0b4f8c;
    --danger: #b42318;
    --success: #067647;
    --border: #d0d5dd;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, sans-serif;
    background: var(--bg);
    color: var(--text);
}

.container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 16px;
}

.container.wide {
    max-width: 1100px;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 16px;
}

.center { text-align: center; }

h1, h2 {
    margin-top: 0;
}

label {
    display: block;
    margin: 10px 0 6px;
    font-weight: 600;
}

input[type="text"],
input[type="url"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
}

.btn {
    margin-top: 14px;
    display: inline-block;
    padding: 10px 14px;
    border-radius: 8px;
    border: none;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}

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

.btn.secondary {
    background: #475467;
}

.alert, .success {
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.alert {
    background: #fee4e2;
    color: var(--danger);
}

.success {
    background: #dcfae6;
    color: var(--success);
}

.muted {
    color: var(--muted);
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 12px;
}

.actions {
    display: flex;
    gap: 8px;
}

.inline-row {
    margin-top: 12px;
}

.rating-group {
    display: flex;
    gap: 10px;
    margin: 14px 0;
}

.rating-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1px solid var(--border);
    border-radius: 50%;
    cursor: pointer;
}

.rating-item input {
    display: none;
}

.rating-item span {
    font-weight: 700;
}

.rating-item.selected {
    border-color: var(--primary);
    background: #dff2ff;
}

.hidden { display: none; }

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    border-bottom: 1px solid var(--border);
    padding: 8px;
    text-align: left;
    vertical-align: top;
}

.chart-wrap {
    margin-top: 10px;
}

.bar-row {
    display: grid;
    grid-template-columns: 80px 1fr 40px;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.bar {
    height: 16px;
    background: #e4e7ec;
    border-radius: 8px;
    overflow: hidden;
}

.fill {
    height: 100%;
    background: var(--primary);
}

@media (max-width: 768px) {
    .topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .rating-group {
        justify-content: space-between;
    }

    .bar-row {
        grid-template-columns: 70px 1fr 30px;
    }
}
