/* Стили для админ-панели */
#tm_tooltip_word {
    width: 500px; /* Увеличенная ширина поля ввода */
}

.widefat {
    border-collapse: collapse;
}

.widefat th,
.widefat td {
    border: 1px solid #ddd;
    padding: 8px;
    vertical-align: top;
}

.widefat th {
    background: #f9f9f9;
}

.tm_copy_shortcode {
    color: #0073aa;
    text-decoration: underline;
    cursor: pointer;
}

.tm_copy_shortcode:hover {
    color: #005177;
}

.tm_shortcode_container {
    margin: 20px 0;
}

#tm_shortcode_input {
    width: 300px;
    padding: 5px;
    font-family: monospace;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#tm_shortcode_input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 5px rgba(0, 115, 170, 0.5);
}

#tm_selected_word {
    margin-left: 10px;
    font-style: italic;
    color: #555;
}

#tm_progress_container {
    margin: 20px 0;
}

#tm_progress_bar {
    width: 0%;
    height: 20px;
    background: #0073aa;
    border-radius: 4px;
    transition: width 0.3s ease;
}

#tm_progress_text {
    margin: 5px 0;
}

#tm_lost_shortcodes_result {
    margin-top: 20px;
}

#tm_lost_shortcodes_result table {
    width: 100%;
    margin-top: 10px;
}

#tm_lost_shortcodes_result p {
    font-style: italic;
}

/* Стили для фронтенда */
span.tm_tooltip {
    cursor: help !important;
    color: #813909 !important;
}

span.tm_tooltip:hover {
    cursor: help !important;
    color: #3134C2 !important;
    text-decoration: none !important;
    text-shadow: 3px 3px 3px rgba(0, 12, 0, 0.4);
}

.tm_modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0, 0, 0, 0.5); 
}

.tm_modal_content {
    height: 85vh;
    overflow-y: auto;
    padding: 0px 15px 0px 15px;
    border-radius: 8px;
    border: 1px solid rgb(12, 165, 101);
    margin-top: 20px;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}

.tm_modal_content p {
    margin: 0 0 1em 0;
    margin-bottom: 15px;
    line-height: 1.6;
}

.tm_modal_content ul {
    list-style-type: disc;
    margin: 0 0 1em 50px;
}

.tm_modal_content ol {
    list-style-type: decimal;
    margin: 0 0 1em 30px;
}

.tm_modal_content h1,
.tm_modal_content h2,
.tm_modal_content h3 {
    font-weight: bold;
    margin: 1em 0;
    font-size: inherit;
}

.tm_modal_content img {
    max-width: 100%;
    height: auto;
    margin: 10px;
}

.tm_close {
    color: #ee1010;
    float: right;
    font-size: 28px;
    font-weight: bold;
    align-self: flex-end;
    cursor: pointer;
}

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

.pop {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    font-size: 16px;
    line-height: 1.7;
    background: #fff;
    padding: 20px;
    width: 70vw;
    height: 90vh;
    box-sizing: border-box;
    border-radius: 8px;
    position: relative;
    border: 2px solid rgb(12, 165, 101);
}

.tm_modal_title {
    font-weight: bold;
    text-align: center; 
    font-size: 28px;
    width: 80%;
    margin-top: -40px;
}