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

h1 {
    color: #000;
}

a {
    color: #0077ff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

form {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #000;
    border-radius: 5px;
}

label {
    display: block;
    margin: 10px 0 5px;
}

input, textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #000;
    border-radius: 5px;
}

button {
    padding: 10px 20px;
    background-color: #0077ff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #0055cc;
}

/* Стили для кнопки "Редактировать" */
.edit-button {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #ff9900;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
}

.edit-button:hover {
    background-color: #e68a00;
}

.image-option-container label[for="addImagesCheckbox"] {
    display: inline;
    font-weight: normal;
    margin-bottom: 0;
    cursor: pointer;
    vertical-align: middle;
}

.image-option-container input[type="checkbox"]#addImagesCheckbox {
    margin-right: 5px;
    vertical-align: middle;
    width: auto;
    display: inline-block;
}

/* Стили для блока опций скачивания файлов */
.file-download-options {
    margin-top: 10px;
}
.file-download-options label {
    display: block;
}
.file-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}
.checkbox-label-pair {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.checkbox-label-pair input[type="checkbox"] {
    margin: 0;
    cursor: pointer;
    vertical-align: middle;
    width: auto;
    display: inline-block;
}
.checkbox-label-pair label {
    font-weight: normal;
    margin-bottom: 0;
    cursor: pointer;
    white-space: nowrap;
    vertical-align: middle;
    display: inline;
}

.downloaded-files-list {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #000;
}
.downloaded-files-list h3 {
    margin-bottom: 10px;
    font-size: 1.1em;
}
.downloaded-files-list ul {
    list-style: none;
    padding-left: 0;
}
.downloaded-files-list li {
    margin-bottom: 8px;
    line-height: 1.4;
}
.downloaded-files-list li a {
    text-decoration: none;
    margin-right: 5px;
}
.downloaded-files-list li a:hover {
    text-decoration: underline;
}
.downloaded-files-list li span.file-meta {
    font-size: 0.85em;
    color: #555;
}

.ai-inserted-image {
    max-width: 50%;
    height: auto;
    display: block;
    margin: 1em auto;
    cursor: pointer;
    border: 1px solid #000;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
}

a.glightbox {
    text-decoration: none;
    border: none;
    display: block;
    text-align: center;
}

.ai-inserted-image-first {
    float: left;
    max-width: 40%;
    margin-right: 15px;
    margin-bottom: 10px;
    margin-left: 0;
    cursor: pointer;
}

.ai-image-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 20px;
    clear: both;
}

.ai-image-grid a.glightbox {
    text-decoration: none;
    border: none;
    display: block;
    line-height: 0;
}

.ai-image-grid .ai-inserted-image {
    width: 100%;
    max-width: 100%;
    margin: 0;
    cursor: pointer;
}

.delete-link {
    color: red;
    font-weight: bold;
}

/* ==========================================================================
   ОСНОВНЫЕ ОБЛАСТИ САЙТА С ЧЕРНЫМИ РАМКАМИ И ЯРКИМИ ЦВЕТАМИ
   ========================================================================== */

.oblast1, .oblast3, .oblast5, .oblast6, .oblast2 {
    padding: 10px;
    border: 1px solid #000000; /* ЧЕРНЫЕ РАМКИ */
    font-family: Arial, sans-serif;
}
.oblast1, .oblast3, .oblast5, .oblast6, .oblast4, .oblast2 {
    overflow: visible;
}

/* ОБЛАСТЬ 1: Шапка сайта (Яркий сочный голубой) */
.oblast1 {
    background: #BAE6FD; /* Яркий насыщенный небесно-голубой */
    font-size: 14px;
}

/* ОБЛАСТЬ 3: Контейнер навигации (Яркий лаймовый) */
.oblast3 {
    width: auto;
    float: top;
    margin: 5px 0;
    background: #D9F99D; /* Яркий сочный лайм */
}
.oblast3 ul {
    list-style: none;
    padding: 0;
}

/* ОБЛАСТЬ 5: Карточка книги (Белый) */
.oblast5 {
    background: #ffffff;
    margin-right: 0;
}

/* ОБЛАСТЬ 6: Подвал сайта (Яркий светло-зеленый / салатовый) */
.oblast6 {
    background: #BBF7D0; /* Яркий насыщенный светло-зеленый */
}
.oblast6 a {
    color: #0000ee;
    font-weight: bold;
}

/* ОБЛАСТЬ 2: Блок описания (Яркий розово-коралловый) */
.oblast2 {
    background: #FECDD3; /* Яркий розовый */
    font-size: 10px;
    margin: 5px 0;
}

.opisanie { 
    height: 30px; 
    width: 90%; 
    background: #FFE4E6; 
    border: 1px solid #000000; /* ЧЕРНАЯ РАМКА */
    overflow-y: scroll; 
    margin: 0 auto; 
}

/* ОБЛАСТЬ 4: Контейнер секций */
.oblast4 {
    margin: 15px 0;
    overflow: auto;
    background: #fff;
}

/* Стили ссылок */
a:link {
    color: #0000ee;
    text-decoration: none;
}
a:hover {
    color: red;
}

/* Заголовок */
h1 {
    font-size: 15px;
}

/* КНОПКА СКАЧАТЬ PDF (Яркая зеленая с черной/красной каймой) */
.skachat-pdf {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    font-size: 16px;
    font-weight: bold;
    color: #000000 !important;
    background-color: #4ADE80; /* Яркий сочный зеленый */
    border: 2px solid #000000; /* Черная рамка */
    border-radius: 30px;
    transition: color 0.3s ease, background-color 0.3s ease, transform 0.1s ease;
}

.skachat-pdf:hover {
    color: #ffffff !important;
    background-color: #0077ff; /* Синий как ВКонтакте */
    border-color: #000000;
}
