body {
    font-family: Arial, sans-serif;
    margin: 0;
}

/* Pozadí podle stránky */
body.index main {
    padding: 0;
    height: calc(100vh - 100px);
    background-image: url("/static/images/zahrada.jpg");
    background-size: cover;
    background-position: center;
}

.background-produce {
    background-image: url("/static/images/ovoce_zelenina.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
}

.background-plants {
    background-image: url("/static/images/odrudy_jablek.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
}

.background-substances {
    background-image: url("/static/images/prostredky.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
}

/* Header a navigace */
header {
    background-color: #2e7d32;
    color: white;
    padding: 1em;
}

.nav-back {
    color: white;
    margin-left: 2em;
    text-decoration: none;
}

/* Navigační menu */
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: #c8e6c9;
}

nav ul li {
    display: inline-block;
    position: relative;
    margin-right: 20px;
}

nav ul li ul {
    display: none;
    position: absolute;
    top: 100%;
    background-color: #f1f8e9;
    padding: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav ul li:hover ul {
    display: block;
}

nav ul li > a {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    color: #1b5e20;
    font-weight: bold;
}

nav ul li ul li a {
    padding: 8px 14px;
    font-size: 0.9em;
    text-decoration: none;
    color: #2e7d32;
}

nav ul li a:hover,
nav ul li ul li a:hover {
    background-color: #aed581;
}

/* Obsahový box */
.species-container {
    background-color: rgba(255, 255, 255, 0.95);
    max-width: 600px;
    margin: 2em auto;
    padding: 1em 2em;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.species-container h2 {
    font-size: 1.2em;
    margin-top: 0.2em;
    margin-bottom: 0.5em;
}

/* Formuláře */
form {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    margin-bottom: 1.5em;
}

input[type=text],
select {
    padding: 0.5em;
    font-size: 1em;
}

button {
    padding: 0.5em 1em;
    background-color: #4CAF50;
    border: none;
    color: white;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #388e3c;
}

/* Seznamy */
.species-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.species-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 6px;
    background-color: #fff;
    margin-bottom: 3px;
    border-radius: 4px;
    box-shadow: 0 1px 1px rgba(0,0,0,0.05);
    font-size: 0.85em;
    line-height: 1.3;
}

.species-list li div {
    display: flex;
    gap: 4px;
    align-items: center;
}

/* Ikony */
.delete-btn,
.edit-btn {
    background: none;
    border: none;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    padding: 0 0.3em;
}

.delete-btn {
    color: #d32f2f;
}
.delete-btn:hover {
    color: #b71c1c;
}

.edit-btn {
    color: #1976d2;
}
.edit-btn:hover {
    color: #0d47a1;
}

.background-activities {
    background-image: url("/static/images/aktivity.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
}

.background-careplan {
    background-image: url("/static/images/plan_pece.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
}

.background-applications {
    background-image: url("/static/images/aplikace.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
}

/* Přehled */
.wide-overview {
    max-width: 100%;
    margin: 0 auto;
}

.overview-filters form {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    align-items: center;
    justify-content: flex-start;
    flex-direction: row;
}

.overview-container {
    width: 100%;
    padding: 20px;
}

.overview-table {
    max-width: 100%;
    overflow-x: auto;
    max-height: 600px;
    overflow-y: auto;
}

table.overview {
    width: 100%;
    border-collapse: collapse;
    background-color: rgba(255, 255, 255, 0.95);
    table-layout: fixed;
    font-size: 0.9em;
}

table.overview th, table.overview td {
    border: 1px solid #ccc;
    padding: 4px;
    text-align: left;
    vertical-align: top;
    overflow-wrap: break-word;
}

table.overview th {
    background-color: #f0f0f0;
}


