﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    background-color: #f8fafc;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 15px;
    width: 90%;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: #1e3c72;
}

.navbar {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0 15px;
    max-width: 100%;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    min-height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    transition: transform 0.3s ease;
    z-index: 1001;
}

    .logo:hover {
        transform: scale(1.05);
    }

    .logo i {
        font-size: 1.8rem;
        color: #4dabf7;
    }

.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
    margin: 0;
    padding: 0;
    max-width: 100%;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

    .nav-link:hover {
        background: rgba(255, 255, 255, 0.15);
        color: white;
        transform: translateY(-2px);
    }

    .nav-link.active {
        background: rgba(255, 255, 255, 0.2);
        color: white;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    .nav-link i {
        font-size: 1.1rem;
    }

.auth-nav-item .nav-link {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

    .auth-nav-item .nav-link:hover {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.5);
    }

    .auth-nav-item .nav-link.authenticated {
        background: rgba(81, 207, 102, 0.2);
        border-color: #51cf66;
    }

.notifications-item {
    position: relative;
}

.notification-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #ff6b6b;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 10px;
    min-width: 18px;
    text-align: center;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    animation: pulse 2s infinite;
    border: 2px solid white;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.notification-item {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

    .notification-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    }

    .notification-item.unread {
        background: #f8f9fa;
        border-left-width: 6px !important;
    }

.notifications-tabs {
    margin-bottom: 25px;
    display: flex;
    gap: 10px;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

.tab-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .tab-btn:hover {
        background: #e9ecef;
        color: #1e3c72;
    }

    .tab-btn.active {
        background: #1e3c72;
        color: white;
    }

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: background 0.3s ease;
    z-index: 1001;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
}

    .menu-toggle:hover {
        background: rgba(255, 255, 255, 0.1);
    }

.main-content {
    flex: 1;
    padding: 30px 15px;
    animation: fadeIn 0.5s ease;
    width: 100%;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page {
    display: none;
}

    .page.active {
        display: block;
        width: 100%;
    }

.hero {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
    color: white;
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    width: 100%;
}

    .hero h1 {
        font-size: clamp(1.8rem, 4vw, 2.8rem);
        margin-bottom: 20px;
        font-weight: 700;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        line-height: 1.3;
        color: white;
    }

    .hero p {
        font-size: clamp(1rem, 2.5vw, 1.2rem);
        max-width: 700px;
        margin: 0 auto 30px;
        opacity: 0.95;
        line-height: 1.7;
    }

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    color: #1e3c72;
    background: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

    .btn-primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
        background: #f8fafc;
    }

    .btn-primary:active {
        transform: translateY(-1px);
    }

    .btn-primary i {
        font-size: 1.2rem;
    }

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    padding: 25px 20px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

    .stat-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 5px;
        border-radius: 16px 16px 0 0;
    }

    .stat-card[data-page="current"]::before {
        background: linear-gradient(90deg, #ff6b6b, #ff8e8e);
    }

    .stat-card[data-page="completed"]::before {
        background: linear-gradient(90deg, #51cf66, #69db7c);
    }

    .stat-card[data-page="planned"]::before {
        background: linear-gradient(90deg, #339af0, #4dabf7);
    }

    .stat-card[data-page="map"]::before {
        background: linear-gradient(90deg, #845ef7, #9775fa);
    }

    .stat-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
        border-color: #4dabf7;
    }

    .stat-card:active {
        transform: translateY(-5px);
        transition: transform 0.1s ease;
    }

    .stat-card.active {
        border-color: #1e3c72;
        box-shadow: 0 0 0 3px rgba(30, 60, 114, 0.1);
    }

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1);
}

.stat-card[data-page="current"] .stat-icon {
    color: #ff6b6b;
}

.stat-card[data-page="completed"] .stat-icon {
    color: #51cf66;
}

.stat-card[data-page="planned"] .stat-icon {
    color: #339af0;
}

.stat-card[data-page="map"] .stat-icon {
    color: #845ef7;
}

.stat-card h3 {
    font-size: 2.2rem;
    margin-bottom: 8px;
    color: #1e3c72;
    font-weight: 700;
    transition: color 0.3s ease;
}

.stat-card p {
    color: #666;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.stat-hint {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    color: #666;
    font-size: 0.85rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.stat-card:hover .stat-hint {
    opacity: 1;
    transform: translateY(0);
}

.page-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
    width: 100%;
}

    .page-header h2 {
        display: flex;
        align-items: center;
        gap: 12px;
        color: #1e3c72;
        font-size: clamp(1.5rem, 3vw, 2rem);
        margin-bottom: 10px;
        flex-wrap: wrap;
    }

    .page-header p {
        color: #666;
        font-size: 1rem;
        max-width: 800px;
        line-height: 1.6;
    }

.page-search-container {
    margin-bottom: 25px;
    width: 100%;
}

.search-bar {
    display: flex;
    gap: 10px;
    max-width: 500px;
    width: 100%;
}

    .search-bar input {
        flex: 1;
        padding: 12px 16px;
        border: 2px solid #dee2e6;
        border-radius: 10px;
        font-size: 1rem;
        background: white;
        transition: all 0.3s ease;
        width: 100%;
    }

        .search-bar input:focus {
            outline: none;
            border-color: #4dabf7;
            box-shadow: 0 0 0 3px rgba(77, 171, 247, 0.2);
        }

        .search-bar input:hover {
            border-color: #adb5bd;
        }

    .search-bar button {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 12px 20px;
        background: #1e3c72;
        color: white;
        border: none;
        border-radius: 10px;
        cursor: pointer;
        transition: all 0.3s ease;
        min-width: 60px;
        font-weight: 500;
    }

        .search-bar button:hover {
            background: #2a5298;
            transform: translateY(-2px);
        }

        .search-bar button i {
            font-size: 1rem;
        }

.search-results-info {
    margin-bottom: 15px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #4dabf7;
    display: none;
}

    .search-results-info.active {
        display: block;
    }

    .search-results-info p {
        margin: 0;
        color: #495057;
        font-weight: 500;
    }

.search-results-count {
    color: #1e3c72;
    font-weight: 600;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 140px);
    padding: 20px;
    width: 100%;
}

.login-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 30px 25px;
    width: 100%;
    max-width: 500px;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

    .login-header h2 {
        color: #1e3c72;
        font-size: clamp(1.6rem, 3vw, 2.2rem);
        margin-bottom: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        flex-wrap: wrap;
    }

    .login-header p {
        color: #666;
        font-size: 1rem;
    }

.login-form {
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
    width: 100%;
}

    .form-group label {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 8px;
        color: #495057;
        font-weight: 500;
        font-size: 1rem;
    }

        .form-group label i {
            color: #4dabf7;
            font-size: 1.1rem;
        }

    .form-group input,
    .form-group select,
    .form-group textarea {
        width: 100%;
        padding: 14px 16px;
        border: 2px solid #dee2e6;
        border-radius: 10px;
        font-size: 1rem;
        transition: all 0.3s ease;
        background: #f8f9fa;
    }

        .form-group input:focus,
        .form-group select:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: #4dabf7;
            background: white;
            box-shadow: 0 0 0 3px rgba(77, 171, 247, 0.2);
        }

        .form-group input:hover,
        .form-group select:hover,
        .form-group textarea:hover {
            border-color: #adb5bd;
        }

.btn-login-submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

    .btn-login-submit:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(30, 60, 114, 0.3);
    }

    .btn-login-submit:active {
        transform: translateY(-1px);
    }

    .btn-login-submit i {
        font-size: 1.1rem;
    }

.login-status {
    margin-top: 20px;
    padding: 12px;
    border-radius: 10px;
    text-align: center;
    font-weight: 500;
    display: none;
    width: 100%;
}

    .login-status.success {
        display: block;
        background: rgba(81, 207, 102, 0.15);
        color: #51cf66;
        border: 1px solid rgba(81, 207, 102, 0.3);
    }

    .login-status.error {
        display: block;
        background: rgba(255, 107, 107, 0.15);
        color: #ff6b6b;
        border: 1px solid rgba(255, 107, 107, 0.3);
    }


.edit-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 15px;
    width: 100%;
}

.edit-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 30px;
    width: 100%;
    animation: slideUp 0.5s ease;
}

.edit-header {
    margin-bottom: 30px;
}

    .edit-header h2 {
        color: #1e3c72;
        font-size: 1.8rem;
        margin-bottom: 20px;
        display: flex;
        align-items: center;
        gap: 12px;
    }

        .edit-header h2 i {
            color: #4dabf7;
        }

.object-info-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #1e3c72;
}

    .object-info-summary h3 {
        color: #1e3c72;
        margin-bottom: 10px;
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 1.3rem;
    }

    .object-info-summary p {
        color: #495057;
        margin: 8px 0;
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 0.95rem;
    }

        .object-info-summary p i {
            color: #666;
            width: 18px;
            text-align: center;
        }

.edit-instructions {
    background: #e7f5ff;
    padding: 18px 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    border-left: 4px solid #4dabf7;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

    .edit-instructions i {
        color: #4dabf7;
        font-size: 1.5rem;
        margin-top: 2px;
    }

    .edit-instructions div {
        flex: 1;
    }

    .edit-instructions strong {
        display: block;
        margin-bottom: 5px;
        color: #1e3c72;
        font-size: 1rem;
    }

    .edit-instructions p {
        color: #495057;
        font-size: 0.95rem;
        margin: 0;
        line-height: 1.5;
    }


.works-edit-list {
    margin-bottom: 30px;
}

.work-edit-item {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

    .work-edit-item:hover {
        border-color: #4dabf7;
        box-shadow: 0 5px 20px rgba(77, 171, 247, 0.1);
    }

.work-edit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

    .work-edit-header h4 {
        color: #1e3c72;
        font-size: 1.2rem;
        margin: 0;
        flex: 1;
    }

.work-unit {
    background: #e7f5ff;
    color: #1e3c72;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.work-edit-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.work-edit-field {
    margin-bottom: 15px;
}

    .work-edit-field label {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 8px;
        color: #495057;
        font-weight: 500;
        font-size: 0.95rem;
    }

        .work-edit-field label i {
            color: #4dabf7;
            width: 18px;
        }

.work-readonly {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    .work-readonly .value {
        font-size: 1.1rem;
        font-weight: 600;
        color: #1e3c72;
    }

    .work-readonly .unit {
        color: #666;
        font-size: 0.9rem;
        font-weight: 500;
    }

.work-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    color: #1e3c72;
    transition: all 0.3s ease;
    background: white;
}

    .work-input:focus {
        outline: none;
        border-color: #4dabf7;
        box-shadow: 0 0 0 3px rgba(77, 171, 247, 0.2);
    }

    .work-input:hover {
        border-color: #adb5bd;
    }

    .work-input::placeholder {
        color: #adb5bd;
    }

.input-hint {
    color: #666;
    font-size: 0.85rem;
    margin-top: 5px;
    text-align: right;
    font-style: italic;
}

.work-edit-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.progress-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #495057;
    font-weight: 500;
    font-size: 0.95rem;
}

    .progress-label i {
        color: #4dabf7;
    }

.progress-percent {
    font-size: 1.2rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
}

.progress-complete {
    background: rgba(81, 207, 102, 0.15);
    color: #51cf66;
}

.progress-high {
    background: rgba(81, 207, 102, 0.15);
    color: #69db7c;
}

.progress-medium {
    background: rgba(255, 193, 7, 0.15);
    color: #f39c12;
}

.progress-low {
    background: rgba(255, 107, 107, 0.15);
    color: #ff6b6b;
}

.no-works {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    font-style: italic;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #dee2e6;
}

.edit-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

    .summary-item i {
        font-size: 2rem;
        color: #4dabf7;
    }

    .summary-item div {
        flex: 1;
    }

    .summary-item span {
        display: block;
        color: #666;
        font-size: 0.9rem;
        margin-bottom: 5px;
    }

    .summary-item strong {
        font-size: 1.8rem;
        color: #1e3c72;
        font-weight: 700;
    }

.edit-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e9ecef;
    flex-wrap: wrap;
}

    .edit-actions .btn-secondary,
    .edit-actions .btn-primary {
        flex: 1;
        min-width: 200px;
        justify-content: center;
        padding: 14px 20px;
        font-size: 1rem;
        font-weight: 600;
    }

    .edit-actions .btn-secondary {
        background: #6c757d;
        border: none;
        color: white;
    }

        .edit-actions .btn-secondary:hover {
            background: #5a6268;
        }

    .edit-actions .btn-primary {
        background: linear-gradient(135deg, #1e3c72, #2a5298);
        color: white;
        border: none;
    }

        .edit-actions .btn-primary:hover {
            background: linear-gradient(135deg, #2a5298, #3b6fc4);
        }

.edit-status {
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
    font-weight: 500;
    display: none;
}

    .edit-status .status-success,
    .edit-status .status-error {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 15px;
        border-radius: 8px;
        font-size: 1rem;
    }

.status-success {
    background: rgba(81, 207, 102, 0.15);
    color: #51cf66;
    border: 1px solid rgba(81, 207, 102, 0.3);
}

    .status-success i {
        color: #51cf66;
    }

.status-error {
    background: rgba(255, 107, 107, 0.15);
    color: #ff6b6b;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

    .status-error i {
        color: #ff6b6b;
    }

.map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
    width: 100%;
}

.map-controls {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
}

.filter-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    width: 100%;
}

.filter-select {
    padding: 12px 16px;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    background: white;
    font-size: 1rem;
    color: #333;
    min-width: 180px;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
    width: 100%;
    max-width: 300px;
}

    .filter-select:focus {
        outline: none;
        border-color: #4dabf7;
        box-shadow: 0 0 0 3px rgba(77, 171, 247, 0.2);
    }

    .filter-select:hover {
        border-color: #adb5bd;
    }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

    .btn-secondary:hover {
        background: #5a6268;
        transform: translateY(-2px);
    }

    .btn-secondary:active {
        transform: translateY(0);
    }

#map {
    width: 100%;
    height: 500px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border: 2px solid #e9ecef;
    margin-bottom: 25px;
}

.leaflet-popup-content-wrapper {
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
}

.leaflet-popup-content {
    margin: 0;
    padding: 0;
    min-width: 250px;
}

.map-popup {
    width: 100%;
}

.popup-header {
    padding: 12px 15px;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .popup-header h4 {
        margin: 0;
        font-size: 1rem;
        color: white;
    }

.popup-content {
    padding: 15px;
}

    .popup-content p {
        margin: 8px 0;
        display: flex;
        align-items: center;
        gap: 8px;
    }

.district-polygon {
    transition: all 0.3s ease;
}

.district-label {
    background: rgba(30, 60, 114, 0.8);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    border: 2px solid white;
}

.district-label-container {
    background: transparent;
    border: none;
}

.district-tooltip {
    background: #1e3c72;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.9rem;
    font-weight: 600;
}

.legend {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    min-width: 180px;
    border: 1px solid #e9ecef;
}

    .legend h4 {
        margin: 0 0 12px 0;
        color: #1e3c72;
        font-size: 1rem;
        font-weight: 600;
        text-align: center;
        padding-bottom: 8px;
        border-bottom: 1px solid #e9ecef;
    }

.legend-item {
    display: flex;
    align-items: center;
    margin: 8px 0;
}

.legend-color {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    margin-right: 10px;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.legend-item span {
    font-size: 0.9rem;
    color: #495057;
}

.object-info-panel {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    margin-top: 25px;
    overflow: hidden;
    border: 1px solid #e9ecef;
    display: none;
    animation: slideUp 0.3s ease;
    width: 100%;
}

    .object-info-panel.active {
        display: block;
    }

.object-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    flex-wrap: wrap;
    gap: 15px;
}

    .object-info-header h3 {
        margin: 0;
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 1.3rem;
        flex: 1;
        min-width: 200px;
        color: white;
    }

.close-panel {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

    .close-panel:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: rotate(90deg);
    }

.object-info-content {
    padding: 25px;
}

.no-object-selected {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

    .no-object-selected i {
        font-size: 3rem;
        color: #adb5bd;
        margin-bottom: 20px;
        opacity: 0.7;
    }

    .no-object-selected p {
        font-size: 1.1rem;
        max-width: 500px;
        margin: 0 auto;
        line-height: 1.6;
    }

.object-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    width: 100%;
}

.object-main-info {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.object-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

    .object-title h4 {
        font-size: 1.4rem;
        color: #1e3c72;
        margin: 0;
    }

.object-status-badge {
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

    .object-status-badge.current {
        background: rgba(255, 107, 107, 0.15);
        color: #ff6b6b;
    }

    .object-status-badge.completed {
        background: rgba(81, 207, 102, 0.15);
        color: #51cf66;
    }

    .object-status-badge.planned {
        background: rgba(51, 154, 240, 0.15);
        color: #339af0;
    }

.object-address {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

    .object-address i {
        color: #1e3c72;
        margin-top: 3px;
        flex-shrink: 0;
    }

    .object-address div {
        flex: 1;
    }

    .object-address strong {
        display: block;
        margin-bottom: 5px;
        color: #495057;
        font-size: 0.95rem;
    }

    .object-address span {
        color: #666;
        font-size: 1rem;
        line-height: 1.5;
    }

.work-table-section {
    grid-column: 1 / -1;
    margin-top: 20px;
    width: 100%;
    overflow-x: auto;
}

    .work-table-section h5 {
        display: flex;
        align-items: center;
        gap: 10px;
        color: #495057;
        margin-bottom: 15px;
        font-size: 1.1rem;
    }

.work-table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    width: 100%;
    min-width: 600px;
}

.table-header {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.work-table table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.work-table thead {
    background: #f8f9fa;
}

.work-table th {
    padding: 12px 15px;
    text-align: left;
    color: #495057;
    font-weight: 600;
    border-bottom: 2px solid #e9ecef;
    word-break: break-word;
}

.work-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e9ecef;
    word-break: break-word;
}

.work-table tbody tr:hover {
    background: #f8f9fa;
}

.fact-completed {
    color: #51cf66;
    font-weight: 600;
}

.fact-pending {
    color: #ff6b6b;
    font-weight: 600;
}

.table-footer {
    padding: 15px 20px;
    background: #f8f9fa;
    text-align: right;
    border-top: 1px solid #e9ecef;
}

.text-center {
    text-align: center;
}

.row-even {
    background: #f8fafc;
}

.row-odd {
    background: white;
}

.no-table-data {
    text-align: center;
    padding: 30px;
    color: #6c757d;
    font-style: italic;
}

.object-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    width: 100%;
}

.meta-card {
    background: #f8f9fa;
    padding: 18px;
    border-radius: 12px;
    border-left: 4px solid;
}

    .meta-card.type {
        border-left-color: #845ef7;
    }

    .meta-card.dates {
        border-left-color: #f06595;
    }

    .meta-card.district {
        border-left-color: #20c997;
    }

    .meta-card.area {
        border-left-color: #20c997;
    }

    .meta-card h5 {
        display: flex;
        align-items: center;
        gap: 8px;
        color: #495057;
        margin-bottom: 12px;
        font-size: 1rem;
    }

        .meta-card h5 i {
            color: inherit;
            font-size: 1.1rem;
        }

    .meta-card .meta-value {
        font-size: 1.1rem;
        font-weight: 600;
        color: #1e3c72;
        margin-bottom: 5px;
    }

    .meta-card .meta-label {
        color: #666;
        font-size: 0.9rem;
    }

.object-actions {
    display: flex;
    gap: 12px;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #e9ecef;
    flex-wrap: wrap;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 2px solid;
    border-radius: 10px;
    background: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.95rem;
    white-space: nowrap;
}

    .action-btn.primary {
        background: #1e3c72;
        color: white;
        border-color: #1e3c72;
    }

        .action-btn.primary:hover {
            background: #2a5298;
            border-color: #2a5298;
            transform: translateY(-2px);
        }

    .action-btn.secondary {
        color: #1e3c72;
        border-color: #1e3c72;
    }

        .action-btn.secondary:hover {
            background: #f8f9fa;
            transform: translateY(-2px);
        }

    .action-btn.manager {
        background: #339af0;
        color: white;
        border-color: #339af0;
    }

        .action-btn.manager:hover {
            background: #228be6;
            border-color: #228be6;
        }

    .action-btn.request {
        background: #ff922b;
        color: white;
        border-color: #ff922b;
    }

        .action-btn.request:hover {
            background: #fd7e14;
            border-color: #fd7e14;
        }

    .action-btn i {
        font-size: 1rem;
    }


.object-files {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
}

    .object-files h5 {
        margin: 0 0 12px 0;
        color: #1e3c72;
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 1rem;
    }

.files-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    cursor: default;
}

    .file-item:hover {
        border-color: #4dabf7;
        box-shadow: 0 2px 8px rgba(77, 171, 247, 0.1);
    }

.file-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #495057;
    flex: 1;
    transition: color 0.3s ease;
    cursor: pointer;
}

    .file-link:hover {
        color: #339af0;
    }

    .file-link i {
        color: #ff6b6b;
        font-size: 1.2rem;
    }

.file-size {
    color: #868e96;
    font-size: 0.8rem;
    margin-left: 8px;
}

.delete-file-btn {
    background: none;
    border: none;
    color: #adb5bd;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    z-index: 10;
    position: relative;
}

    .delete-file-btn:hover {
        color: #ff6b6b;
        background: #ffe3e3;
        transform: scale(1.1);
    }

    .delete-file-btn:active {
        transform: scale(0.95);
    }

    .delete-file-btn i {
        font-size: 1rem;
        pointer-events: none;
    }

.file-upload {
    margin-top: 15px;
    cursor: default;
}

.upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #51cf66;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

    .upload-btn:hover {
        background: #40c057;
        transform: translateY(-2px);
    }

    .upload-btn:active {
        transform: translateY(0);
    }

.no-files {
    color: #868e96;
    font-size: 0.9rem;
    margin: 0;
    text-align: center;
    padding: 15px;
}


.works-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.work-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 5px solid;
    cursor: pointer;
    width: 100%;
}

    .work-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    }

    .work-card[data-status="current"] {
        border-left-color: #ff6b6b;
    }

    .work-card[data-status="completed"] {
        border-left-color: #51cf66;
    }

    .work-card[data-status="planned"] {
        border-left-color: #339af0;
    }

.work-status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

    .work-status.current {
        background: rgba(255, 107, 107, 0.15);
        color: #ff6b6b;
    }

    .work-status.completed {
        background: rgba(81, 207, 102, 0.15);
        color: #51cf66;
    }

    .work-status.planned {
        background: rgba(51, 154, 240, 0.15);
        color: #339af0;
    }

.work-title {
    font-size: 1.2rem;
    color: #1e3c72;
    margin-bottom: 8px;
    font-weight: 600;
    line-height: 1.4;
}

.work-address {
    color: #495057;
    font-weight: 500;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

    .work-address i {
        color: #6c757d;
        flex-shrink: 0;
    }

.work-area {
    font-size: 0.9rem;
    color: #666;
    margin: 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .work-area i {
        color: #20c997;
        flex-shrink: 0;
    }

.work-preview {
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.preview-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.work-count {
    color: #495057;
    font-weight: 500;
    font-size: 0.9rem;
}

.work-percent {
    font-weight: 600;
    font-size: 0.9rem;
}

    .work-percent.high {
        color: #51cf66;
    }

    .work-percent.medium {
        color: #f39c12;
    }

    .work-percent.low {
        color: #ff6b6b;
    }

.progress-bar-small {
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    margin: 8px 0;
}

    .progress-bar-small .progress-fill {
        height: 100%;
        background: linear-gradient(90deg, #51cf66, #40c057);
        border-radius: 3px;
    }

.work-names {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.5;
    max-height: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.work-details {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #6c757d;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
    margin-top: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.work-type {
    background: #e9ecef;
    padding: 4px 10px;
    border-radius: 15px;
    font-weight: 500;
    white-space: nowrap;
}

.work-dates {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}


.all-works-container {
    margin-top: 25px;
    width: 100%;
}

.table-responsive {
    overflow-x: auto;
    width: 100%;
    -webkit-overflow-scrolling: touch;
}

.works-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    min-width: 600px;
}

    .works-table th {
        background: linear-gradient(135deg, #1e3c72, #2a5298);
        color: white;
        padding: 12px 15px;
        text-align: left;
        font-weight: 600;
        white-space: nowrap;
    }

    .works-table td {
        padding: 12px 15px;
        border-bottom: 1px solid #e9ecef;
        word-break: break-word;
    }

    .works-table tbody tr:hover {
        background: #f8f9fa;
    }

    .works-table .status-badge {
        display: inline-block;
        padding: 4px 10px;
        border-radius: 15px;
        font-size: 0.8rem;
        font-weight: 600;
        white-space: nowrap;
    }

    .works-table .status-current {
        background: rgba(255, 107, 107, 0.15);
        color: #ff6b6b;
    }

    .works-table .status-completed {
        background: rgba(81, 207, 102, 0.15);
        color: #51cf66;
    }

    .works-table .status-planned {
        background: rgba(51, 154, 240, 0.15);
        color: #339af0;
    }


.modal {
    animation: fadeIn 0.3s ease;
}

    .modal > div {
        animation: slideUp 0.3s ease;
    }

    .modal button {
        transition: all 0.3s ease;
    }

        .modal button:hover {
            transform: translateY(-2px);
        }

        .modal button:active {
            transform: translateY(0);
        }

.form-control {
    transition: all 0.3s ease;
}

    .form-control:focus {
        outline: none;
        border-color: #4dabf7 !important;
        box-shadow: 0 0 0 3px rgba(77, 171, 247, 0.2);
    }

    .form-control:hover {
        border-color: #adb5bd;
    }


.footer {
    background: #1e3c72;
    color: white;
    padding: 25px 15px;
    text-align: center;
    margin-top: 50px;
    width: 100%;
}

    .footer p {
        margin: 10px 0;
        opacity: 0.9;
        font-size: 0.95rem;
    }

#last-update {
    font-weight: 600;
    color: #4dabf7;
}


.loading {
    text-align: center;
    padding: 50px 20px;
    color: #666;
    font-size: 1rem;
    grid-column: 1 / -1;
}

    .loading::after {
        content: '';
        display: inline-block;
        width: 18px;
        height: 18px;
        border: 3px solid #e9ecef;
        border-top-color: #1e3c72;
        border-radius: 50%;
        animation: spin 1s linear infinite;
        margin-left: 10px;
    }

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.no-data {
    text-align: center;
    padding: 40px;
    color: #6c757d;
    font-size: 1rem;
    grid-column: 1 / -1;
    background: #f8f9fa;
    border-radius: 12px;
    width: 100%;
}

    .no-data i {
        font-size: 2.2rem;
        color: #adb5bd;
        margin-bottom: 15px;
        display: block;
    }

@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: white;
        width: 100%;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 16px 16px;
        transition: left 0.3s ease;
        z-index: 999;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

        .nav-menu.active {
            left: 0;
        }

    .nav-link {
        color: #333;
        padding: 15px;
        justify-content: flex-start;
        border-radius: 8px;
        margin-bottom: 5px;
        font-size: 1.1rem;
    }

        .nav-link.active {
            background: #1e3c72;
            color: white;
        }

    .auth-nav-item .nav-link {
        background: #1e3c72;
        color: white;
        margin-top: 10px;
    }

    .menu-toggle {
        display: flex;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    #map {
        height: 450px;
    }

    .legend {
        bottom: 15px;
        right: 15px;
        padding: 12px;
        min-width: 160px;
    }

    .object-info-header {
        padding: 15px 20px;
    }

        .object-info-header h3 {
            font-size: 1.1rem;
        }

    .object-info-content {
        padding: 20px;
    }

    .login-card {
        padding: 25px 20px;
    }

    .login-header h2 {
        font-size: 1.6rem;
    }

    .edit-card {
        padding: 25px 20px;
    }

    .work-edit-values {
        grid-template-columns: 1fr;
    }

    .edit-actions .btn-secondary,
    .edit-actions .btn-primary {
        min-width: 100%;
    }

    .notifications-tabs {
        flex-wrap: wrap;
    }

    .tab-btn {
        flex: 1;
    }

    .object-files {
        margin-top: 15px;
    }

    .file-item {
        flex-wrap: wrap;
        gap: 10px;
    }

    .file-link {
        flex: 1;
        min-width: 200px;
    }
}


@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }

    .hero {
        padding: 30px 15px;
        margin-bottom: 20px;
    }

        .hero h1 {
            font-size: 1.6rem;
            margin-bottom: 15px;
        }

        .hero p {
            font-size: 1rem;
            margin-bottom: 20px;
        }

    .stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin-bottom: 30px;
    }

    .stat-card {
        padding: 20px 15px;
        min-height: 160px;
    }

        .stat-card h3 {
            font-size: 1.8rem;
        }

    .stat-icon {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .map-header {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .map-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        flex-direction: column;
        gap: 10px;
    }

    .filter-select {
        min-width: 100%;
        max-width: 100%;
    }

    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .works-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .legend {
        position: relative;
        bottom: auto;
        right: auto;
        margin: 15px auto 0;
        width: calc(100% - 30px);
        max-width: 300px;
    }

    .object-details {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .object-title h4 {
        font-size: 1.2rem;
    }

    .object-actions {
        flex-direction: column;
        gap: 10px;
    }

    .action-btn {
        width: 100%;
        justify-content: center;
    }

    .works-table th,
    .works-table td {
        padding: 10px 12px;
        font-size: 0.85rem;
    }

    .page-header h2 {
        font-size: 1.4rem;
        gap: 10px;
    }

    .page-header p {
        font-size: 0.95rem;
    }

    .main-content {
        padding: 20px 10px;
    }

    .edit-container {
        padding: 15px 10px;
    }

    .login-container {
        padding: 15px 10px;
        min-height: calc(100vh - 120px);
    }

    .search-bar {
        flex-direction: column;
    }

        .search-bar button {
            width: 100%;
        }

    .work-edit-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .edit-summary {
        grid-template-columns: 1fr;
    }

    .notification-item {
        flex-direction: column;
        align-items: flex-start;
    }

        .notification-item > div:first-child {
            margin-bottom: 10px;
        }

    .file-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .delete-file-btn {
        align-self: flex-end;
    }
}


@media (max-width: 576px) {
    .stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .stat-card {
        min-height: 140px;
        padding: 18px 15px;
    }

        .stat-card h3 {
            font-size: 1.6rem;
        }

    .hero h1 {
        font-size: 1.4rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .page-header h2 {
        font-size: 1.3rem;
    }

    #map {
        height: 350px;
        border-radius: 10px;
    }

    .object-info-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
        padding: 15px;
    }

    .close-panel {
        align-self: flex-end;
        margin-top: -40px;
    }

    .login-card {
        padding: 20px 15px;
    }

    .login-header h2 {
        font-size: 1.4rem;
        flex-direction: column;
        gap: 8px;
    }

    .nav-container {
        padding: 10px 0;
        min-height: 60px;
    }

    .logo {
        font-size: 1.3rem;
    }

        .logo i {
            font-size: 1.5rem;
        }

    .footer {
        padding: 20px 10px;
        margin-top: 30px;
    }

    .btn-primary {
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    .btn-secondary {
        padding: 10px 15px;
        font-size: 0.95rem;
    }

    .edit-card {
        padding: 20px 15px;
    }

    .edit-header h2 {
        font-size: 1.4rem;
    }

    .object-info-summary h3 {
        font-size: 1.1rem;
    }

    .work-edit-item {
        padding: 15px;
    }

    .notification-badge {
        top: 0;
        right: 0;
        min-width: 16px;
        font-size: 9px;
        padding: 1px 5px;
    }

    .file-link {
        font-size: 0.85rem;
    }

    .upload-btn {
        width: 100%;
        justify-content: center;
    }
}
.object-comments {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
}

    .object-comments h5 {
        margin: 0 0 12px 0;
        color: #1e3c72;
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 1rem;
    }

.comments-container {
    width: 100%;
}

.comments-textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    transition: all 0.3s ease;
    background: white;
}

    .comments-textarea:focus {
        outline: none;
        border-color: #4dabf7;
        box-shadow: 0 0 0 3px rgba(77, 171, 247, 0.2);
    }

.save-comment-btn {
    background: #1e3c72;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

    .save-comment-btn:hover {
        background: #2a5298;
        transform: translateY(-2px);
    }

    .save-comment-btn:active {
        transform: translateY(0);
    }


.object-details,
.object-files,
.file-item,
.file-upload,
.object-actions {
    position: relative;
    z-index: 1;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    cursor: default;
}

    .file-item:hover {
        border-color: #4dabf7;
        box-shadow: 0 2px 8px rgba(77, 171, 247, 0.1);
    }

.file-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #495057;
    flex: 1;
    transition: color 0.3s ease;
    cursor: pointer;
}

    .file-link:hover {
        color: #339af0;
    }

    .file-link i {
        color: #ff6b6b;
        font-size: 1.2rem;
    }

.file-size {
    color: #868e96;
    font-size: 0.8rem;
    margin-left: 8px;
}

.delete-file-btn {
    background: none;
    border: none;
    color: #adb5bd;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    z-index: 10;
    position: relative;
}

    .delete-file-btn:hover {
        color: #ff6b6b;
        background: #ffe3e3;
        transform: scale(1.1);
    }

    .delete-file-btn:active {
        transform: scale(0.95);
    }

    .delete-file-btn i {
        font-size: 1rem;
        pointer-events: none;
    }

.file-upload {
    margin-top: 15px;
    cursor: default;
}

.upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #51cf66;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

    .upload-btn:hover {
        background: #40c057;
        transform: translateY(-2px);
    }

    .upload-btn:active {
        transform: translateY(0);
    }

.object-actions button {
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.action-btn {
    cursor: pointer;
}


@media print {
    .navbar,
    .footer,
    .map-controls,
    .object-actions,
    .edit-actions,
    .btn-primary,
    .btn-secondary,
    .action-btn,
    .menu-toggle,
    .file-upload,
    .delete-file-btn,
    .save-comment-btn {
        display: none !important;
    }

    body {
        background: white;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }

    .page {
        display: block !important;
    }

    .work-table,
    .works-table {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }

    .object-files {
        border: 1px solid #dee2e6;
        background: white;
    }

    .file-link {
        color: black !important;
        text-decoration: none;
    }

    .object-comments {
        border: 1px solid #dee2e6;
        background: white;
    }

    .comments-textarea {
        border: 1px solid #dee2e6;
        background: white;
    }
}
.materials-table-section {
    margin-top: 20px;
    width: 100%;
    overflow-x: auto;
}

    .materials-table-section h5 {
        display: flex;
        align-items: center;
        gap: 10px;
        color: #495057;
        margin-bottom: 15px;
        font-size: 1.1rem;
    }

    .materials-table-section .work-table {
        background: white;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        width: 100%;
        min-width: 600px;
    }

    .materials-table-section .table-header {
        background: linear-gradient(135deg, #20c997, #12b886);
    }

    .materials-table-section .no-data {
        text-align: center;
        padding: 30px;
        color: #6c757d;
        background: #f8f9fa;
        border-radius: 12px;
    }

    .materials-table-section .fact-completed {
        color: #20c997;
        font-weight: 600;
    }

    .materials-table-section .fact-pending {
        color: #ff6b6b;
        font-weight: 600;
    }

.work-table.full-width {
    width: 100%;
}

    .work-table.full-width table {
        width: 100%;
    }
.object-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 100%;
}

.object-main-info {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.work-table-section,
.materials-table-section {
    width: 100%;
}

    .work-table-section .work-table,
    .materials-table-section .work-table {
        width: 100%;
        min-width: auto;
    }

        .work-table-section .work-table table,
        .materials-table-section .work-table table {
            width: 100%;
            table-layout: fixed;
        }

        .work-table-section .work-table th:first-child,
        .materials-table-section .work-table th:first-child {
            width: 60%;
        }

        .work-table-section .work-table th:nth-child(2),
        .materials-table-section .work-table th:nth-child(2),
        .work-table-section .work-table th:nth-child(3),
        .materials-table-section .work-table th:nth-child(3) {
            width: 20%;
        }

.object-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    width: 100%;
}

.add-object-form {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

    .form-section h3 {
        margin-bottom: 20px;
        color: #1e3c72;
        display: flex;
        align-items: center;
        gap: 10px;
    }

.form-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

    .form-row .form-group {
        flex: 1;
        min-width: 200px;
    }

.work-item, .material-item {
    margin-bottom: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.remove-work-btn, .remove-material-btn {
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .remove-work-btn:hover, .remove-material-btn:hover {
        background: #fa5252;
    }

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

#add-work-btn, #add-material-btn {
    margin-top: 10px;
}
.sidebar-toggle {
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1001;
    background: #1e3c72;
    border: none;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    display: none;
    transition: all 0.3s ease;
}

    .sidebar-toggle:hover {
        background: #2a5298;
        transform: scale(1.05);
    }

.sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100%;
    background: white;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1002;
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

    .sidebar.open {
        left: 0;
    }

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: bold;
}

.sidebar-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .sidebar-close:hover {
        background: rgba(255, 255, 255, 0.3);
    }

.sidebar-user {
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 12px;
}

    .sidebar-user i {
        font-size: 2rem;
        color: #1e3c72;
    }

.sidebar-user-name {
    font-weight: bold;
    color: #1e3c72;
}

.sidebar-user-role {
    font-size: 0.8rem;
    color: #6c757d;
}

.sidebar-nav {
    flex: 1;
    padding: 15px 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #495057;
    text-decoration: none;
    transition: all 0.3s ease;
}

    .sidebar-link:hover {
        background: #f8f9fa;
        color: #1e3c72;
    }

    .sidebar-link.active {
        background: #e7f5ff;
        color: #1e3c72;
        border-right: 3px solid #1e3c72;
    }

    .sidebar-link i {
        width: 22px;
        font-size: 1.1rem;
    }

.sidebar-divider {
    height: 1px;
    background: #e9ecef;
    margin: 10px 20px;
}

.sidebar-badge {
    margin-left: auto;
    background: #ff6b6b;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.7rem;
    min-width: 18px;
    text-align: center;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    display: none;
}

    .sidebar-overlay.active {
        display: block;
    }

@media (min-width: 992px) {
    .navbar {
        display: none;
    }

    .sidebar-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .main-content {
        margin-left: 0;
        padding-top: 15px;
    }
}

@media (max-width: 991px) {
    .sidebar-toggle {
        display: none;
    }

    .sidebar {
        width: 280px;
    }
}
/* ===== КОММЕНТАРИИ ===== */
.object-comments {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
}

    .object-comments h5 {
        margin: 0 0 12px 0;
        color: #1e3c72;
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 1rem;
    }

.comments-container {
    margin-bottom: 15px;
}

.comments-textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    transition: all 0.3s ease;
    background: white;
}

    .comments-textarea:focus {
        outline: none;
        border-color: #4dabf7;
        box-shadow: 0 0 0 3px rgba(77, 171, 247, 0.2);
    }

.save-comment-btn {
    background: #1e3c72;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

    .save-comment-btn:hover {
        background: #2a5298;
        transform: translateY(-2px);
    }

.comments-list {
    margin-top: 15px;
    border-top: 1px solid #e9ecef;
    padding-top: 15px;
}

.comment-item {
    background: white;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 10px;
    border: 1px solid #e9ecef;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 12px;
}

.comment-author {
    color: #1e3c72;
    display: flex;
    align-items: center;
    gap: 5px;
}

.comment-date {
    color: #868e96;
    font-size: 11px;
}

.comment-text {
    color: #495057;
    font-size: 13px;
    line-height: 1.5;
    word-wrap: break-word;
}

.no-comments {
    text-align: center;
    padding: 20px;
    color: #adb5bd;
    font-size: 13px;
}