﻿/* ================= ROOT ================= */
:root {
    --primary: #4f46e5;
    --primary-soft: #eef2ff;
    --bg: #f8fafc;
    --sidebar-bg: #111827;
    --sidebar-text: #9ca3af;
    --sidebar-active: #ffffff;
    --border: #e5e7eb;
    --text: #111827;
    --hover-menu: #C5D9ED;
    font-size: var(--bs-body-font-size);
    font-weight: var(--bs-body-font-weight) 400;
    line-height: var(--bs-body-line-height);
    color: var(--bs-body-color);
    -webkit-text-size-adjust: 100%;
}
.gs-dashboard {
    margin: 0;
    background: var(--bg);
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* ================= LAYOUT ================= */
.gs-layout {
    display: flex;
    font-size: 14px;
}
.gs-layout-main {
    margin-left: 260px;
    width: calc(100% - 260px);
    display: flex;
    flex-direction: column;
    font-size: 14px;
}
.gs-layout-collapsed {
    margin-left: 80px !important;
}
.gs-header-collapsed {
    left: 80px !important;
    width: 94% !important;
}
.iam-table td {
    font-size: 16px !important;
}
.iam-table th {
    font-size: 16px !important;
}
/* ================= SIDEBAR ================= */
.gs-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--primary-soft);
    z-index: 1000;
    transition: 0.3s;
}

    .gs-sidebar.gs-collapsed {
        width: 70px;
    }
        .gs-sidebar.gs-collapsed .gs-sidebar-header img {
            height:50px;
        }


.gs-sidebar-header {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .gs-sidebar-header img {
        height: 80px;
    }

.iam-menu-item {
    padding: 12px 20px;
    cursor: pointer;
    transition: 0.2s;
}

    .iam-menu-item:hover {
        color: white;
    }

    .iam-menu-item.active {
        background: var(--primary);
        color: white;
    }


/*==================MAPS=======================*/
._dashboard-map {
    position: relative;
    flex: 2;
    min-height: 300px;
    background: #e5e5e5;
}

/* MAP CANVAS (LEAFLET) */
._map-canvas,
#map {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
}
/* ================= CONTENT ================= */
.gs-content {
    margin-top: 100px;
    padding-left: 20px;
    padding-right: 65px;
}
.gs-card-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
/* tablet */
@media (max-width: 1024px) {
    .gs-card-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* mobile */
@media (max-width: 640px) {
    .gs-card-list {
        grid-template-columns: 1fr;
    }
}
/* ================= HEADER ================= */
.gs-header {
    position: fixed;
    top: 0;
    left: 260px;
    width: calc(100% - 300px);
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    background: white;
    border-bottom: 1px solid var(--border);
    z-index: 999;
}
/* HEADER LEFT */
.gs-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.gs-header-logo {
    height: 60px;
    display: none;
}



/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
    .gs-sidebar {
        position: absolute;
        z-index: 1000;
        height: 100%;
        left: -250px;
    }

        .gs-sidebar.gs-show {
            left: 0;
        }

    .gs-content {
        padding: 10px;
    }
}
