﻿


@font-face {
    font-family: Vazir;
    src: url("Vazir.ttf");
}


html {
    scroll-behavior: smooth;
}

::-webkit-scrollbar {
    width: 10px;
    border-radius: 10px;
}

/* Track */
::-webkit-scrollbar-track {
    background: #1d1d1d;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: #555;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #666;
    }

* {
    direction: rtl;
    font-family: "vazir" !important;
}


body {
    overflow-x: hidden;
}

.dark .leaflet-layer,
.dark .leaflet-control-zoom-in,
.dark .leaflet-control-zoom-out,
.dark .leaflet-control-attribution {
    filter: invert(100%) hue-rotate(180deg) brightness(95%) contrast(90%);
}

.pop-content {
    direction: rtl;
    text-align: right;
}

select {
    border-radius: 2px;
}

    select:focus {
        outline: none;
    }

    select:first-child {
        border-radius: 2px 2px 0 0;
    }


#chartFilter:focus {
    border: 2px solid #3498db;
    outline: none;
}

li label {
    margin-top: 10px;
    color: white;
}

.myFooter {
    box-shadow: 0 0 5px gray;
    text-align: center;
    position: fixed;
    bottom: 0;
    font-family: Vazir;
    width: 100%;
    margin-top: 10px;
}

canvas {
    width: 100%;
    padding: 5px 10px;
}

#barChart {
    height: 100%;
    min-height: 100px;
}

.container-b {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.top-section {
    display: flex;
    height: 55%;
}

.left-side-chart {
    display: flex;
    flex-direction: column;
    width: 30%;
    height: 100%;
}

.box {
    display: flex;
    justify-content: space-around;
    align-items: center;
    font-weight: normal;
    color: white;
    cursor: pointer;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin: 5px 10px !important;
}

.box-chart {
    font-size: 12px;
}

.map-box {
    background: white;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    margin: 5px 10px !important;
    width: 100%;
    height : 650px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

    .map-box img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        margin: 0 !important;
    }

    .map-box .leaflet-tile {
        margin: 0 !important;
    }


    .buttom-section select:focus {
        outline: none !important;
        border: none !important;
    }

.buttom-charts {
    display: flex;
}

    .buttom-charts > * {
        width: 49%;
    }

#moonIcon {
    opacity: 0
}

.dark #moonIcon {
    opacity: 1;
}

.apexcharts-legend-text {
    padding: 0 !important;
    margin: 0 !important;
    margin-right: 5px !important;
}


.toastify {
    width: 250px !important; 
    border-radius: 5px;
    border: 1px solid gray;
    text-align: center;
    font-size: 16px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); 
    transition: all 0.3s ease;
}

#chart1, #chart3{
    height: 120px !important;
}

.select-filter {
    margin: 10px 0;
}


@media screen and (max-width:768px) {
    .top-section {
        flex-direction: column;
    }

    .left-side-chart {
        flex-direction: column;
        justify-content: center;
        width: 100%;
    }

    .main-chart {
        display: flex;
        justify-content: center;
        width: 100% !important;
    }
    .main-chart .box{
        width: 48%;

    }

    .bottom-chart{
        display:flex;
        justify-content: center;
        width: 100%;
    }
    .bottom-chart .box{
        width: 48%;
    }

    .buttom-charts {
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }
        .buttom-charts .box {
            width: 45%;
            white-space: nowrap;
        }
    .map-box {
        width : auto;
        height: 500px !important;
    }
    
    .toastify {
        font-size: 14px;
    }
}

@media screen and (max-width:425px) {
    .left-side-chart {
        flex-direction: column;
        justify-content : center;
        align-items : center;
    }
        .left-side-chart .box {
            width:90%;
        }
    .buttom-charts{
        margin-bottom : 30px;
    }
    .main-chart {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100% !important;
    }

    .bottom-chart {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
        margin-bottom: 50px;
    }
    .select-filter{
        margin: 10px 0;
    }
    .map-box {
        width: auto;
        height: 400px !important; /* ارتفاع نقشه برای صفحات موبایلی */
    }
    .buttom-charts .box {
        white-space: nowrap;
    }
    
    .toastify {
         font-size : 12px;
    }
}
