/* Стили из step1.html */
* {
    font-family: 'Roboto', sans-serif;
}
body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    margin: 0;
}
.header h1 {
    font-weight: 500;
    margin: 0;
    font-size: 24px;
}
.drop-zone-text {
    font-weight: 400;
    font-size: 20px;
    color: #718096;
    margin-bottom: 10px;
}
.checkbox-item label {
    font-weight: 400;
    font-size: 14px;
}
.modal h3 {
    font-weight: 500;
    font-size: 18px;
    margin-bottom: 20px;
}
.btn-primary, .btn-secondary {
    font-weight: 500;
    font-size: 14px;
}
.drop-zone {
    width: 80%;
    height: 300px;
    padding: 25px;
    margin: 20px auto;
    border: 2px dashed #0087F7;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: #F6F8FA;
    cursor: pointer;
    transition: border .3s ease-in-out, background .3s ease-in-out;
}
.drop-zone:hover {
    background: #EDF2F7;
    border-color: #0056b3;
}
.drop-zone.dragover {
    background: #E2E8F0;
    border-color: #0056b3;
}
.files-list {
    width: 80%;
    margin: 20px auto;
    padding: 0;
    list-style: none;
}
.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    margin: 5px 0;
    background: #F8F9FA;
    border-radius: 4px;
    border: 1px solid #DEE2E6;
}
.remove-file {
    color: #DC3545;
    cursor: pointer;
    padding: 5px 10px;
}
.header {
    background-color: #2C3E50;
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.header-nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}
.header-nav a:hover {
    background-color: #34495E;
}
.header-nav a.active {
    background-color: #34495E;
    color: #fff;
}
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}
.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 20px;
    width: 50%;
    border-radius: 5px;
    position: relative;
}
.close {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 28px;
    cursor: pointer;
}
.checkbox-list {
    margin-top: 20px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}
.checkbox-item {
    margin: 4px 0;
    cursor: pointer;
    padding: 5px 0;
}
.checkbox-item input[type="checkbox"] {
    cursor: pointer;
}
.generate-btn {
    margin: 20px auto;
    display: block;
    padding: 10px 20px;
    background-color: #0087F7;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    opacity: 0.5;
    pointer-events: none;
}
.generate-btn:hover {
    background-color: #0056b3;
}
.generate-btn.active {
    opacity: 1;
    pointer-events: auto;
}
.modal-footer {
    margin-top: 20px;
    text-align: right;
}
.modal-footer button {
    padding: 8px 16px;
    margin-left: 10px;
    border-radius: 4px;
    cursor: pointer;
}
.btn-primary {
    background-color: #0087F7;
    color: white;
    border: none;
}
.btn-secondary {
    background-color: #6c757d;
    color: white;
    border: none;
}
.page-title {
    text-align: center;
    color: #2C3E50;
    font-size: 24px;
    font-weight: 500;
    margin: 40px auto 20px;
    max-width: 80%;
    line-height: 1.4;
}
.cadastral-input-container {
    width: 80%;
    margin: 20px auto;
}
.cadastral-input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}
.cadastral-input-wrapper label {
    font-weight: 500;
    font-size: 14px;
    color: #2C3E50;
    min-width: 140px;
}
.cadastral-input-wrapper input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #CBD5E0;
    border-radius: 4px;
    font-size: 14px;
}
.cadastral-input-wrapper input:focus {
    outline: none;
    border-color: #0087F7;
    box-shadow: 0 0 0 1px #0087F7;
}
.btn-add {
    background-color: #0087F7;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
}
.btn-add:hover {
    background-color: #0056b3;
}
.cadastral-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.cadastral-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    margin: 5px 0;
    background: #F8F9FA;
    border-radius: 4px;
    border: 1px solid #DEE2E6;
}
.cadastral-list .remove-cadastral {
    color: #DC3545;
    cursor: pointer;
    padding: 5px 10px;
}
.btn-primary.loading {
    position: relative;
    color: transparent;
}
.btn-primary.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-top: -8px;
    margin-left: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-right-color: transparent;
    animation: button-loading-spinner 0.75s linear infinite;
}
@keyframes button-loading-spinner {
    from {
        transform: rotate(0turn);
    }
    to {
        transform: rotate(1turn);
    }
}
.checkbox-list::-webkit-scrollbar {
    width: 8px;
}
.checkbox-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}
.checkbox-list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}
.checkbox-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Стили из map.html */
.table td {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}
.table-danger {
    background-color: #f8d7da;
}
.table-warning {
    background-color: #fff3cd;
}
.table-container {
    overflow-y: auto;
    max-height: 500px;
}
.modal table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}
.modal th, .modal td {
    padding: 12px;
    text-align: left;
    border: 1px solid #ddd;
}
.modal th {
    background-color: #f8f9fa;
    font-weight: 500;
}
.modal th:not(:last-child),
.modal td:not(:last-child) {
    padding-right: 20px;
}
.modal th:nth-child(1),
.modal td:nth-child(1) {
    width: 15%;
}
.modal th:nth-child(2),
.modal td:nth-child(2) {
    width: 10%;
}
.modal th:nth-child(3),
.modal td:nth-child(3) {
    width: 10%;
}
.modal th:nth-child(4),
.modal td:nth-child(4) {
    width: 10%;
}
.modal th:nth-child(5),
.modal td:nth-child(5) {
    width: 15%;
}
.modal th:nth-child(6),
.modal td:nth-child(6) {
    width: 40%;
}

/* Стили из login.html */
.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 20px;
}
.error-message {
    color: #dc3545;
    margin-bottom: 15px;
}
