/* =========================
   ZÁKLAD
========================= */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    background: #f3f3f3;
    color: #1e1e1e;
}

/* =========================
   LAYOUT
========================= */
.layout {
    display: flex;
    min-height: 100vh;
}

.content {
    flex: 1;
    padding: 24px;
    background: #f3f3f3;
}

/* =========================
   SIDEBAR
========================= */
.sidebar {
    width: 240px;
    background: #ffffff;
    border-right: 1px solid #d6d6d6;
}

.sidebar-header {
    padding: 16px 18px;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    border-bottom: 1px solid #e2e2e2;
}

.sidebar a {
    display: block;
    padding: 10px 18px;
    font-size: 14px;
    color: #1e1e1e;
    text-decoration: none;
}

.sidebar a:hover {
    background: #f0f6ff;
}

.sidebar a.active {
    background: #0078d7;
    color: #ffffff;
}

/* =========================
   KARTY
========================= */
.card {
    background: #ffffff;
    border: 1px solid #dcdcdc;
    border-radius: 4px;
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

/* =========================
   TABULKY
========================= */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #ffffff;
    border: 1px solid #dcdcdc;
    border-radius: 4px;
    overflow: hidden;
}

th {
    background: #f7f7f7;
    font-weight: 600;
    text-align: left;
    padding: 10px;
    font-size: 13px;
    border-bottom: 1px solid #dcdcdc;
}

td {
    padding: 9px 10px;
    font-size: 13px;
    border-bottom: 1px solid #e5e5e5;
}

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

tr:hover td {
    background: #f0f6ff;
}

/* =========================
   FORMULÁŘ
========================= */
form label {
    display: block;
    margin-bottom: 14px;
    font-size: 13px;
}

input[type="text"],
input[type="number"] {
    width: 100%;
    max-width: 320px;
    padding: 8px 10px;
    font-size: 13px;
    border: 1px solid #c8c8c8;
    border-radius: 2px;
    background: #ffffff;
}

input:focus {
    outline: none;
    border-color: #0078d7;
    box-shadow: 0 0 0 1px #0078d7;
}

/* =========================
   TLAČÍTKO
========================= */
button {
    background: #0078d7;
    color: #ffffff;
    border: none;
    padding: 9px 18px;
    font-size: 13px;
    border-radius: 2px;
    cursor: pointer;
}

button:hover {
    background: #106ebe;
}


/* =========================
   START BUTTON
========================= */
.start-button {
    position: fixed;
    bottom: 16px;
    left: 16px;
    width: 44px;
    height: 44px;
    background: #0078d7;
    color: #fff;
    font-size: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1001;
}

.start-button:hover {
    background: #106ebe;
}

/* =========================
   OVERLAY
========================= */
.start-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.25);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: 1000;
}

/* =========================
   START MENU
========================= */
.start-menu {
    position: fixed;
    bottom: 70px;
    left: 16px;
    width: 520px;
    height: 380px;
    background: #ffffff;
    border: 1px solid #cfcfcf;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    display: flex;
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
    z-index: 1001;
}

/* =========================
   LEFT COLUMN
========================= */
.start-left {
    width: 220px;
    border-right: 1px solid #e0e0e0;
    padding: 10px 0;
}

.start-left a {
    display: block;
    padding: 10px 16px;
    font-size: 14px;
    color: #1e1e1e;
    text-decoration: none;
}

.start-left a:hover {
    background: #f0f6ff;
}

.start-left .logout {
    color: #a80000;
}

/* =========================
   RIGHT TILES
========================= */
.start-right {
    flex: 1;
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.tile {
    background: #0078d7;
    color: #fff;
    padding: 16px;
    font-size: 14px;
    border-radius: 2px;
}

/* =========================
   TOGGLE LOGIC
========================= */
#start-toggle:checked ~ .start-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

#start-toggle:checked ~ .start-overlay {
    opacity: 1;
    pointer-events: auto;
}


/* =========================
   TOP BAR – WINDOWS 10
========================= */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 48px;
    background: #ffffff;
    border-bottom: 1px solid #d6d6d6;
    display: flex;
    align-items: center;
    padding: 0 12px;
    z-index: 1002;
}

.start-button.top {
    position: static;
    width: 36px;
    height: 36px;
    font-size: 18px;
    margin-right: 12px;
}

.topbar-title {
    font-size: 14px;
    font-weight: 600;
    color: #1e1e1e;
}

.topbar-user {
    margin-left: auto;
    font-size: 13px;
    color: #444;
}

/* =========================
   START MENU – TOP LEFT
========================= */
.start-menu.top-left {
    top: 56px;
    left: 12px;
    bottom: auto;
}

/* =========================
   CONTENT OFFSET
========================= */
.content.with-topbar {
    padding-top: 68px;
}
