/* Google font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&display=swap');

/* Základní reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Tělo stránky */
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    background-color: #f8f9fa;
    color: #333;
    padding: 20px;
}

/* Nadpisy */
h1, h2, h3 {
    margin-bottom: 20px;
    color: #222;
}

h1 {
    font-size: 2em;
    border-bottom: 3px solid #ddd;
    padding-bottom: 10px;
    font-weight: 600;
}

h2 {
    font-size: 1.8em;
    margin-top: 30px;
}

h3 {
    font-size: 1.4em;
}

/* Formuláře */
form {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

form p {
    margin-bottom: 15px;
}

form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

form input,
form textarea,
form select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1em;
    transition: 0.3s;
}

form input:focus,
form textarea:focus,
form select:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.2);
}

form button {
    background-color: #28a745;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: 0.3s;
}

form button:hover {
    background-color: #218838;
    box-shadow: 0 4px 10px rgba(40, 167, 69, 0.3);
}

/* Tlačítka */
button {
    background-color: #007bff;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    transition: 0.3s;
}

button:hover {
    background-color: #0056b3;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}

/* Odkazy */
a {
    text-decoration: none;
    color: #007bff;
    font-weight: 600;
}

a:hover {
    text-decoration: underline;
}

/* Seznamy */
ul {
    list-style-type: none;
    margin-bottom: 20px;
}

ul li {
    background: #fff;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: 0.3s;
}

ul li:hover {
    background-color: #f0f0f0;
}

/* Navigace */
.navbar {
    background-color: #fff !important;
    color: #222;
    padding: 0.25rem 0.75rem !important; /* menší výška */
    margin-bottom: 12px;
    border-radius: 0;
    border-bottom: 1px solid #dee2e6; /* jemná linka, jako v Bootstrapu */
}

/* text značky vlevo */
.navbar .navbar-brand {
    font-size: 1rem !important;
    margin: 0;
    padding: 0;
}

/* odkazy uvnitř navbaru */
.navbar a {
    color: inherit;               /* nepřepisuj na bílé */
    font-size: 0.95rem;
    font-weight: 600;
    margin-right: 12px;
    text-decoration: none;
}
.navbar a:hover {
    text-decoration: none;
    opacity: 0.8;
}

/* malé tlačítko Odhlásit */
.navbar .btn-sm {
    padding: 2px 6px !important;
    line-height: 1.2;
    font-size: 0.8rem;
}

/* --- Klikatelné řádky v seznamech úkonů --- */
.workrecord-row {
  cursor: pointer !important;
  transition: background-color 0.15s ease-in-out;
}

.workrecord-row:hover {
  background-color: #f8f9fa;
}

.workrecord-row:active {
  background-color: #e9ecef;
}

/* Mobilní optimalizace */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    h1 {
        font-size: 1.8em;
    }

    h2 {
        font-size: 1.4em;
    }

    form {
        padding: 15px;
    }

    form input,
    form textarea,
    form select {
        padding: 10px;
    }

    button {
        width: 100%;
        margin-bottom: 10px;
    }

    .navbar {
        flex-direction: column;
        text-align: center;
    }

    .navbar a {
        display: block;
        margin: 5px 0;
    }

    img {
        max-width: 100%;
        height: auto;
    }
}

/* --- Čtvercová ikonová tlačítka (pro Work Tracker) --- */
.btn-icon-square {
  width: 38px !important;
  height: 38px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 0.5rem !important;
  font-size: 1.2rem !important;
  line-height: 1 !important;
}

/* --- Map (Leaflet) styles --- */
/* Green dot for clustered markers */
.wr-dot {
  background: #2ecc71;
  border: 1px solid #2ecc71;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.15);
}
.wr-dot::after { content: ''; }

/* Popup content styling */
.leaflet-popup-content .wr-popup .wr-links { text-align: right; margin-top: 4px; }
.leaflet-popup-content .wr-popup .wr-links a { font-size: .85em; color: #6c757d; text-decoration: underline; }
.leaflet-popup-content .wr-popup .wr-title { font-weight: 600; text-decoration: none; }
.leaflet-popup-content .wr-popup .wr-title:hover { text-decoration: underline; }

/* Hide any auto-rendered Mapy.cz links we didn't render ourselves */
.leaflet-popup-content a[href^="https://mapy.cz"]:not(.keep-mapy) { display: none; }
