/* CSS štýly */

body {
    font-family: Arial, sans-serif;
    margin: 20px;
    padding: 20px;
    background-color: #f9f9f9;
}

.container {
    max-width: 800px;
    margin: 20px auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    margin-bottom: 20px;
}

.input-section {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
}

input[type="text"],
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 10px;
    box-sizing: border-box;
}

button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #3e8e41;
}

#loading {
    border: 5px solid #f3f3f3; /* Light grey */
    border-top: 5px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 2s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.results-section {
    margin-top: 20px;
    padding: 20px;
    border-radius: 5px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
}

.results-section h2,
.results-section h3 {
    margin-top: 0;
}

#tokenization-results,
#keyword-results,
#seo-results {
    margin-bottom: 20px;
    padding: 10px;
    border: 1px solid #eee;
    background-color: #fff;
    border-radius: 3px;
}

#tokenization-results pre,
#keyword-results pre {
    white-space: pre-wrap; /* Allows line breaks */
    word-wrap: break-word;
    background-color: #f4f4f4;
    padding: 10px;
    border-radius: 3px;
    overflow-x: auto; /* Add horizontal scroll if needed */
}

.keyword-item {
    display: inline-block;
    padding: 5px 10px;
    margin-right: 5px;
    margin-bottom: 5px;
    border-radius: 5px;
    font-size: 0.9em;
}

.keyword-density-item {
    display: block;
    padding: 5px 10px;
    margin-bottom: 5px;
    border-radius: 5px;
    font-size: 0.9em;
}

/* Farby pre hustotu kľúčových slov */
.density-low {
    background-color: #ffdddd; /* Svetlo červená */
}

.density-medium {
    background-color: #ffeeaa; /* Svetlo žltá */
}

.density-high {
    background-color: #ccffcc; /* Svetlo zelená */
}

.keyword-item {
    display: inline-block;
    padding: 5px 10px;
    margin-right: 5px;
    margin-bottom: 5px;
    border-radius: 5px;
    font-size: 0.9em;
}

.keyword-density-item {
    display: inline-block; /* Zmenili sme na inline-block */
    padding: 5px 10px;
    margin-right: 5px;
    margin-bottom: 5px;
    border-radius: 5px;
    font-size: 0.9em;
}

/* Farby pre hustotu kľúčových slov */
.density-low {
    background-color: #ffdddd; /* Svetlo červená */
}

.density-medium {
    background-color: #ffeeaa; /* Svetlo žltá */
}

.density-high {
    background-color: #ccffcc; /* Svetlo zelená */
}

/* Štýly pre obmedzenie riadkov a tlačidlo "Zobraziť viac" */
.truncated {
    max-height: 2.5em; /* Zobrazí približne 2 riadky */
    overflow: hidden;
}

.show-more-button {
    background-color: #f0f0f0;
    border: none;
    padding: 5px 10px;
    margin-top: 5px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
}

.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: #333;
    color: #fff;
    text-align: left;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

.tooltip-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #ccc;
    color: #333;
    text-align: center;
    font-size: 0.8em;
    font-weight: bold;
    line-height: 16px;
    margin-left: 5px;
    cursor: help;
}

.keyword-list {
    position: relative; /* Pre umiestnenie tlačidla */
}

.keyword-item {
    display: inline-block;
    padding: 5px 10px;
    margin-right: 5px;
    margin-bottom: 5px;
    border-radius: 5px;
    font-size: 0.9em;
}

.keyword-density-list {
    position: relative; /* Pre umiestnenie tlačidla */
}

.keyword-density-item {
    display: inline-block;
    padding: 5px 10px;
    margin-right: 5px;
    margin-bottom: 5px;
    border-radius: 5px;
    font-size: 0.9em;
}

/* Farby pre hustotu kľúčových slov */
.density-low {
    background-color: #ffdddd; /* Svetlo červená */
}

.density-medium {
    background-color: #ffeeaa; /* Svetlo žltá */
}

.density-high {
    background-color: #ccffcc; /* Svetlo zelená */
}

/* Štýly pre obmedzenie riadkov a tlačidlo "Zobraziť viac" */
.truncated {
    max-height: 61px; /* Približne 2 riadky */
    overflow: hidden;
}

.show-more-button {
    background-color: #f0f0f0;
    border: none;
    padding: 5px 10px;
    margin-top: 5px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
}

.show-more-button.hidden {
    display: none;
}

/* Štýly pre modal */
.modal {
    display: none; /* Skryté na začiatku */
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    border-radius: 5px;
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.tooltip-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #ccc;
    color: #333;
    text-align: center;
    font-size: 0.9em;
    font-weight: bold;
    line-height: 20px;
    margin-left: 5px;
    cursor: pointer;
    padding: 2px; /* Pridali sme padding */
}

/* ... ostatné štýly ... */

/* Štýly pre štruktúrované H tagy */
.h-tag-level-1 {
    margin-left: 0;
}

.h-tag-level-2 {
    margin-left: 20px;
}

.h-tag-level-3 {
    margin-left: 40px;
}

.h-tag-level-4 {
    margin-left: 60px;
}

.h-tag-level-5 {
    margin-left: 80px;
}

.h-tag-level-6 {
    margin-left: 100px;
}