/* Общие стили */
body {
    font-family: "Segoe UI", sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
    color: #212529;
}

h1, h2, h3 {
    margin-top: 1.5rem;
    color: #343a40;
    text-align: center;
}

a {
    color: #007bff;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* Контейнер */
.search-form {
    display: flex;
    flex-direction: row;
    justify-content: center;
}
.search-form form{
    display: flow;
    align-items: center;
}

.search-form input {
    width: 300px;
    margin-right: 8px;
    height: 36px;
    padding: 4px 8px;

}
.search-form button {
    height: 36px;
    padding: 4px 12px;
}

.container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 1rem;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

/* Таблицы */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}
th, td {
    padding: 0.75rem;
    border: 1px solid #dee2e6;
    text-align: left;
}
th {
    background-color: #e9ecef;
}

/* Формы */
#drop-zone {
    border: 2px dashed #aaa;
    padding: 40px;
    text-align: center;
    margin: 40px auto;
    max-width: 400px;
    transition: border-color 0.3s ease, background-color 0.3s ease;
    cursor: pointer;
}
#drop-zone.dragover {
    border-color: #00aaff;
    background-color: #e0f7ff;
}

#overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 2em;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 9999;
}
#overlay.visible {
    pointer-events: auto;
    opacity: 1;
}

.hint {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.9rem;
    color: #ccc;
}
.center{
    display: flex;
    justify-content: center;
    align-items: center;
}
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 100px); /* минус шапка/футер */
}

.auth-card {
    width: 100%;
    max-width: 400px;
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.auth-card h1 {
    margin-bottom: 1rem;
}

.auth-card p {
    text-align: center;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

label {
    font-weight: bold;
}

input,
textarea {
    padding: 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
}

button {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 4px;
    background-color: #007bff;
    color: white;
    font-weight: bold;
    cursor: pointer;
}
button:hover {
    background-color: #0056b3;
}

/* Header и Footer */
header, footer {
    padding: 1rem;
    background-color: #343a40;
    color: white;
    text-align: center;
}

footer {
    margin-top: 2rem;
}

/* Сообщения об ошибках / успехах */
.alert {
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 5px;
}
.alert-success {
    background-color: #d4edda;
    color: #155724;
}
.alert-error {
    background-color: #f8d7da;
    color: #721c24;
}