/* Общие стили для всех страниц GalLab */

/* Основные стили */
body {
    font-family: 'Arial', sans-serif;
    background-color: #333;
    color: #fff;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100vh;
}

/* Стили для кнопок */
button {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.5s ease;
    padding: 10px;
    margin-left: 5px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    position: relative;
}

button:hover {
    background-color: #39813c;
}

/* Стили для полей ввода */
input[type="text"],
input[type="number"],
input[type="checkbox"],
select,
textarea {
    padding: 8px;
    box-sizing: border-box;
    background-color: #555;
    color: #fff;
    border: none;
    border-radius: 4px;
}

input:focus,
textarea:focus {
    outline: 2px solid #000;
}

input[type="text"]::placeholder {
    color: #aaa;
}

/* Стили для лейблов */
label {
    font-weight: bold;
    color: #eee;
    margin-right: 10px;
}

/* Стили для футера */
#footer {
    bottom: 0;
    align-self: stretch;
    background-color: #444;
    color: #eee;
    text-align: center;
    padding: 0px;
    font-size: 12px;
    line-height: 1;
}

#footer a {
    color: #61dafb;
    text-decoration: none;
    margin: 0 5px;
}

/* Стили для хедера */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
}

.icon,
.skin,
.glasses {
    width: 40px;
    height: 40px;
    margin-right: 15px;
    transition: transform 0.3s ease-out;
}

.skin,
.glasses {
    position: absolute;
}

.icon:hover .glasses {
    transform: translateY(15px);
}

.header-links {
    display: flex;
    gap: 20px;
}

.header-links a {
    text-decoration: none;
    color: #d00000;
    font-weight: bold;
}

.links {
    display: flex;
    flex-direction: row;
    align-items: center;
}

/* Стили для контейнеров */
.container {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Стили для кнопок с особыми цветами */
#resetButton {
    background-color: #ff0000;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px;
    margin-top: 5px;
    margin-left: 5px;
}

#resetButton:hover {
    background-color: #b40000;
}

.share-button {
    background-color: #3498db;
}

.share-button:hover {
    background-color: #236694;
}

.import-button {
    background-color: #444444;
}

.import-button:hover {
    background-color: #222222;
}

/* Анимации */
@keyframes fade-in {
    from {
        transform: translate(-50%) scale(0%, 100%);
    }
    to {
        opacity: 1;
    }
}

@keyframes fade-out {
    from {
        opacity: 1;
    }
    to {
        transform: translate(-50%) scale(0%, 100%);
    }
}

/* Стили для скрытых элементов */
.manual-input {
    display: none;
}

.extra {
    display: none;
    align-items: center;
}

/* Стили для плейсхолдеров */
.placeholder {
    display: block;
    position: relative;
}

.placeholder::after {
    font-family: 'Courier New', monospace;
    content: attr(placeholder);
    white-space: pre-wrap;
    pointer-events: none;
    position: absolute;
    font-size: 16px;
    color: #757575;
    direction: ltr;
    z-index: 10;
}

/* Стили для тултипов */
.tooltip {
    position: relative;
}

.tooltip::after {
    font-family: 'Courier New', monospace;
    content: attr(target-ver);
    white-space: nowrap;
    pointer-events: none;
    position: absolute;
    top: 60%;
    right: 38px;
    transform: translateY(-75%);
    font-size: 12px;
    color: #aaa;
    direction: ltr;
}

/* Стили для ссылок копирования */
input[id="copyLink"] {
    position: absolute;
    margin-top: 11.25px;
    margin-left: 70px;
    display: none;
    animation: fade-out 1s;
    animation: fade-in 1s;
}

/* Стили для настроек */
#Settings {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
}

#inputFields {
    display: flex;
    margin: 10px;
    align-items: center;
}

/* Стили для полей ввода в настройках */
#dataFormatVersionInput {
    margin-right: 10px;
    color: #eee;
}

#dataFormatVersion label {
    font-weight: bold;
}

/* Стили для моноширинного шрифта */
.monospace {
    font-family: 'Courier New', monospace;
}

/* Стили для текстовых областей - базовые стили, специфичные стили в каждом файле */

/* Стили для специальных элементов */
.new-label {
    color: red;
    font-weight: bold;
    font-size: 0.9em;
    margin-left: 5px;
}
