/* Основные стили для body и контейнера */
body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #f4f7f9, #dfe9f3);
    margin: 20px;
    padding: 0;
    box-sizing: border-box;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Заголовки */
h1, h2, h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
}

h1 {
    font-size: 2.5em;
}

h2 {
    font-size: 2em;
}

h3 {
    font-size: 1.5em;
}

/* Стили для форм */
form {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

input, select, textarea {
    width: 100%;
    padding: 15px 0;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    background-color: #fdfdfd;
    transition: border-color 0.3s;
}

input:focus, select:focus, textarea:focus {
    border-color: #007bff;
    outline: none;
}

button {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    background-color: #007bff;
    color: #fff;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

button:active {
    transform: translateY(0);
}

/* Стили для таблиц */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

table th, table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

table th {
    background-color: #007bff;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

table tr:nth-child(even) {
    background-color: #f4f7f9;
}

table tr:hover {
    background-color: #e9f1fb;
}

/* Карточки для отображения информации */
.card {
    background: #ffffff;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card h3 {
    margin: 0 0 10px;
    font-size: 1.5em;
    color: #007bff;
}

.card p {
    margin: 0;
    font-size: 1em;
    color: #555;
}

/* Навигация */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #007bff;
    padding: 15px 30px;
    color: #ffffff;
    border-radius: 8px;
    margin-bottom: 20px;
}

.navbar a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 10px;
    font-size: 1em;
}

.navbar a:hover {
    text-decoration: underline;
}

/* Адаптивность */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    form, table, .card {
        padding: 10px;
    }

    input, button {
        width: 100%;
        margin: 5px 0;
    }

    .navbar {
        flex-direction: column;
        text-align: center;
    }
}

/* Стили для ссылок-кнопок */
a.button-link {
    display: inline-block;
    padding: 10px 20px;
    margin: 5px 0;
    border-radius: 8px;
    background-color: #007bff;
    color: #ffffff;
    text-decoration: none;
    text-align: center;
    font-size: 16px;
    transition: background-color 0.3s, transform 0.2s;
}

a.button-link:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

a.button-link:active {
    transform: translateY(0);
}

/* Стили для ссылок-кнопок */
a.delete-button {
    display: inline-block;
    padding: 8px 15px;
    margin-left: 10px;
    border-radius: 5px;
    background-color: #ff4d4d;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s, transform 0.2s;
}

a.delete-button:hover {
    background-color: #d93636;
    transform: translateY(-2px);
}

a.delete-button:active {
    transform: translateY(0);
}

ul.result-list li.result-item {
    margin-bottom: 10px; /* Отступ снизу между элементами списка */
}

    .message {
        margin-bottom: 20px; /* Отступ только снизу */
        padding: 10px 15px;
        border-radius: 5px;
    }
    .success {
        color: green;
        background-color: #e6f9e6;
    }
    .error {
        color: red;
        background-color: #f9e6e6;
    }


