/* Reset některých výchozích stylů pro konzistenci napříč prohlížeči */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Nastavení základní typografie a pozadí */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #f4f4f4;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Styl pro hlavičku */
header {
    background-color: #4CAF50;
    color: white;
    padding: 1.5rem 1rem;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

    header h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    header nav {
        margin-top: 0.5rem;
    }

        header nav a {
            color: white;
            text-decoration: none;
            margin: 0 1rem;
            font-weight: 500;
            transition: color 0.3s;
        }

            header nav a:hover {
                color: #d4d4d4;
            }
/* Styl pro Widget User - header */
.user-widget {
    padding: 10px;
    background-color: #f1f1f1;
    border-radius: 5px;
    text-align: right;
}

    .user-widget p {
        margin: 0;
        font-size: 14px;
        color: #333;
    }

    .user-widget button {
        background-color: #4CAF50;
        color: white;
        border: none;
        padding: 5px 10px;
        cursor: pointer;
        border-radius: 3px;
    }

        .user-widget button:hover {
            background-color: #45a049;
        }

/* Styl pro hlavní obsah */
main {
    flex: 1;
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}
/* Styl pro grid layout dlaždic */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 20px;
    /* Další styly */
}


.tile {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .tile img {
        width: 100%;
        height: auto;
        display: block;
    }

    .tile:hover {
        transform: translateY(-10px);
        box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
    }

.tile-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 128, 0, 0.8); /* Zelená barva s průhledností */
    color: white;
    text-align: center;
    padding: 10px 0;
    transition: background-color 0.3s ease;
}


.tile:hover .tile-overlay {
    background-color: rgba(0, 128, 0, 1); /* Zelená barva při hoveru */
}
/* Styl pro Medailonek obrazku */
.tile {
    position: relative;
    display: inline-block;
}
.tooltip {
    display: none; /* Skrýt popisek */
    position: absolute;
    bottom: 100%; /* Nad obrázkem */
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    width: 200px;
    text-align: center;
    z-index: 1000;
}

.tile:hover .tooltip {
    display: block; /* Zobrazit při najetí */
    bottom: 110%; /* Popisek nad obrázkem */
}


/* Styl pro formulářový obrázek */

.form-tile-image {
    width: 100%; /* Obrázek se přizpůsobí šířce containeru */
    max-width: 200px; /* Maximální šířka obrázku */
    margin: 0 auto 20px; /* Vycentrování a odsazení od formuláře */
    display: block;
}


/* Styl pro formulářový kontejner */
.form-container {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 0 auto;
}

    .form-container h2 {
        margin-bottom: 1.5rem;
        text-align: center;
        color: #4CAF50;
    }

    .form-container h3 {
        margin-top: 1.5rem;
        margin-bottom: 1rem;
        color: #333;
    }

.form-group {
    margin-bottom: 1.5rem;
}

.form-check {
    margin-bottom: 0.5rem;
}

.form-check-input {
    margin-right: 0.5rem;
}

.form-control,
.form-control {
    width: 100%;
    max-width: 100%; /* Zabrání přesahu */
    box-sizing: border-box; /* Zajistí, že padding a border se započítají do šířky */
}
.form-control-file {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

    .form-control:focus,
    .form-control-file:focus {
        outline: none;
        border-color: #4CAF50;
        box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
    }

.btn-primary {
    background-color: #4CAF50;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s, transform 0.3s;
    display: block;
    margin: 2rem auto 0;
}

    .btn-primary:hover {
        background-color: #45a049;
        transform: translateY(-2px);
    }

.spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.4em;
}

.error-message {
    color: red;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

/* Styl pro patičku */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 1rem;
}

/* Utility třídy */
.d-none {
    display: none;
}

.text-center {
    text-align: center;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.btn-primary:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}
/* Chat Widget Stylování */

/* Chat Button */
#chat-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: background-color 0.3s;
    z-index: 1001;
}

    #chat-button:hover {
        background-color: #45a049;
    }

/* Chat Widget */
#chat-widget {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 300px;
    max-height: 400px;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    display: none;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
}

/* Chat Header */
#chat-header {
    background-color: #4CAF50;
    color: white;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    #chat-header button {
        background: none;
        border: none;
        color: white;
        font-size: 20px;
        cursor: pointer;
    }

/* Chat Body */
#chat-body {
    display: flex;
    flex-direction: column;
    height: 350px;
}

#chat-messages {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    background-color: #f9f9f9;
}

.message {
    margin-bottom: 10px;
}

    .message.user {
        text-align: right;
    }

    .message.ai {
        text-align: left;
    }

    .message.user .text {
        display: inline-block;
        background-color: #dcf8c6;
        padding: 8px 12px;
        border-radius: 15px;
    }

    .message.ai .text {
        display: inline-block;
        background-color: #ececec;
        padding: 8px 12px;
        border-radius: 15px;
    }

/* Chat Form */
#chat-form {
    display: flex;
    border-top: 1px solid #ccc;
}

#chat-input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 0;
    outline: none;
}

#chat-form button {
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

    #chat-form button:hover {
        background-color: #45a049;
    }

/* Oddělovač */
.separator {
    text-align: center;
    margin: 50px 0 20px 0;
}

    .separator h2 {
        font-size: 28px;
        font-weight: bold;
        color: #333;
    }
/* Banner - upoutavka footer */
.paid-services {
    background-color: #f8d7da; /* Světle růžové pozadí pro upoutání pozornosti */
    color: #721c24; /* Tmavě červený text */
    padding: 10px;
    text-align: center;
    font-size: 1.2rem;
    border-top: 2px solid #f5c6cb; /* Jemný rámeček nahoře */
    margin-top: 20px;
}
    /* Banner - upoutavka footer - klikací styl*/
    .paid-services a {
        text-decoration: none; /* Odkaz bez podtržení */
        color: inherit; /* Převezme barvu textu z nadřazeného kontejneru */
    }

        .paid-services a:hover {
            text-decoration: underline; /* Podtrhne text při najetí myší */
        }

    .paid-services marquee {
        font-weight: bold;
    }
