﻿/* ZÁKLADNÍ NASTAVENÍ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    background-color: #f3f4f6;
    color: #1f2937;
    line-height: 1.5;
}

input, select, button {
    font-family: inherit;
    font-size: 100%;
}

button {
    cursor: pointer;
    border: none;
}

ul {
    list-style: none;
}

/* HLAVIČKA A ROZLOŽENÍ */
.header {
    background-color: #111827;
    color: white;
    padding: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: #60a5fa;
}

.header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.025em;
}

.container {
    max-width: 64rem;
    margin: 0 auto;
    padding: 1.5rem;
}

/* NAVIGAČNÍ ZÁLOŽKY */
.tabs {
    display: flex;
    gap: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 1.5rem;
}

.tab-btn {
    background: none;
    padding: 0 0.25rem 0.5rem;
    font-size: 1.125rem;
}

.tab-active {
    border-bottom: 2px solid #2563eb;
    color: #2563eb;
    font-weight: 600;
}

.tab-inactive {
    color: #6b7280;
    font-weight: 500;
}

    .tab-inactive:hover {
        color: #374151;
    }

/* KARTY A BOXY */
.card {
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
    border: 1px solid #f3f4f6;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
}

.card-subtitle {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* ŠTÍTEK ONLINE/OFFLINE */
.status-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid;
    transition: all 0.3s;
}

.status-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.status-online {
    background-color: #f0fdf4;
    color: #15803d;
    border-color: #bbf7d0;
}

    .status-online .status-dot {
        background-color: #22c55e;
    }

.status-offline {
    background-color: #fef2f2;
    color: #b91c1c;
    border-color: #fecaca;
}

    .status-offline .status-dot {
        background-color: #ef4444;
    }

/* TABULKA VÝSLEDKŮ */
.table-wrapper {
    overflow-x: auto;
}

.table {
    width: 100%;
    text-align: left;
    border-collapse: collapse;
}

    .table th {
        padding: 1rem;
        border-bottom: 1px solid #e5e7eb;
        font-size: 0.875rem;
        color: #4b5563;
        text-transform: uppercase;
        font-weight: 700;
        letter-spacing: 0.05em;
    }

    .table td {
        padding: 1rem;
        color: #374151;
        font-weight: 500;
        border-bottom: 1px solid #f3f4f6;
    }

    .table tr:hover td {
        background-color: #f9fafb;
        transition: background-color 0.2s;
    }

.table-col-team {
    font-weight: 700;
    font-size: 1.125rem;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.table th.col-total {
    text-align: center;
    color: #2563eb;
    background-color: #eff6ff;
    border-top-right-radius: 0.5rem;
}

.table td.col-total {
    text-align: center;
    color: #1d4ed8;
    background-color: #eff6ff;
    font-weight: 900;
    font-size: 1.25rem;
}

/* FORMULÁŘE */
.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 0.25rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    background-color: #f9fafb;
    font-size: 1rem;
    transition: all 0.2s;
}

    .form-control:focus {
        outline: none;
        background-color: white;
        border-color: #60a5fa;
        box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
    }

/* TLAČÍTKA */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.2s;
}

.btn-primary {
    background-color: #2563eb;
    color: white;
    width: 100%;
}

    .btn-primary:hover {
        background-color: #1d4ed8;
    }

.btn-success {
    background-color: #16a34a;
    color: white;
    width: 100%;
}

    .btn-success:hover {
        background-color: #15803d;
    }

.btn-success-saved {
    background-color: #166534 !important;
}

.btn-delete {
    background: none;
    color: #ef4444;
    padding: 0.25rem;
}

    .btn-delete:hover {
        color: #b91c1c;
    }

/* GRID A SEZNAMY V ADMINISTRACI */
.admin-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .admin-grid-4 {
        grid-template-columns: repeat(4, 1fr);
        align-items: end;
    }

    .admin-grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background-color: white;
    border: 1px solid #f3f4f6;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
}

/* POMOCNÉ TŘÍDY */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.flex {
    display: flex;
    gap: 0.5rem;
}

.flex-1 {
    flex: 1;
}

.mt-4 {
    margin-top: 1rem;
}

.max-w-md {
    max-width: 28rem;
    margin: 0 auto;
}

.link {
    color: #6b7280;
    text-decoration: underline;
    font-size: 0.875rem;
    background: none;
    margin: 0 auto;
    display: block;
}
