							/* ===== RESET & ZÁKLADY ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    height: 100%;
    background-color: #f5f5f5;
    color: #333;
    margin: 0;
    padding: 0;
    background-image: url('/images/background1.png');
    background-repeat: repeat;
    background-attachment: fixed;
    background-size: auto;
    background-position: top left;
    font-family: 'Nunito', tahoma;
}

.form {
	border-color: #ed2f8e;
}
							/* ===== OBECNÉ ELEMENTY ===== */
/* === STYLY PRO ÚPRAVU PROFILU === */

/* Validace v reálném čase */
.form-wrapper textarea.is-invalid,
.form-wrapper input.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.2);
}

.form-wrapper textarea.is-valid,
.form-wrapper input.is-valid {
    border-color: #28a745;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.2);
}

/* Náhled fotky a mazání */
.photo-preview {
    position: relative;
    display: inline-block;
    margin-top: 10px;
}
.photo-preview.hidden {
    display: none;
}
.photo-preview .photo-thumb {
    max-width: 150px;
    height: auto;
    border-radius: 8px;
    cursor: pointer;
}
.photo-preview .delete-photo-label {
    display: block;
    margin-top: 5px;
    font-size: 14px;
    cursor: pointer;
}
.photo-preview.is-deleted .photo-thumb {
    opacity: 0.4;
    filter: grayscale(80%);
}


a {
    color: #4482A8;
    text-decoration: none;
}

a:hover {
    color: #ed2f8e;
    text-decoration: none;
}

button, input, select, textarea {
    font-family: 'Nunito', tahoma;
}

button {
    font-size: 14px;
    background-color: #154360;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #ed2f8e;
}

hr {
    margin: 30px 0;
    border: none;
    border-top: 1px solid #ccc;
}

						/* ===== TYPOGRAFIE ===== */
h2 {
    margin-bottom: 10px;
    text-align: center;
    color: #154360;
}

h3 {
    font-size: 18px;
    font-weight: bold;
    text-decoration: underline;
    color: #154360;
}

						/* ===== SEZNAMY ===== */
ul {
    list-style-type: disc;
}

ul ul {
    list-style-type: square;
    margin-left: 20px;
}

ul ul ul {
    list-style-type: circle;
    margin-left: 20px;
}

						/* ===== MODÁLY A POPUPY ===== */
.modal-success {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-in-out;
}

.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9997;
}

.popup-overlay.active {
    display: block;
}

.popup-form {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 25px;
    border: 2px solid #ccc;
    border-radius: 12px;
    z-index: 9998;
    box-shadow: 0 0 20px rgba(0,0,0,0.25);
    min-width: 300px;
    max-width: 90%;
    text-align: center;
}

.popup-form.active {
    display: block;
    text-align: center;
}

.popup-inner {
    background: white;
    padding: 20px;
    border-radius: 10px;
    max-width: 90%;
    text-align: center;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    font-size: 1.5em;
    line-height: 1;
    cursor: pointer;
    color: #333;
    padding: 0;
    margin: 0;
    max-width: 5%;
}

.modal-link {
    display: inline-block;
    margin-top: 10px;
    color: #0066cc;
    text-decoration: underline;
    font-size: 0.95em;
}

.modal-link:hover {
    text-decoration: none;
}

.popup-form input,
.popup-form button {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    padding: 8px;
    font-size: 14px;
}

.popup-form button {
    background-color: #154360;
    color: white;
    border: none;
    border-radius: 4px;
}

.popup-form button:hover {
    background-color: #ed2f8e;
}

						/* ===== NOTIFIKACE A TOASTY ===== */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 5px;
    color: #000;
    z-index: 9999;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    animation: fadeOut 5s ease-in-out forwards;
}

.alert-timeout {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    padding: 8px 12px;
    margin-top: 10px;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}

						/* ===== PROFILY ===== */
.profile-box {
    max-width: 800px;
    margin: 30px auto;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

.profile-box h2 {
    margin-bottom: 20px;
    text-align: center;
}

.profile-box img {
    margin-top: 10px;
    max-width: 100%;
}

.profile-box span[title] {
    cursor: help;
    margin-left: 6px;
}

.profile-actions,
.profile-btn {
    display: inline-block;
    margin: 10px 5px 0;
    color: white;
}

.profile-btn {
    padding: 8px 14px;
    background-color: #154360;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease;
}

.profile-btn:hover {
    background-color: #ed2f8e;
    color: white;
}

.profile-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.profile-summary {
    flex: 1;
    background: #f8f8f8;
    border-radius: 10px;
    padding: 10px 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.profile-summaryx {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f8f8f8;
    border-radius: 10px;
    padding: 10px 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    min-height: 150px;
}

.profile-summary p {
    margin: 6px 0;
    font-size: 15px;
}

.profile-details {
    display: flex;
    flex-wrap: nowrap;
    gap: 60px;
    margin-top: 20px;
    justify-content: space-between;
    background: #f8f8f8;
    padding: 10px 15px;
}

.profile-details .column {
    flex: 1;
}

.profile-details p {
    margin: 6px 0;
    font-size: 14px;
}

.profile-row {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 12px;
    margin-bottom: 8px;
}

.field-label {
    font-weight: bold;
    color: #333;
    text-align: left;
    white-space: nowrap;
    flex: 1;
}

.field-labelx {
    font-weight: bold;
    color: #333;
    text-align: center;
    white-space: nowrap;
    flex: 1;
}

.field-value {
    color: #555;
    text-align: right;
    word-break: break-word;
    flex: 1;
}

.field-valuex {
    color: #555;
    text-align: center;
    word-break: break-word;
    flex: 1;
}

						/* ===== FOTOGRAFIE ===== */
.photo-wrapper {
    width: 150px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    text-align: center;
    margin-top: 10px;
}

.photo-wrapper1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.photo-wrapper1 img {
    max-width: 20%;
    border-radius: 12px;
}

.photo-thumb {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 12px;
    margin: 0;
    padding: 0;
    transition: transform 0.3s ease;
    vertical-align: middle;
}

.photo-thumb:hover {
    transform: scale(1.05);
}

.photo-preview {
    margin-top: 8px;
    position: relative;
    display: inline-block;
}

.photo-preview img.photo-thumb {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

.delete-photo-btn,
.delete-local-photo-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    background: none;
    color: black;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 16px;
    line-height: 20px;
}

.photo-preview .delete-photo-btn,
.photo-preview .delete-local-photo-btn {
    position: absolute;
    top: -10px;
    right: -20px;
    background: none;
    color: black;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-weight: bold;
    font-size: 20px;
}

.preview-img {
    display: block;
    margin-top: 10px;
    max-width: 150px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.cancel-btn {
    background-color: #eee;
    border: none;
    padding: 4px 10px;
    margin-top: 10px;
    cursor: pointer;
    border-radius: 4px;
}

.cancel-btn:hover {
    background-color: #ddd;
}

.photo-gallery {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.gallery-thumb {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: 0 0 6px rgba(0,0,0,0.1);
}

.gallery-thumb:hover {
    transform: scale(1.05);
}

						/* ===== LIGHTBOX ===== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.lightbox.show {
    display: flex;
}

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
    animation: zoomIn 0.3s ease-out;
    display: block;
    margin: auto;
    object-fit: contain;
}

.lightbox.closing {
    animation: fadeOut 0.3s ease-out forwards;
}

.lightbox.closing img {
    animation: zoomOut 0.3s ease-out forwards;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    z-index: 10000;
}

#lightbox-gallery button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 28px;
    background: rgba(255,255,255,0.6);
    border: none;
    border-radius: 50%;
    padding: 8px 14px;
    cursor: pointer;
    z-index: 10000;
    color: #000;
}

#prev-btn { 
    left: 20px; 
}

#next-btn { 
    right: 20px; 
}

/* ===== U IVATELSK  KARTY ===== */
.user-cards-wrapper,
.user-cards-wrapper-guest {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 30px auto;
    max-width: 1200px;
}

.user-grid,
.user-grid-guest {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.user-card,
.user-card-guest {
    display: flex;
    flex-direction: column;
    width: 100px;
    height: 200px;
    border-radius: 0px;
    overflow: visible;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
    position: relative;
}

.user-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.user-card-left,
.user-card-left-guest {
    width: 100%;
    height: 100px;
    overflow: visible;
    position: relative;
}

.user-card-left img,
.user-card-left-guest img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 5px;
}

.user-card-left img:title,
.user-card-left-guest img:title {
    color: green;
}

.user-card-left img:hover,
.user-card-left-guest img:hover {
    transform: scale(1.10);
    border-radius: 5px;
}

.user-card-right,
.user-card-righ-guest {
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: center;
}

.user-card-right h3,
.user-card-right-guest h3 {
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: bold;
    color: #154360;
}

.user-card-right .status-dot,
.user-card-right-guest .status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: green;
    border-radius: 50%;
    margin-left: 6px;
}

.user-card-right .info p,
.user-card-righ-guest .info p {
    margin: 4px 0;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-card-link,
.user-card-link-guest {
    text-decoration: none;
    color: inherit;
    display: block;
}

.user-card-left:hover::after {
    content: attr(data-inzerat);
    position: absolute;
    top: 70%;
    left: 50%;
    background-color: white;
    color: #154360;
    padding: 8px 12px;
    border-radius: 6px;
    border: 2px solid #154360;
    font-size: 12px;
    white-space: normal;
    word-break: break-word;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    z-index: 9999;
    opacity: 0.95;
    max-width: 300px;
    width: max-content;
    min-width: 150px;
}

.user-info .profile-btn {
    display: inline-block;
    text-align: center;
    margin-top: 10px;
    padding: 6px 10px;
    border: 1px solid #ed2f8e;
    background-color: white;
    color: #154360;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-weight: bold;
    font-size: 13px;
}

.user-info .profile-btn:hover {
    background-color: #ed2f8e;
    color: white;
}

						/* ===== SIDEBAR SPECIFIC STYLES ===== */
.stat-value.new-events {
    color: #fff;
    background-color: #dc3545;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 14px;
    min-width: 24px;
    height: 24px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    line-height: 1;
}

.sidebar .user-cards-wrapper,
.sidebar .user-cards-wrapper-guest {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    justify-content: center;
    margin: 30px auto;
    max-width: 300px;
}

.sidebar .user-grid,
.sidebar .user-grid-guest {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px;
    max-width: 300px;
    margin: 0 auto;
    padding: 20px;
}

.sidebar .user-card,
.sidebar .user-card-guest {
    display: flex;
    flex-direction: column;
    width: 50px;
    height: 50px;
    border-radius: 0px;
    overflow: visible;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
    position: relative;
}

.sidebar .user-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sidebar .user-card-left,
.sidebar .user-card-left-guest {
    width: 100%;
    height: 50px;
    overflow: visible;
    position: relative;
}

.sidebar .user-card-left img,
.sidebar .user-card-left-guest img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 5px;
}

.sidebar .user-card-left img .title,
.sidebar .user-card-left-guest img .title {
    color: green;
}

.sidebar .user-card-left img:hover,
.sidebar .user-card-left-guest img:hover {
    transform: scale(1.10);
    border-radius: 5px;
}

.sidebar .user-card-right,
.sidebar .user-card-righ-guest {
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: center;
}

.sidebar .user-card-right h3,
.sidebar .user-card-right-guest h3 {
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: bold;
    color: #154360;
}

.sidebar .user-card-right .status-dot,
.sidebar .user-card-right-guest .status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: green;
    border-radius: 50%;
    margin-left: 6px;
}

.sidebar .user-card-right .info p,
.sidebar .user-card-righ-guest .info p {
    margin: 4px 0;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar .user-card-link,
.sidebar .user-card-link-guest {
    text-decoration: none;
    color: inherit;
    display: block;
}
.sidebar .user-card-left:hover::before {
    content: attr(data-username);
    position: absolute;
    top: 70%;
    left: 50%;
    background-color: white;
    color: #154360;
    padding: 8px 12px 4px 12px;
    border-radius: 6px 6px 0 0;
    border: 2px solid #154360;
    border-bottom: none;
    font-size: 12px;
    font-weight: bold; /*   Username tu n  */
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    z-index: 9999;
    opacity: 0.95;
    max-width: 300px;
    width: max-content;
    min-width: 100px;
}

.sidebar .user-card-left:hover::after {
    content: attr(data-age) "\A" attr(data-mesto);
    position: absolute;
    top: calc(70% + 25px); /* Posunout n  */
    left: 50%;
    background-color: white;
    color: #154360;
    padding: 4px 12px 8px 12px;
    border-radius: 0 0 6px 6px;
    border: 2px solid #154360;
    border-top: none;
    font-size: 12px;
    font-weight: normal; /*   V k norm ln  */
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    z-index: 9999;
    opacity: 0.95;
    max-width: 300px;
    width: max-content;
    min-width: 100px;
}

.sidebar .user-info .profile-btn {
    display: inline-block;
    text-align: center;
    margin-top: 10px;
    padding: 6px 10px;
    border: 1px solid #ed2f8e;
    background-color: white;
    color: #154360;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-weight: bold;
    font-size: 13px;
}

.sidebar .user-info .profile-btn:hover {
    background-color: #ed2f8e;
    color: white;
}

						/* ===== VYHLEDÁVACÍ FORMULÁŘ ===== */

html {
    scroll-behavior: smooth;
}

#search-results {
    scroll-margin-top: 20px;
    min-height: 50px;
    transition: opacity 0.3s ease;
}

#search-results.loading {
    opacity: 0.7;
    pointer-events: none;
}

.search-loading {
    text-align: center;
    padding: 40px 20px;
    font-size: 18px;
    color: #154360;
    font-weight: 600;
}

.search-loading::after {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-left: 10px;
    border: 3px solid #3498db;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.error {
    text-align: center;
    padding: 20px;
    background: #ffebee;
    color: #c62828;
    border-radius: 8px;
    border: 1px solid #ffcdd2;
    margin: 20px 0;
    font-weight: 500;
}

.search-wrapper {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 25px;
    margin: 5px auto;
    max-width: 95%;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.search-wrapper h2 {
    text-align: center;
    color: #154360;
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

#search-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    align-items: flex-end;
    padding: 2px 0;
    justify-content: center;
}

.search-form label {
    display: flex;
    flex-direction: column;
    font-weight: bold;
    font-size: 12px;
    margin-right: 10px;
    color: #154360;
}

.search-form select,
.search-form input[type="number"],
.search-form input[type="text"] {
    padding: 2px 2px;
    font-size: 12px;
    border-radius: 5px;
    border: 1px solid #ccc;
    min-width: 140px;
}

.search-form .range-group {
    display: flex;
    gap: 5px;
    align-items: center;
}

.search-form .range-group input {
    width: 80px;
}

.search-form input[type="number"] {
    width: 60px;
    max-width: 60px;
    text-align: center;
}

						/* Hlavní form-group s input políčky - grid s explicitním umístěním */

.form-group:first-of-type {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: auto auto;
    gap: 10px;
/*    margin-bottom: 20px; */
}

						/* PRVNÍ ŘÁDEK - všechny labely */

.form-group:first-of-type > label:nth-child(1) { /* Hledám */
    grid-column: 1; 
    grid-row: 1; 
}

.form-group:first-of-type > label:nth-child(3) { /* který/á hledá */
    grid-column: 2; 
    grid-row: 1; 
}

.form-group:first-of-type > label:nth-child(5) { /* z kraje */
    grid-column: 3; 
    grid-row: 1; 
}

.form-group:first-of-type > label:nth-child(7) { /* a/nebo města */
    grid-column: 4; 
    grid-row: 1; 
}

.form-group:first-of-type > label:nth-child(9) { /* ve věku */
    grid-column: 5; 
    grid-row: 1; 
}

.form-group:first-of-type > label:nth-child(11) { /* a výšky */
    grid-column: 6; 
    grid-row: 1; 
}

						/* DRUHÝ ŘÁDEK - všechny selecty a inputy */

.form-group:first-of-type > select:nth-child(2) { /* select pohlaví */
    grid-column: 1; 
    grid-row: 2; 
}

.form-group:first-of-type > select:nth-child(4) { /* select hledám */
    grid-column: 2; 
    grid-row: 2; 
}

.form-group:first-of-type > select:nth-child(6) { /* select kraj */
    grid-column: 3; 
    grid-row: 2; 
}

.form-group:first-of-type > select:nth-child(8) { /* select město */
    grid-column: 4; 
    grid-row: 2; 
}

.form-group:first-of-type > .range-inputs:nth-child(10) { /* věkové inputy */
    grid-column: 5; 
    grid-row: 2; 
}

.form-group:first-of-type > .range-inputs:nth-child(12) { /* výškové inputy */
    grid-column: 6; 
    grid-row: 2; 
}

						/* Checkbox skupiny - celá šířka */

.form-group.checkbox-group-wrapper {
    width: 100%;
}

						/* Základní styling pro form-group */

.form-group label {
    font-weight: 600;
    color: #154360;
    margin-bottom: 8px;
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group select,
.form-group input[type="number"] {
    padding: 12px 15px;
    border: 2px solid rgba(52, 152, 219, 0.3);
    border-radius: 8px;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    font-family: inherit;
    width: 100%;
}

.form-group select:focus,
.form-group input[type="number"]:focus {
    outline: none;
    border-color: #ed2f8e;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    background: white;
}

.form-group select:hover,
.form-group input[type="number"]:hover {
    border-color: #ed2f8e;
}

.range-inputs {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: nowrap;
    justify-content: flex-start;
}

.short-input {
    width: 80px !important;
    text-align: center;
    flex-shrink: 0;
}

.range-inputs span {
    font-weight: bold;
    color: #7f8c8d;
    font-size: 16px;
}

.range-inputs .unit {
    color: #95a5a6;
    font-size: 13px;
    font-weight: 500;
    font-style: italic;
}

.checkbox-group {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
    gap: 12px;
    max-height: 140px;
    overflow-y: auto;
    border: 2px solid rgba(52, 152, 219, 0.2);
    border-radius: 10px;
    padding: 5px;
    background: rgba(255, 255, 255, 0.7);
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 2px 2px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.checkbox-item input[type="checkbox"] {
    margin: 0;
    width: 18px;
    height: 18px;
    accent-color: #3498db;
    cursor: pointer;
}

.checkbox-item label {
    margin: 0 !important;
    font-weight: 500 !important;
    cursor: pointer;
    font-size: 14px !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    color: #2c3e50 !important;
    transition: color 0.2s ease;
}

.checkbox-item:hover label {
    color: #ed2f8e !important;
}

						/* Styling pro tlačítka */

.form-group:last-of-type {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(189, 195, 199, 0.3);
}

#search-results.loading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

#search-results.loading::after {
    content: "Vyhledávám...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(52, 152, 219, 0.9);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    z-index: 10;
}

						/* Toggle tlačítko pro rozbalení/zabalení */

.form-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.form-toggle:hover {
    background-color: rgba(52, 152, 219, 0.1);
}

.form-toggle span {
    font-weight: 600;
    color: #154360;
    user-select: none;
}

.toggle-arrow {
    font-size: 18px;
    color: #3498db;
    transition: transform 0.3s ease;
    user-select: none;
}

.toggle-arrow.expanded {
    transform: rotate(180deg);
}

						/* Rozbalovací obsah */

.form-collapsible {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
}

.form-collapsible.expanded {
    max-height: 800px;
}

.search-info {
    text-align: center;
    padding: 20px;
}

/* .form-groupx {
     margin-bottom: 20px;
 } */

.form-groupx label {
    font-weight: bold;
}

.form-groupx.checkbox-group-wrapper {
    grid-column: 1 / -1;
}

.form-groupx label {
    font-weight: 600;
    color: #154360;
    margin-bottom: 8px;
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-groupx select,
.form-group input[type="number"] {
    padding: 12px 15px;
    border: 2px solid rgba(52, 152, 219, 0.3);
    border-radius: 8px;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-groupx select:focus,
.form-group input[type="number"]:focus {
    outline: none;
    border-color: #ed2f8e;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    background: white;
}

.form-groupx select:hover,
.form-groupx input[type="number"]:hover {
    border-color: #ed2f8e;
}

						/* ===== UTILITY TŘÍDY ===== */
.hidden {
    display: none !important;
}

.inactive {
    background-color: #ffd6d6;
}

.notified {
    background-color: #d6ffd6;
}

						/* ===== ANIMACE ===== */
@keyframes fadeIn {
    from { 
        opacity: 0; 
    }
    to { 
        opacity: 1; 
    }
}

@keyframes fadeOut {
    0%   { opacity: 1; }
    80%  { opacity: 1; }
    100% { opacity: 0; display: none; }
}

@keyframes zoomIn {
    from { 
        transform: scale(0.95); 
        opacity: 0; 
    }
    to   { 
        transform: scale(1); 
        opacity: 1; 
    }
}

@keyframes zoomOut {
    from { 
        transform: scale(1); 
        opacity: 1; 
    }
    to { 
        transform: scale(0.95); 
        opacity: 0; 
    }
}

@keyframes fadeTooltip {
    to {
        opacity: 1;
    }
}

						/* Animace pro lepší UX */
.form-group {
    animation: fadeInUp 0.3s ease forwards;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-group:nth-child(3) { animation-delay: 0.3s; }
.form-group:nth-child(4) { animation-delay: 0.4s; }
.form-group:nth-child(5) { animation-delay: 0.5s; }
.form-group:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

						/* Fade-in animace pro modály */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translate(-50%, -45%); 
    }
    to { 
        opacity: 1; 
        transform: translate(-50%, -50%); 
    }
}

						/* ===== TABY ===== */

.tab-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.tab-btn {
    background-color: #154360;
    color: white;
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    font-size: 15px;
    transition: background-color 0.3s;
}

.tab-btn.active,
.tab-btn:hover {
    background-color: #ed2f8e;
}

						/* ===== UŽIVATELSKÁ LIŠTA ===== */

.user-bar {
    background-color: none;
    color: #d8dee9;
    text-align: center;
    padding: 10px 0;
    font-size: 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.user-bar .user-info {
    white-space: nowrap;
}

.user-bar .user-info span {
    font-weight: bold;
    color: #ed2f8e;
}

.user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    vertical-align: middle;
    margin-right: 5px;
}

.badge-new {
    color: white;
    background-color: red;
    font-size: 10px;
    padding: 2px 6px;
    margin-left: 8px;
    border-radius: 8px;
    vertical-align: middle;
}

.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #4CAF50;
    border-radius: 50%;
    margin-left: 6px;
    vertical-align: middle;
}

						/* ===== FORMULÁŘE - OBECNÉ ===== */

.form-wrapper {
    background-color: #ffffff;
    padding: 15px;
    margin: 30px auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    width: 90%;
}

.form-wrapper h2 {
    margin-bottom: 10px;
    text-align: center;
    color: #154360;
}

.form-wrapper h4 {
    margin-bottom: 20px;
    text-align: center;
    color: #333;
}

.form-wrapper label {
    display: block;
    margin-bottom: 0px;
    font-weight: bold;
    font-size: 15px;
}

.form-wrapper input[type="text"],
.form-wrapper input[type="email"],
.form-wrapper input[type="password"],
.form-wrapper input[type="number"],
.form-wrapper input[type="file"],
.form-wrapper select,
.form-wrapper textarea {
    width: 100%;
    padding: 8px 8px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
}

.form-wrapper textarea {
    resize: vertical;
}

.form-wrapper button[type="submit"] {
    background-color: #154360;
    color: #fff;
    padding: 10px 18px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 15px;
}

.form-wrapper button[type="submit"]:hover {
    background-color: #ed2f8e;
}

.form-wrapper .help-text {
    font-size: 0.8em;
    color: #777;
    margin-top: -8px;
    margin-bottom: 8px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    font-weight: bold;
}

.form-error {
    color: red;
    background-color: #ffe6e6;
    padding: 10px;
    border: 1px solid red;
    border-radius: 6px;
    margin-bottom: 10px;
    font-weight: bold;
}

.input-error {
    border: 1px solid red;
}

.form-error-msg {
    color: red;
    font-size: 0.9em;
    margin-top: 4px;
}

.field-error {
    color: red;
    margin-top: 5px;
    font-size: 0.9em;
}

.help-text {
    font-size: 12px;
    color: #777;
    margin-top: 4px;
}

.required-star {
    color: red;
    font-weight: bold;
    margin-left: 3px;
}

.hide-checkbox {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: #444;
}

						/* ===== HESLA ===== */

.password-wrapper {
    position: relative;
}

.password-wrapper input[type="password"],
.password-wrapper input[type="text"] {
    width: 100%;
    padding-right: 40px;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 18px;
    color: #999;
}

form .password-wrapper .toggle-password {
    font-size: 0.8em;
    cursor: pointer;
    margin-left: 5px;
}

						/* ===== CHECKBOXY ===== */

.checkbox-inline label {
    display: inline-block;
    margin-right: 20px;
    white-space: nowrap;
}

.checkbox-label {
    font-weight: normal;
    margin-right: 20px;
    display: inline-block;
}

.checkbox-label span {
    font-weight: normal;
}

						/* ===== TABULKY ===== */

table {
    max-width: 100%;
    border-collapse: collapse;
    margin-bottom: 25px;
    font-size: 14px;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    margin: 0 auto;
    text-align: center;
}

table th, 
table td {
    padding: 10px 12px;
    text-align: left;
}

table th {
    background-color: #f7f7f7;
    color: #333;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 13px;
}

table tr:hover {
    background-color: #fef0f6;
}

table tr:last-child td {
    border-bottom: none;
}

						/* ===== STRÁNKOVÁNÍ ===== */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin: 20px 0;
    flex-wrap: wrap;
	flex-basis: 100%;
}

.pagination .page-btn {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background-color: #fff;
    color: #333;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.2s ease;
    min-width: 40px;
}

.pagination .page-btn:hover {
    background-color: #f5f5f5;
    border-color: #007cba;
}

.pagination .page-btn.active {
    background-color: #007cba;
    color: white;
    border-color: #007cba;
}

.pagination .nav-btn {
    font-weight: bold;
    padding: 8px 10px;
}

.pagination .page-dots {
    padding: 8px 4px;
    color: #666;
    font-weight: bold;
}

.no-users-message {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

						/* ===== MATCHE ===== */



.matche-page .matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 20px;
    width: 100%;
}

.matche-page .match-card {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.matche-page .match-photo img {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    transition: transform 0.3s ease;
    object-fit: cover;
    margin-bottom: 15px;
}

.matche-page .match-photo img:hover {
    transform: scale(1.10);
}

.matche-page .match-info h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.1em;
}

.matche-page .match-details {
    margin-bottom: 10px;
}

.matche-page .match-details span {
    display: inline-block;
    margin: 0 5px;
    font-size: 0.9em;
    color: #666;
}

.matche-page .match-status {
    margin-bottom: 15px;
    font-size: 0.9em;
}

.matche-page .match-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.matche-page .match-btn {
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9em;
    cursor: pointer;
    background-color: #6c757d;
    color: white;
    transition: background-color 0.3s;
    display: inline-block;
}

.matche-page .match-btn:hover {
    background-color: #5a6268;
}

.matche-page .match-btn.primary {
    background-color: #007bff;
}

.matche-page .match-btn.primary:hover {
    background-color: #0056b3;
}

.matche-page .match-btn.danger {
    background-color: #dc3545;
}

.matche-page .match-btn.danger:hover {
    background-color: #c82333;
}

.matche-page .empty-state {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.matche-page .empty-state h3 {
    color: #666;
    margin-bottom: 15px;
}

.matche-page .empty-state p {
    color: #999;
    margin-bottom: 10px;
}

.matche-page .empty-state a {
    color: #007bff;
    text-decoration: none;
}

.matche-page .empty-state a:hover {
    text-decoration: underline;
}

						

						/* CSS styly s prefix pro izolaci */

.visitors-page .matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 20px;
    width: 100%;
}

.visitors-page .match-card {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.visitors-page .match-photo img {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    transition: transform 0.3s ease;
    object-fit: cover;
    margin-bottom: 15px;
}

.visitors-page .match-photo img:hover {
    transform: scale(1.10);
}

.visitors-page .match-info h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.1em;
}

.visitors-page .match-details {
    margin-bottom: 10px;
}

.visitors-page .match-details span {
    display: inline-block;
    margin: 0 5px;
    font-size: 0.9em;
    color: #666;
}

.visitors-page .match-status {
    margin-bottom: 10px;
    font-size: 0.9em;
}

.visitors-page .visit-info {
    margin-bottom: 15px;
    font-size: 0.8em;
}

.visitors-page .match-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.visitors-page .match-btn {
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9em;
    cursor: pointer;
    background-color: #6c757d;
    color: white;
    transition: background-color 0.3s;
    display: inline-block;
}

.visitors-page .match-btn:hover {
    background-color: #5a6268;
}

.visitors-page .match-btn.primary {
    background-color: #007bff;
}

.visitors-page .match-btn.primary:hover {
    background-color: #0056b3;
}

.visitors-page .match-btn.success {
    background-color: #28a745;
}

.visitors-page .match-btn.success:hover {
    background-color: #218838;
}

.visitors-page .empty-state {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.visitors-page .empty-state h3 {
    color: #666;
    margin-bottom: 15px;
}

.visitors-page .empty-state p {
    color: #999;
    margin-bottom: 10px;
}

.visitors-page .empty-state a {
    color: #007bff;
    text-decoration: none;
}

.visitors-page .empty-state a:hover {
    text-decoration: underline;
}

						

						/* CSS styly s prefix pro izolaci */

.visited-page .matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 20px;
    width: 100%;
}

.visited-page .match-card {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.visited-page .match-photo img {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    transition: transform 0.3s ease;
    object-fit: cover;
    margin-bottom: 15px;
}

.visited-page .match-photo img:hover {
    transform: scale(1.10);
}

.visited-page .match-info h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.1em;
}

.visited-page .match-details {
    margin-bottom: 10px;
}

.visited-page .match-details span {
    display: inline-block;
    margin: 0 5px;
    font-size: 0.9em;
    color: #666;
}

.visited-page .match-status {
    margin-bottom: 10px;
    font-size: 0.9em;
}

.visited-page .visit-info {
    margin-bottom: 15px;
    font-size: 0.8em;
}

.visited-page .match-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.visited-page .match-btn {
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9em;
    cursor: pointer;
    background-color: #6c757d;
    color: white;
    transition: background-color 0.3s;
    display: inline-block;
}

.visited-page .match-btn:hover {
    background-color: #5a6268;
}

.visited-page .match-btn.primary {
    background-color: #007bff;
}

.visited-page .match-btn.primary:hover {
    background-color: #0056b3;
}

.visited-page .match-btn.success {
    background-color: #28a745;
}

.visited-page .match-btn.success:hover {
    background-color: #218838;
}

.visited-page .empty-state {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.visited-page .empty-state h3 {
    color: #666;
    margin-bottom: 15px;
}

.visited-page .empty-state p {
    color: #999;
    margin-bottom: 10px;
}

.visited-page .empty-state a {
    color: #007bff;
    text-decoration: none;
}

.visited-page .empty-state a:hover {
    text-decoration: underline;
}

						

						/* ===== KŘÍŽEK PRO MAZÁNÍ NÁVŠTĚV ===== */

/* Relativní pozice pro match-card aby křížek byl správně umístěn */
.visitors-page .match-card,
.visited-page .match-card {
    position: relative;
}

						/* Křížek pro mazání */

.delete-visit-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 50%;
    background-color: rgba(220, 53, 69, 0.8);
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0.7;
    z-index: 10;
    font-family: Arial, sans-serif;
}

.delete-visit-btn:hover {
    background-color: #dc3545;
    opacity: 1;
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.4);
}

.delete-visit-btn:active {
    transform: scale(0.95);
}

						/* Symbol křížku - používáme × entity místo content */

.delete-visit-btn::before {
    content: "\00D7";  /* × symbol */
    line-height: 1;
    font-size: 18px;
}

						/* ===== PLOVOUCÍ TLAČÍTKA ===== */
.floating-buttons {
    position: fixed; /* Klíčové pro plovoucí pozici */
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column; /* Tlačítka pod sebou */
    gap: 10px;
    z-index: 1000; /* Zajistí, že budou vždy navrchu */
}

.float-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%; /* Kulatý tvar */
    background-color: #154360; /* Tmavě modrá z vašeho designu */
    color: white;
    border: 2px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    text-decoration: none; /* Pro případ odkazu */
}

.float-btn:hover {
    background-color: #ed2f8e; /* Růžová barva z vašeho designu */
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Původní stav tlačítka - skryté, ale připravené se objevit */
.float-btn.top-btn {
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s, opacity 0.3s ease;
}

/* Nová třída, kterou bude přidávat JavaScript */
.float-btn.top-btn.visible {
    visibility: visible;
    opacity: 1;
}


						/* ===== LAYOUT KOMPONENTY ===== */

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    border-bottom: none;
    flex: 1;
    display: flex;
    flex-direction: column;
}

						/* ===== NOV? CONTENT WRAPPER ===== */

.content-wrapper {
    display: flex;
    gap: 20px;
    padding: 20px;
    flex: 1;
}

.main-content {
    flex: 1;
    min-width: 0; /* Umo?n? flexboxu spr?vn? zvl?dnout overflow */
}

						/* ===== BOČNÍ SLOUPEC (SIDEBAR) ===== */
.sidebar {
    width: 300px;
    flex-shrink: 0;
}

.user-bar {
    background: linear-gradient(145deg, #306484, #f8f9fa);
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.user-bar h3 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    text-align: center;
    font-weight: 600;
    font-size: 1.1em;
    letter-spacing: 0.5px;
}

.stats-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

/* Finální a čistý styl pro tlačítka statistik */
.stat-item {
    width: 260px;
    height: 30px;
    display: flex;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
    background: #f8f9fa;
    border: 2px solid #154360;
    border-radius: 8px;
    padding: 0 15px 0 10px;
    transition: border-color 0.2s ease;
}

.stat-item:hover {
    border-color: #ed2f8e;
}

.stat-item .stat-icon i {
    font-size: 18px;
    vertical-align: middle;
    color: #154360;
    transition: color 0.2s ease;
}

.stat-item:hover .stat-icon i {
    color: #ed2f8e;
}

.stat-item .stat-label {
    flex: 1;
    margin-left: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    transition: color 0.2s ease;
}

.stat-item:hover .stat-label {
    color: #ed2f8e;
    font-weight: 600;
}

.stat-item .stat-value {
    font-weight: 700;
    font-size: 16px;
    color: #2c3e50;
    min-width: 30px;
    text-align: center;
}

.stat-item:hover .stat-value {
    color: #2c3e50;
}

a.stat-item:hover {
    text-decoration: none;
}
						/* ===== HLAVI?KA ===== */

.site-header {
    background-color: #154360;
    color: white;
    padding: 10px 20px;
}

.site-header a,
.site-footer a {
    color: #ed2f8e;
    text-decoration: none;
}

.site-header a:hover,
.site-footer a:hover {
    text-decoration: underline;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo-img {
    height: 50px;
}

.logo-desktop {
    display: block;
}

.logo-mobile {
    display: none;
}

.auth-box {
    display: flex;
    gap: 10px;
    align-items: center;
}

.auth-box button {
    padding: 6px 12px;
    border: none;
    background-color: #154360;
    color: white;
    cursor: pointer;
    border-radius: 5px;
}

.auth-box button:hover {
    background-color: #ed2f8e;
}

						/* ===== NAVIGACE ===== */

.top-menu {
    /* Vytvoří přechod z bílé (prvních 50% výšky) do plně průhledné */
    background: linear-gradient(to bottom, white 75%, transparent);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 90;
    /* Zrušení spodního rámečku je klíčové pro plynulý přechod */
    border-bottom: none; 
}

.menu-toggle {
    display: none;
}

.hamburger {
    font-size: 28px;
    display: none;
    cursor: pointer;
    padding: 10px;
}


						/* ===== PATI?KA ===== */

.site-footer {
    background-color: #154360;
    color: white;
    text-align: center;
    padding: 10px;
    margin: 0 auto;
    max-width: 1400px;
    width: 100%;
}

						/* ===== NAVIGAČNÍ CENTRUM V JEDNÉ ŘADĚ ===== */
.nav-center {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    max-width: 800px;
    margin: auto;
}

.nav-box {
    flex: 1; /* Roztáhne tlačítka na dostupnou šířku */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 15px 10px;
    text-decoration: none;
    color: #154360;
    font-weight: bold;
    font-size: 15px;
    transition: all 0.3s ease;
    min-height: 90px; /* Sjednotí výšku */
}

.nav-box-1 {
    flex: 1; /* Roztáhne tlačítka na dostupnou šířku */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 15px 10px;
    text-decoration: none;
    color: #154360;
    font-weight: bold;
    font-size: 15px;
    transition: all 0.3s ease;
    min-height: 90px; /* Sjednotí výšku */
}
.nav-box-1 i {
	font-size: 3em;
}

.nav-box-unactive {
    flex: 1; /* Roztáhne tlačítka na dostupnou šířku */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 15px 10px;
    text-decoration: none;
    color: silver;
    font-size: 15px;
    transition: all 0.3s ease;
    min-height: 90px; /* Sjednotí výšku */
}

.nav-box:hover {
    background-color: #e3f2fd;
    border-color: #4482A8;
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    color: #ed2f8e;
}

.nav-box i {
    font-size: 24px;
    margin-bottom: 8px;
}

.nav-center-button {
    flex-shrink: 0; /* Zabrání zmenšení kulatého tlačítka */
    width: 70px;
    height: 70px;
    background-color: #ed2f8e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    text-decoration: none;
    border: 4px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.nav-center-button-unactive {
    flex-shrink: 0; /* Zabrání zmenšení kulatého tlačítka */
    width: 70px;
    height: 70px;
    background-color: silver;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    text-decoration: none;
    border: 4px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    
}

.nav-center-button:hover {
    background-color: #154360;
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/*
 * Oprava žlutého pozadí u inputů při automatickém vyplnění (autofill) v Chrome/Edge.
 * Trik spočívá v použití velkého vnitřního stínu, který překryje výchozí barvu.
 */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    /* Nastaví barvu textu, protože ji prohlížeč také může změnit */
    -webkit-text-fill-color: #154360 !important; 
    
    /* Vytvoří velký vnitřní stín s barvou pozadí, kterou chcete (např. bílá) */
    -webkit-box-shadow: 0 0 0 40px white inset !important;
    
    /* Zabrání probliknutí barvy při přechodu */
    transition: background-color 5000s ease-in-out 0s;
}

					/* ===== Styly pro validaci formulářů v reálném čase ====== */

.form-wrapper textarea.is-invalid,
.form-wrapper input.is-invalid {
    border: 5px solid #dc3545; /* Červená barva pro chybu */
  /*  box-shadow: 0 0 0 5px rgba(220, 53, 69, 0.2); */
}

.form-wrapper textarea.is-valid,
.form-wrapper input.is-valid {
    border: 3px solid silver; /* Zelená barva pro úspěch */
  /*  box-shadow: 0 0 0 8px rgba(40, 167, 69, 0.2); */
}

/* Plynulý přechod barvy rámečku */
.form-wrapper textarea,
.form-wrapper input {
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
.form-success {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-weight: bold;
}

.hidden-value {
    color: #dc3545 !important; /* Osvědčená červená barva pro chyby/upozornění */
    font-style: italic !important; /* Doporučuji přidat kurzívu pro odlišení */
}