* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f6f8;
    color: #222;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
}

.topbar,
.topnav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.topbar-left h1,
.page-title {
    margin: 0;
}

.card,
.box,
.login-box,
.panel {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

.cards,

.text-right {
    text-align: right;
}

.text-center {
    text-align: center;
}
.card .label {
    color: #666;
    font-size: 14px;
    margin-bottom: 8px;
}

.card .value {
    font-size: 30px;
    font-weight: bold;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    overflow: hidden;
}

th, td {
    border-bottom: 1px solid #e5e7eb;
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}

th {
    background: #f8fafc;
    font-weight: bold;
}

tr:hover td {
    background: #fafcff;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #bbb;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
}

textarea {
    min-height: 100px;
    resize: vertical;
}

button,
.btn {
    display: inline-block;
    padding: 10px 14px;
    border: none;
    border-radius: 8px;
    background: #1f6feb;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
}

button:hover,
.btn:hover {
    background: #1558bc;
}

.btn-secondary {
    background: #6b7280;
}

.btn-secondary:hover {
    background: #4b5563;
}

.btn-danger {
    background: #c62828;
}

.btn-danger:hover {
    background: #a61d1d;
}

.msg-ok {
    background: #e8f7ec;
    color: #166534;
    border: 1px solid #b7e4c7;
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.msg-err {
    background: #fdecea;
    color: #b42318;
    border: 1px solid #f5c2c7;
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.status-badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: bold;
    white-space: nowrap;
}

.muted,
.small {
    color: #666;
    font-size: 12px;
}

.filters {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 18px;
}

.inline-form {
    display: inline;
}








.login-links {
    text-align: center;
    margin-top: 18px;
    font-size: 14px;
}

.login-links a {
    color: #1f6feb;
    text-decoration: none;
}

.login-links a:hover {
    text-decoration: underline;
}
h1, h2, h3 {
    margin-top: 0;
    color: #111827;
}

.grid {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 10px 16px;
    max-width: 900px;
    margin-bottom: 24px;
}

.label {
    font-weight: bold;
    color: #374151;
}

.topbar a,
.topnav a {
    color: #1f6feb;
    text-decoration: none;
}

.topbar a:hover,
.topnav a:hover {
    text-decoration: underline;
}

.table-wrap {
    overflow-x: auto;
    margin-top: 16px;
}

td strong {
    color: #111827;
}

.page-section {
    margin-top: 24px;
}

.form-grid {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 12px 16px;
    max-width: 1000px;
    margin-bottom: 24px;
}

.form-actions {
    margin-top: 18px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

@media (max-width: 800px) {
    .grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 16px;
    }

    th, td {
        padding: 8px;
    }
}
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sep {
    color: #999;
}

.filters-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    align-items: end;
}

.filters-inline label {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
}

.filters-inline select {
    min-width: 180px;
}

.filters-inline button {
    height: 38px;
}
.text-right {
    text-align: right;
}

.text-center {
    text-align: center;
}
.btn-small {
    padding: 6px 10px;
    font-size: 13px;
}
.highlight-field input {
    border: 2px solid #f59e0b;
    background: #fff8e1;
}

button[type="submit"] {
    padding: 12px 18px;
    font-size: 15px;
}
.actions {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    align-items: center;
}

.actions .btn {
    white-space: nowrap;
}
/* ADMIN DASHBOARD */
body.admin {
    background: #f4f6f8;
}

body.admin .topbar {
    background: #2f2f2f;
    color: #fff;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
}

body.admin .topbar a {
    color: #fff;
    text-decoration: none;
}

body.admin .topbar a:hover {
    text-decoration: underline;
}

.dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.dashboard-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.dashboard-card .label {
    color: #666;
    font-size: 14px;
    margin-bottom: 8px;
}

.dashboard-card .value {
    font-size: 32px;
    font-weight: bold;
    color: #111827;
}

.dashboard-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.dashboard-action-box {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.dashboard-action-box h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.dashboard-action-box p {
    color: #555;
    margin-bottom: 14px;
}
/* LOGIN ONLY */
body.login-admin,
body.login-client {
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: Arial, sans-serif;
}

body.login-admin {
    background: linear-gradient(135deg, #1f1f1f, #3f3f3f);
}

body.login-client {
    background: linear-gradient(135deg, #2f6fed, #6fa3ff);
}

body.login-admin .login-box,
body.login-client .login-box {
    width: 100%;
    max-width: 460px;
    background: rgba(255,255,255,0.96);
    border-radius: 16px;
    padding: 36px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.18);
    border-top: 6px solid transparent;
}

body.login-admin .login-box {
    border-top-color: #444;
}

body.login-client .login-box {
    border-top-color: #2f6fed;
}

.login-box h1 {
    margin: 0 0 8px 0;
    text-align: center;
    font-size: 28px;
}

body.login-admin .login-box h1 {
    color: #222;
}

body.login-client .login-box h1 {
    color: #2f6fed;
}

.login-box .subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 24px;
    font-size: 14px;
}

.login-box label {
    display: block;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 6px;
}

.login-box input[type="text"],
.login-box input[type="email"],
.login-box input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 18px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 15px;
    background: #f8fbff;
}

.login-box button {
    width: 100%;
    padding: 13px 16px;
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 4px;
}

body.login-admin .login-box button {
    background: #444;
}

body.login-admin .login-box button:hover {
    background: #2f2f2f;
}

body.login-client .login-box button {
    background: #2f6fed;
}

body.login-client .login-box button:hover {
    background: #1e4fd1;
}

.login-switch {
    display: block;
    text-align: center;
    margin-top: 18px;
    font-size: 14px;
    text-decoration: none;
}

body.login-admin .login-switch {
    color: #444;
}

body.login-client .login-switch {
    color: #2f6fed;
}

.login-switch:hover {
    text-decoration: underline;
}

td.score-good {
    background: #dcfce7;   /* světle zelená */
    color: #166534;
    font-weight: bold;
}

td.score-neutral {
    background: #dbeafe;   /* světle modrá */
    color: #1e40af;
    font-weight: bold;
}

td.score-bad {
    background: #fee2e2;   /* světle červená */
    color: #991b1b;
    font-weight: bold;
}

tr:hover td:not(.score-good):not(.score-neutral):not(.score-bad) {
    background: #fafcff;
}


td.score-good,
td.score-neutral,
td.score-bad {
    border-radius: 6px;
    text-align: center;
}

td.score-good:hover {
    background: #bbf7d0; /* trochu tmavší zelená */
}

td.score-neutral:hover {
    background: #bfdbfe; /* trochu tmavší modrá */
}

td.score-bad:hover {
    background: #fecaca; /* trochu tmavší červená */
}




