@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;500;700&display=swap');

:root {
    --bg-primary: #FFE6E5; /* Tmavší růžová – u loga (vlny) */
    --bg-light: #FFF5F5;   /* Světlejší růžová – za textem (pozadí) */
    --contrast-teal: #006781;
    --text-main: #006781;
    --text-light: #4c8a99;
    --interactive: #006781;
    --interactive-hover: #004d61;
    --nav-height: 80px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
}

body {
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

/* Nav */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    padding: 15px 5%;
    z-index: 100;
    gap: 10px;
}

.nav-row-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-row-auth {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    gap: 15px;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 30px;
}

.brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--contrast-teal);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-logo {
    height: 45px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 50, 60, 0.1));
}

.nav-links a {
    margin-left: 20px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

/* Zrušení podtržení a barva textu */
.nav-links a:not(.btn-primary):hover {
    color: var(--interactive-hover);
    text-decoration: none;
}

/* Ručně kreslený kroužek - plynulá organická animace pomocí DOM SVG */
.nav-hand-circle {
    position: absolute;
    top: 50%;
    left: 48%; /* Lehce nedbalé zarovnání typické pro ležérní kresbu */
    transform: translate(-50%, -50%);
    width: 155%;
    height: 180%;
    pointer-events: none;
    z-index: -1;
}

.nav-hand-circle path {
    fill: none;
    stroke: var(--interactive);
    stroke-width: 2.3;
    stroke-linecap: round;
    stroke-linejoin: round;
    /* Původní délka trasy je cca 250 jednotek */
    stroke-dasharray: 260;
    stroke-dashoffset: 260;
    /* Animace pomocí beziera: Začne zvolna, zrychlí se a mírně zpomalí ke konci (efekt lidské ruky s fixou) */
    transition: stroke-dashoffset 0.45s cubic-bezier(0.5, 0.1, 0.3, 1);
}

/* Těsně při spuštění hoveru se vykreslí čára */
.nav-links a:not(.btn-primary):hover .nav-hand-circle path {
    stroke-dashoffset: 0;
}

.btn-primary, .nav-links a.btn-primary {
    background-color: var(--contrast-teal);
    color: var(--bg-primary) !important; /* Vynucení růžového textu na teal pozadí */
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
}

/* Nový obrysový styl pro tlačítka v navigaci */
.btn-nav-outline {
    background-color: var(--bg-light);
    color: var(--contrast-teal) !important;
    border: 2.5px solid var(--contrast-teal);
    padding: 6px 18px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    cursor: pointer;
}

.btn-nav-outline:hover {
    background-color: var(--contrast-teal);
    color: var(--bg-light) !important;
}

.btn-nav-outline svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.5;
}
.btn-primary {
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 2px solid var(--contrast-teal);
    cursor: pointer;
    display: inline-block;
}

.btn-primary:hover {
    background-color: var(--interactive-hover);
    border-color: var(--interactive-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 103, 129, 0.25);
}

/* Scroll Animation Section */
.hero-scroll-container {
    height: 480vh;
    position: relative;
}

.sticky-hero {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--bg-light); /* Světlé pozadí = oblast textu */
}

.hero-bg-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.wave-path {
    fill: var(--bg-primary); /* Tmavší růžová – oblast u loga */
    opacity: 1;
    pointer-events: none;
}

.logo-icecream {
    width: 480px;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 10;
    transition: all 0.7s cubic-bezier(0.25, 1, 0.5, 1);
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 15px 25px rgba(0, 50, 60, 0.1));
    pointer-events: none;
}

.hero-text {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 5;
}

.text-group {
    position: absolute;
    width: 35%;
    max-width: 500px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.7s cubic-bezier(0.25, 1, 0.5, 1);
    padding: 40px;
}

.text-group h1 {
    font-size: 3.5rem;
    margin-bottom: 25px;
    color: var(--contrast-teal);
    line-height: 1.1;
}

.text-group p {
    font-size: 1.4rem;
    line-height: 1.6;
    color: var(--contrast-teal);
    font-weight: 500;
}

#text-center {
    width: 50%;
    max-width: 600px;
    text-align: center;
    left: 50%;
    top: 45%;
    transform: translate(-50%, 0);
}

#text-left {
    left: 5%;
    transform: translate(-60px, -50%);
}

#text-right {
    right: 5%;
    text-align: right;
    transform: translate(60px, -50%);
}

#text-cta {
    width: 60%;
    max-width: 700px;
    text-align: center;
    left: 50%;
    top: 50%;
    transform: translate(-50%, 0);
    pointer-events: none;
}

#text-cta h2 {
    font-size: 3rem;
    margin-bottom: 40px;
    color: var(--contrast-teal);
}

#text-cta .cta-hero-btn {
    font-size: 1.5rem;
    padding: 18px 50px;
}

/* States controlled by JS */
.state-0 .logo-icecream {
    transform: translate(-50%, -300px) scale(0.9); /* O něco výše */
}
.state-0 #text-center {
    opacity: 1;
    top: 50%;
    transform: translate(-50%, 50px);
    pointer-events: auto;
}

.state-1 .logo-icecream {
    transform: translate(calc(-50% + 25vw), -50%) scale(0.85);
}
.state-1 #text-left {
    opacity: 1;
    transform: translate(0, -50%);
}

.state-2 .logo-icecream {
    transform: translate(calc(-50% - 25vw), -50%) scale(0.85);
}
.state-2 #text-right {
    opacity: 1;
    transform: translate(0, -50%);
}

.state-3 .logo-icecream {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.7);
}
.state-3 #text-cta {
    opacity: 1;
    transform: translate(-50%, -50%);
    pointer-events: auto;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px;
    background-color: var(--bg-primary);
    color: var(--text-light);
    border-top: 1px solid rgba(0, 103, 129, 0.05);
}

#map {
    height: calc(100vh - var(--nav-height));
    width: 100%;
    margin-top: var(--nav-height);
    z-index: 1;
}

.custom-pin-image {
    mix-blend-mode: multiply;
}

/* Map Search Overlay */
.map-search-container {
    position: absolute;
    top: calc(var(--nav-height) + 20px);
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 15px;
    align-items: center;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    background: white;
    padding: 12px 25px;
    border-radius: 30px; /* Lehce více zaoblené » pill shape */
    box-shadow: 0 6px 25px rgba(0, 103, 129, 0.12);
    width: 320px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
}

/* Když se rozbalí výsledky, odstraníme dolní zaoblení pro čisté napojení */
.search-input-wrapper.has-results {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    box-shadow: 0 2px 10px rgba(0, 103, 129, 0.05); /* zmenšený stín mezi inputem a dropdownem */
}

.search-input-wrapper:focus-within {
    box-shadow: 0 8px 30px rgba(0, 103, 129, 0.2);
    transform: translateY(-2px);
}

.search-icon {
    width: 22px;
    height: 22px;
    fill: var(--text-light);
    margin-right: 12px;
    flex-shrink: 0;
}

.search-input-wrapper input {
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 1.05rem;
    color: var(--text-main);
    width: 100%;
    background: transparent;
    font-weight: 500;
}

.search-input-wrapper input::placeholder {
    color: var(--text-light);
    opacity: 0.6;
    font-weight: 400;
}

.clear-icon {
    width: 20px;
    height: 20px;
    fill: var(--text-light);
    cursor: pointer;
    margin-left: 10px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.clear-icon:hover {
    opacity: 1;
}

.search-box {
    position: relative;
    display: flex;
    flex-direction: column;
}

.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 103, 129, 0.15);
    overflow: hidden;
    z-index: 5;
}

.search-suggestion-item {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    border-bottom: 1px solid rgba(0, 103, 129, 0.08);
    cursor: pointer;
    transition: background 0.2s ease;
}

.search-suggestion-item:last-child {
    border-bottom: none;
}

.search-suggestion-item:hover {
    background: var(--bg-light);
}

.suggestion-icon {
    width: 20px;
    height: 20px;
    fill: var(--text-main);
    margin-right: 15px;
    flex-shrink: 0;
}

.suggestion-texts {
    display: flex;
    flex-direction: column;
}

.suggestion-main {
    font-weight: 600;
    color: var(--text-main);
    font-size: 1rem;
}

.suggestion-secondary {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 2px;
}

.filter-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: none;
    width: 52px;
    height: 52px;
    border-radius: 16px; /* Jemně zaoblený čtverec pro filtr dle ukázky */
    box-shadow: 0 6px 25px rgba(0, 103, 129, 0.12);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 103, 129, 0.2);
}

.filter-icon {
    width: 26px;
    height: 26px;
    fill: var(--text-main);
}

/* Admin specific */
.admin-container {
    padding: 120px 5% 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white; /* Karty v adminu necháme bílé pro profi vzhled */
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 103, 129, 0.05);
    border-bottom: 4px solid var(--contrast-teal);
}

.stat-card h3 {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 10px;
}

.stat-card .value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--contrast-teal);
}

.admin-table-container {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 103, 129, 0.05);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th, .admin-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.admin-table th {
    color: var(--text-light);
    font-weight: 500;
}

.admin-table td {
    font-weight: 500;
    color: var(--contrast-teal);
}

.action-btn {
    padding: 8px 15px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    background: white;
    transition: 0.2s;
    color: var(--contrast-teal);
}

.action-btn:hover {
    background: var(--bg-primary);
}

/* Floating Widget */
.floating-widget {
    position: fixed;
    bottom: 30px;
    left: 30px;
    height: 60px;
    display: flex;
    align-items: center;
    background-color: var(--contrast-teal);
    border-radius: 60px;
    padding-right: 0px;
    overflow: hidden;
    cursor: pointer;
    z-index: 1000;
    opacity: 0.8; /* 80% transparence / 20% průhledné */
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    max-width: 60px;
    text-decoration: none;
}

.floating-widget:hover {
    max-width: 320px;
    padding-right: 30px;
    opacity: 1;
}

.floating-icon-img {
    height: 64px; /* O něco větší pro vykrytí okrajů */
    width: 64px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    border-radius: 50%; /* Zakulacení pro odstranění bílých rohů */
    object-fit: cover;
    margin-left: -2px; /* Drobné posunutí pro zarovnání */
}

.floating-widget:hover .floating-icon-img {
    transform: rotate(15deg) scale(1.1);
}

.floating-text {
    color: var(--bg-primary);
    white-space: nowrap;
    padding-left: 15px;
    font-weight: 700;
    font-size: 1.1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.floating-widget:hover .floating-text {
    opacity: 1;
}


/* ====== SUBPAGES STYLES (Kontakt, etc) ====== */
.page-header {
    padding: calc(var(--nav-height) + 50px) 5% 70px;
    text-align: center;
    background-color: var(--bg-primary); 
}

.page-header .subtitle {
    font-size: 1rem;
    letter-spacing: 3px;
    font-weight: 700;
    color: rgba(0, 103, 129, 0.6);
    text-transform: uppercase;
    margin-bottom: 20px;
}

.page-header h1 {
    font-size: 3rem;
    color: var(--contrast-teal);
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.page-body-bg {
    background-color: var(--bg-light); /* Světlejší růžová pozadí pro spodní část */
}

/* Kontakt Layout */
.kontakt-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 5%;
    display: flex;
    gap: 70px;
    align-items: flex-start;
}

.kontakt-info-left {
    flex: 1;
    padding: 20px 0;
}

.kontakt-info-right {
    flex: 1.2;
    padding: 20px 0;
}

.kontakt-info-left h2,
.kontakt-info-right h2 {
    font-size: 1.5rem;
    color: var(--contrast-teal);
    margin-bottom: 30px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.contact-icon-list {
    list-style: none;
    padding: 0;
    margin: 0 0 50px 0;
}

.contact-icon-list li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 15px;
}

.contact-icon {
    width: 24px;
    height: 24px;
    color: var(--text-main);
    flex-shrink: 0;
    stroke-width: 1.5px;
}

.contact-text {
    display: flex;
    flex-direction: column;
    font-size: 1.05rem;
    color: var(--text-main);
    font-weight: 500;
}

.contact-text span {
    letter-spacing: 0.2px;
}

.contact-text strong {
    font-size: 1.15rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.form-title {
    margin-top: 50px;
}

.kontakt-form .form-group {
    margin-bottom: 25px;
}

.kontakt-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--text-main);
    font-size: 1.05rem;
}

.kontakt-form input,
.kontakt-form textarea {
    width: 100%;
    padding: 18px 20px;
    border: 2px solid rgba(0, 103, 129, 0.15);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-main);
    outline: none;
    transition: all 0.3s ease;
    background: var(--bg-primary); /* Formuláře na tmavší (než pozadí) z palety */
}

.kontakt-form input::placeholder,
.kontakt-form textarea::placeholder {
    color: rgba(0, 103, 129, 0.5);
    font-weight: 500;
}

.kontakt-form input:focus,
.kontakt-form textarea:focus {
    border-color: var(--contrast-teal);
    box-shadow: 0 0 0 4px rgba(0, 103, 129, 0.1);
    background: var(--bg-light); /* Při psaní jemnější */
}

.kontakt-form button {
    margin-top: 10px;
}

@media (max-width: 900px) {
    .kontakt-content {
        flex-direction: column;
        padding-top: 50px;
    }
    .page-header h1 {
        font-size: 2.2rem;
    }
}


/* ====== AUTH PAGES ====== */

/* Nav user greeting */
.nav-user-greeting {
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    margin-right: 5px;
}

.nav-auth-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Auth Container (login, register, etc) */
.auth-container {
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--nav-height) + 30px) 5% 40px;
    background-color: var(--bg-light);
}

.auth-card {
    background: white;
    padding: 50px 45px;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 103, 129, 0.08);
    width: 100%;
    max-width: 460px;
    text-align: center;
}

.auth-card h1 {
    color: var(--contrast-teal);
    font-size: 2rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.auth-card .auth-subtitle {
    color: var(--text-light);
    margin-bottom: 30px;
    font-weight: 500;
    font-size: 1rem;
}

/* Social login buttons */
.social-login-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px 20px;
    border-radius: 12px;
    border: 2px solid rgba(0, 103, 129, 0.12);
    background: white;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.social-btn:hover {
    border-color: var(--contrast-teal);
    background: var(--bg-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 103, 129, 0.1);
}

.social-btn svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
    gap: 15px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(0, 103, 129, 0.12);
}

.auth-divider span {
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Auth form inputs */
.auth-form {
    text-align: left;
}

.auth-form .form-group {
    margin-bottom: 18px;
}

.auth-form label {
    display: block;
    margin-bottom: 7px;
    font-weight: 700;
    color: var(--text-main);
    font-size: 0.95rem;
}

.auth-form input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid rgba(0, 103, 129, 0.1);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    background: var(--bg-light);
    color: var(--text-main);
    outline: none;
    transition: all 0.3s ease;
}

.auth-form input:focus {
    border-color: var(--contrast-teal);
    box-shadow: 0 0 0 4px rgba(0, 103, 129, 0.06);
    background: white;
}

.auth-form input::placeholder {
    color: rgba(0, 103, 129, 0.4);
}

.auth-form .btn-primary {
    width: 100%;
    margin-top: 10px;
    padding: 16px;
    font-size: 1.1rem;
    border: none;
}

.auth-form .form-row {
    display: flex;
    gap: 12px;
}

.auth-form .form-row .form-group {
    flex: 1;
}

/* Auth footer links */
.auth-footer {
    margin-top: 25px;
    font-size: 0.95rem;
    color: var(--text-light);
}

.auth-footer a {
    color: var(--contrast-teal);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.auth-footer a:hover {
    border-bottom-color: var(--contrast-teal);
}

.auth-link-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

/* Checkbox */
.auth-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 15px 0;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-light);
}

.auth-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--contrast-teal);
    flex-shrink: 0;
}

/* Error/Success messages */
.auth-message {
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: none;
}

.auth-message.error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    display: block;
}

.auth-message.success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
    display: block;
}


/* ====== ADMIN DASHBOARD (new) ====== */

.dashboard-layout {
    display: flex;
    min-height: 100vh;
    padding-top: var(--nav-height);
}

.dashboard-sidebar {
    width: 260px;
    background: white;
    border-right: 1px solid rgba(0, 103, 129, 0.08);
    padding: 30px 0;
    flex-shrink: 0;
    position: sticky;
    top: var(--nav-height);
    height: calc(100vh - var(--nav-height));
    overflow-y: auto;
}

.sidebar-section {
    padding: 0 25px;
    margin-bottom: 30px;
}

.sidebar-section h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-light);
    margin-bottom: 12px;
    opacity: 0.7;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 25px;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.sidebar-link:hover {
    background: var(--bg-light);
    border-left-color: rgba(0, 103, 129, 0.3);
}

.sidebar-link.active {
    background: var(--bg-light);
    color: var(--contrast-teal);
    border-left-color: var(--contrast-teal);
}

.sidebar-link svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    fill: currentColor;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 25px;
    border-top: 1px solid rgba(0, 103, 129, 0.08);
    margin-top: auto;
}

.sidebar-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--contrast-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.sidebar-user-info {
    overflow: hidden;
}

.sidebar-user-name {
    font-weight: 700;
    color: var(--text-main);
    font-size: 0.9rem;
}

.sidebar-user-role {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Dashboard main content */
.dashboard-main {
    flex: 1;
    padding: 35px 40px;
    background: #f7f9fb;
    overflow-y: auto;
}

.dashboard-title {
    font-size: 1.8rem;
    color: var(--contrast-teal);
    margin-bottom: 5px;
}

.dashboard-subtitle {
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 30px;
}

/* Stats grid (updated) */
.stats-grid-new {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
    margin-bottom: 35px;
}

.stat-card-new {
    background: white;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 103, 129, 0.04);
    position: relative;
    overflow: hidden;
}

.stat-card-new::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--contrast-teal);
    opacity: 0.6;
}

.stat-card-new h4 {
    color: var(--text-light);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-weight: 600;
}

.stat-card-new .stat-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--contrast-teal);
}

.stat-card-new .stat-label {
    font-size: 0.82rem;
    color: var(--text-light);
    margin-top: 2px;
}

/* Dashboard cards / sections */
.dash-card {
    background: white;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 15px rgba(0, 103, 129, 0.04);
    margin-bottom: 25px;
}

.dash-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.dash-card-header h3 {
    font-size: 1.15rem;
    color: var(--contrast-teal);
}

/* Tables (updated) */
.dash-table {
    width: 100%;
    border-collapse: collapse;
}

.dash-table th {
    text-align: left;
    padding: 12px 15px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    font-weight: 600;
    border-bottom: 2px solid rgba(0, 103, 129, 0.08);
}

.dash-table td {
    padding: 14px 15px;
    border-bottom: 1px solid rgba(0, 103, 129, 0.05);
    font-weight: 500;
    color: var(--text-main);
    font-size: 0.95rem;
}

.dash-table tr:hover {
    background: rgba(0, 103, 129, 0.02);
}

/* Badges */
.role-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.role-badge.admin {
    background: #fef3c7;
    color: #d97706;
}

.role-badge.stankar {
    background: #dbeafe;
    color: #2563eb;
}

.role-badge.user {
    background: #d1fae5;
    color: #059669;
}

.provider-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    background: #f1f5f9;
    color: #64748b;
}

/* Small action buttons */
.btn-sm {
    padding: 6px 14px;
    font-size: 0.82rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 103, 129, 0.15);
    background: white;
    color: var(--contrast-teal);
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-sm:hover {
    background: var(--bg-light);
    border-color: var(--contrast-teal);
}

.btn-sm.danger {
    color: #dc2626;
    border-color: rgba(220, 38, 38, 0.2);
}

.btn-sm.danger:hover {
    background: #fef2f2;
    border-color: #dc2626;
}

.btn-sm.primary {
    background: var(--contrast-teal);
    color: white;
    border-color: var(--contrast-teal);
}

.btn-sm.primary:hover {
    background: var(--interactive-hover);
}

/* Action buttons group */
.action-group {
    display: flex;
    gap: 6px;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
}

.empty-state svg {
    width: 60px;
    height: 60px;
    fill: var(--text-light);
    opacity: 0.3;
    margin-bottom: 15px;
}

.empty-state p {
    font-weight: 500;
}

/* ====== PROFILE PAGE ====== */

.profile-container {
    max-width: 700px;
    margin: 0 auto;
    padding: calc(var(--nav-height) + 40px) 5% 60px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 40px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--contrast-teal), #00899e);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: 700;
    flex-shrink: 0;
}

.profile-header-info h1 {
    font-size: 1.8rem;
    color: var(--contrast-teal);
    margin-bottom: 4px;
}

.profile-header-info p {
    color: var(--text-light);
    font-weight: 500;
}

.profile-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0, 103, 129, 0.05);
    margin-bottom: 25px;
}

.profile-card h2 {
    font-size: 1.2rem;
    color: var(--contrast-teal);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(0, 103, 129, 0.08);
}

.profile-field {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 103, 129, 0.05);
}

.profile-field:last-child {
    border-bottom: none;
}

.profile-field-label {
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.9rem;
}

.profile-field-value {
    font-weight: 600;
    color: var(--text-main);
}

/* Review stars */
.stars {
    display: inline-flex;
    gap: 2px;
}

.star {
    width: 20px;
    height: 20px;
    cursor: pointer;
    fill: #e2e8f0;
    transition: fill 0.15s;
}

.star.active {
    fill: #f59e0b;
}

.star:hover {
    fill: #fbbf24;
}

.review-item {
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 103, 129, 0.06);
}

.review-item:last-child {
    border-bottom: none;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.review-author {
    font-weight: 700;
    color: var(--text-main);
}

.review-date {
    font-size: 0.82rem;
    color: var(--text-light);
}

.review-comment {
    color: var(--text-main);
    font-weight: 500;
    line-height: 1.5;
}

/* ====== INVITATION PAGE ====== */

.invitation-card {
    background: white;
    padding: 50px 45px;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 103, 129, 0.08);
    width: 100%;
    max-width: 500px;
    text-align: center;
}

.invitation-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #006781, #00899e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.invitation-icon svg {
    width: 36px;
    height: 36px;
    fill: white;
}

.invitation-card h1 {
    color: var(--contrast-teal);
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.invitation-card p {
    color: var(--text-light);
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* ====== STANKAR DASHBOARD ====== */

.stankar-form .form-group {
    margin-bottom: 18px;
}

.stankar-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
    color: var(--text-main);
    font-size: 0.9rem;
}

.stankar-form input,
.stankar-form textarea,
.stankar-form select {
    width: 100%;
    padding: 13px 16px;
    border: 2px solid rgba(0, 103, 129, 0.1);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-main);
    outline: none;
    background: white;
    transition: all 0.3s ease;
}

.stankar-form input:focus,
.stankar-form textarea:focus {
    border-color: var(--contrast-teal);
    box-shadow: 0 0 0 3px rgba(0, 103, 129, 0.06);
}

/* Copy link field */
.copy-link-field {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.copy-link-field input {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid rgba(0, 103, 129, 0.12);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.85rem;
    color: var(--text-light);
    background: #f7f9fb;
}

/* Tab switcher */
.dash-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 25px;
    background: rgba(0, 103, 129, 0.05);
    border-radius: 12px;
    padding: 4px;
}

.dash-tab {
    flex: 1;
    padding: 10px 20px;
    text-align: center;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-light);
    transition: all 0.2s ease;
    border: none;
    background: none;
    font-family: inherit;
}

.dash-tab.active {
    background: white;
    color: var(--contrast-teal);
    box-shadow: 0 2px 8px rgba(0, 103, 129, 0.08);
}

.dash-tab:hover:not(.active) {
    color: var(--text-main);
}

/* Dashboard tab panels */
.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* Modal overlay */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 40, 50, 0.5);
    backdrop-filter: blur(6px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 35px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 25px 60px rgba(0, 50, 60, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.show .modal-content {
    transform: scale(1);
}

.modal-content h3 {
    color: var(--contrast-teal);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

@media (max-width: 768px) {
    .dashboard-layout {
        flex-direction: column;
    }

    .dashboard-sidebar {
        width: 100%;
        height: auto;
        position: relative;
        top: 0;
        border-right: none;
        border-bottom: 1px solid rgba(0, 103, 129, 0.08);
        padding: 15px 0;
    }

    .dashboard-main {
        padding: 25px 20px;
    }

    .auth-card {
        padding: 35px 25px;
    }

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

    .stats-grid-new {
        grid-template-columns: 1fr 1fr;
    }
}

/* --- Články / Blog --- */
.blog-header {
    border-bottom: 2px solid rgba(0, 103, 129, 0.1);
    padding-bottom: 20px;
    margin-bottom: 40px;
}
.blog-header h1 {
    font-size: 2.5rem;
    color: var(--contrast-teal);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}
.blog-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.6;
    max-width: 800px;
}

.article-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding-bottom: 60px;
}

.article-card {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.article-card:hover {
    transform: translateX(5px);
}

.article-img {
    flex: 0 0 350px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 50, 60, 0.08);
}

.article-img img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.article-card:hover .article-img img {
    transform: scale(1.05);
}

.article-content {
    flex: 1;
    padding-top: 10px;
}

.article-title {
    font-size: 1.6rem;
    color: var(--text-main);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 8px;
    transition: color 0.2s;
}

.article-card:hover .article-title {
    color: var(--interactive);
}

.article-date {
    font-size: 0.95rem;
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 15px;
    opacity: 0.8;
}

.article-desc {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 1.05rem;
}

@media (max-width: 768px) {
    .article-card {
        flex-direction: column;
        gap: 15px;
    }
    .article-img {
        flex: 1 1 100%;
        width: 100%;
    }
    .article-img img {
        height: auto;
        aspect-ratio: 16/9;
    }
    .blog-header h1 {
        font-size: 2rem;
    }
}

/* --- Článek Detail --- */
.article-detail-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 150px 20px 60px;
    position: relative;
}

.back-link {
    position: fixed;
    left: calc((100vw - 800px) / 2 - 80px);
    top: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--contrast-teal);
    color: white;
    text-decoration: none;
    font-weight: 700;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 103, 129, 0.25);
    z-index: 50;
}

.back-link svg {
    width: 22px;
    height: 22px;
}

.back-link span {
    display: none;
}

.back-link:hover {
    background: var(--interactive-hover);
    transform: translateX(-5px);
    box-shadow: 0 6px 20px rgba(0, 103, 129, 0.35);
}

@media (max-width: 1050px) {
    .back-link {
        position: static;
        width: auto;
        height: auto;
        border-radius: 50px;
        padding: 10px 20px;
        margin-bottom: 30px;
        gap: 8px;
    }
    .back-link span {
        display: inline;
    }
}

.article-detail-header {
    text-align: center;
    margin-bottom: 40px;
}

.article-detail-header h1 {
    font-size: 3.5rem;
    color: var(--contrast-teal);
    text-transform: uppercase;
    margin-bottom: 20px;
    line-height: 1.2;
}

.article-detail-date-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.article-detail-date-box::before, .article-detail-date-box::after {
    content: "";
    display: block;
    height: 1px;
    width: 50px;
    background-color: var(--text-light);
    opacity: 0.3;
}

.article-detail-date {
    font-size: 1.05rem;
    color: var(--text-light);
    font-style: italic;
    opacity: 0.8;
}

.article-detail-img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    margin: 40px 0;
    box-shadow: 0 15px 30px rgba(0, 50, 60, 0.15);
}

.article-detail-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-main);
}

.article-detail-content p {
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .article-detail-header h1 {
        font-size: 2.2rem;
    }
    .article-detail-img {
        max-height: 300px;
    }
}

