/* Общие стили */
* {
    box-sizing: border-box;
    /* margin: 0;*/
    /*padding: 0;*/
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.3;
    color: #333;
    background-color: #f5f5f5;
    margin: 0;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Заголовки */
h1, h2, h3, h4, h5, h6 {
    margin-top: 0px;
    margin-bottom: 10px;
    color: #333;
}

/* Ссылки */
a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Шапка */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    margin-bottom: 12px;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 24px;
    margin: 0;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

/* Основной контент */
main {
    padding: 20px 0;
    min-height: calc(100vh - 200px);
}

/* Формы */
.form-group {
    margin-bottom: 5px;
}

label {
    display: block;
    font-weight: 600;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="date"],
input[type="datetime-local"],
select,
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

textarea {
    min-height: 150px;
}

button,
.btn {
    display: inline-block;
    padding: 6px 13px;
    margin: 3px 0;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    text-align: center;
}

button:hover,
.btn:hover {
    background-color: #0069d9;
    text-decoration: none;
}

.btn-danger {
    background-color: #dc3545;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-success {
    background-color: #28a745;
}

.btn-success:hover {
    background-color: #218838;
}

/* Таблицы */
table {
    width: 100%;
    border-collapse: collapse;
}

table th,
table td {
    padding: 5px 5px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

table tr:hover {
    background-color: #f1f1f1;
}

/* Карточки */
.card {
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 0px 5px rgba(0, 0, 0, 0.2);
    padding: 18px;

}

.card-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h2 {
    margin: 0;
}

/* Уведомления */
.alert {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Подвал */
footer {
    background-color: #333;
    color: #fff;
    padding: 10px 0;
    text-align: center;
    margin-top: 51px;
}

/* Сетка */
.row {
    display: flex;
    flex-wrap: wrap;
}

.col {
    flex: 1;
}

/* Утилиты */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* Стили для TinyMCE */
.tox-tinymce {
    border-radius: 4px !important;
}

/* Стили для загрузки файлов */
.file-upload {
    border: 2px dashed #ddd;
    border-radius: 4px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.file-upload:hover {
    border-color: #007bff;
}

.file-upload input[type="file"] {
    display: none;
}

.file-list {
    margin-top: 15px;
}



.file-item .file-name {
    flex: 1;
}

.file-item .file-actions {
    margin-left: 10px;
}

/* Стили для вкладок */
.tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
}

.tab {
    padding: 10px 20px;
    cursor: pointer;
    border: 1px solid transparent;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    margin-right: 5px;
}

.tab.active {
    background-color: #fff;
    border-color: #ddd;
    margin-bottom: -1px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

@media (max-width: 960px) {
    .card {
        padding: 10px;
    }
}