:root{
    --bg-primary: #111827;
    --bg-sidebar: #1e293b;
    --bg-secondary: #1f2937;
    --bg-tertiary: #374151;
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --text-sidebar: #f1f5f9;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --border-color: #4b5563;
    --hover-bg: #334155;
    --accent-color: #3b82f6;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, sans-serif;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
}

.mapboxgl-popup {
    max-width: 400px;
}

.mapboxgl-popup-content {
    padding: 15px;
}



.sidebar {
    width: 280px;
    background-color: var(--bg-sidebar);
    color: var(--text-sidebar);
    height: 100%;
    padding: 20px;
    position: fixed;
    left: 0;
    top: 0;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    animation: slideIn 0.6s ease-out;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.sidebar.active {
    transform: translateX(0);
}



.logo {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 40px;
    text-align: center;
    letter-spacing: 1px;
    padding: 20px 0;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.nav-section {
    margin-bottom: 30px;
}

.nav-section:nth-child(2) {
    animation-delay: 0.2s;
}

.nav-section:nth-child(3) {
    animation-delay: 0.4s;
}

.nav-section-title {
    font-weight: 600;
    padding: 10px 20px;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1.5px;
}

.nav-item {
    padding: 12px 20px;
    margin: 4px 0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-sidebar);
    position: relative;
    overflow: hidden;
}

.nav-item:hover {
    background-color: var(--hover-bg);
}

.nav-item:hover::before {
    transform: scaleY(1);
}

.nav-item:hover i {
    transform: scale(1.2);
}

.nav-item i {
    margin-right: 12px;
    transition: transform 0.2s;
    color: var(--text-secondary);
}

.bottom-nav {
    margin-top: auto;
    padding-top: 20px;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    animation: fadeIn 0.6s ease-out 0.6s forwards;
    opacity: 1;
}



.filters-container {
    background: var(--bg-sidebar);
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
    animation: fadeIn 0.6s ease-out 0.3s forwards;
    opacity: 0;
    transform: translateY(20px);
}

.filter-group {
    margin-bottom: 15px;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.filter-group select {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.filter-group select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
    outline: none;
}

.map-container {
    height: 100%;
    animation: fadeIn 0.6s ease-out 0.6s forwards;
    border-radius: 16px 0 0 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    width: 100%;
        position: relative;
}

#main-map {
    height: calc(100vh - 200px);
    border-radius: 16px;
}

.parcel-popup {
    padding: 16px;
    max-width: 300px;
}

.parcel-popup h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.parcel-popup p {
    margin: 8px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.parcel-popup a {
    color: var(--accent-color) !important;
    text-decoration: none;
    transition: color 0.2s;
}

.parcel-popup a:hover {
    color: #60a5fa !important;
}

.reset-filters {
    background: var(--hover-bg);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reset-filters:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}




.leaflet-control-zoom-out,
.leaflet-bar-part {
    display: none !important;
}


.main-content {
    margin-left: 280px;
    padding: 2rem;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    animation: fadeIn 0.6s ease-out;
}

.menu-toggle {
    position: relative;
    vertical-align: middle;
    width: 42px;
    height: 42px;
    background-color: var(--accent);
    color: var(--text-primary);
    border: none;
    border-radius: 0.375rem;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1001;
    box-shadow: var(--shadow);
    padding: 8px;
    transition: transform 0.3s ease;
    font-size: 20px;
    padding-bottom: 13px;
}

.menu-toggle.active {
    position: relative;
    transform: translateX(calc(100vw - 82px));
    background: none;
    box-shadow: none;
}






.card {
    background-color: var(--bg-secondary);
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.card-header {
    padding: 1rem 1.5rem;
    background-color: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    font-weight: 600;
    font-size: 1.125rem;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1rem 1.5rem;
    background-color: var(--bg-tertiary);
    border-top: 1px solid var(--border-color);
}

.text_3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.btn {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
}

.btn-primary {
    background-color: var(--accent);
    color: white;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
}

.btn-outline {
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-outline:hover {
    background-color: var(--bg-tertiary);
}

.btn i {
    margin-right: 0.5rem;
}

.badge {
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-blue {
    background-color: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.badge-green {
    background-color: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.badge-purple {
    background-color: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
}

.badge-amber {
    background-color: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background-color: var(--bg-secondary);
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.stat-title {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.stat-info {
    display: flex;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.recent-activity {
    margin-top: 2rem;
}

.activity-item {
    display: flex;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.activity-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background-color: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.activity-time {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    background-color: var(--bg-secondary);
    border-radius: 0.5rem;
    margin-top: 1.5rem;
}

.empty-state-icon {
    font-size: 3rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.empty-state-text {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.no-scrollbar::-webkit-scrollbar {
display: none;
}

.nav-items {
    flex: 1;
    overflow-y: auto;

}

i .fas{
        text-align: center;
}
i.fas.fa-map-marker-alt::before{
    height: auto;
}

.text_3xl-favorite-list{
    font-size: 32px;
}
.rounded-together{
    font-size: 23px;
}




.nav-item.active {
    background-color: var(--bg-tertiary);
}

@media (max-width: 920px){
    .text_3xl{
        font-size:28px;
    }
    a.btn{
        font-size: 12px;
        text-align: center;
    }
    .text_3xl-favorite-list{
        font-size: 30px;
    }
    .rounded-together{
        font-size: 23px;
    }


}
@media (max-width: 820px) {
    .text_3xl{
        font-size:36px;
    }


    .sidebar {
        transform: translateX(-100%);
        width: 100%;
        height: 100%;
        padding-bottom: 100px;
    }
    a.btn{
        font-size: 12px;
        text-align: center;
    }


    .main-content {
        margin-left: 0 !important;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    #main-map {
        height: calc(100vh - 150px) !important;
    }


    .menu-toggle {
        display: flex;
    }

    .filters-container {
        padding: 16px !important;
    }
    .nav-item {
        padding: 10px 15px !important;
    }
    .text_3xl-favorite-list{
        font-size: 30px;
    }
    .rounded-together{
        font-size: 21px;
    }
}

@media(max-width: 550px){
    i.fas.fa-map-marker-alt::before{
        font-size: 20px;
    }
    i.fas.fa-plus::before{
        font-size: 20px;
    }
    .text_3xl-favorite-list{
        font-size: 25px;
    }
}

@media (max-width: 468px){
    .text_3xl{
        font-size:32px;
    }
    .text_3xl-favorite-list{
        font-size: 20px;
    }
    .rounded-together{
        font-size: 14px;
    }
}

@media (max-width: 370px){
    .text_3xl-favorite-list{
        font-size: 17px;
    }
    .rounded-together{
        font-size: 10px;
    }
}