﻿
/*html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}
*/
/* Make the wrapper around main stretch */
/*body > div {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

main {
    flex: 1;*/ /* main fills available space */
/*display: flex;
}

*/


/*.top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: lightblue;
    text-align: center;
    line-height: 80px;
    font-weight: bold;
}*/

html, body {
    height: 100%;
    margin: 0;
}





form input, form select {
    width: 100%;
}

.styled-table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}

    .styled-table tr {
        color: #000;
        text-align: center;
        border-bottom: 1px solid #dddddd;
    }

    .styled-table th {
        padding: 5px 10px;
        background-color: #f3f3f3;
        position: sticky;
        z-index: 0;
        top: 0;
    }

.Normalth {
}

.Fixedth {
    position: fixed;
    top: 72px;
}

.styled-table th:first-child {
    position: sticky;
    right: 0;
    background-color: #f3f3f3;
    z-index: 1;
}

.styled-table td {
    padding: 5px 10px;
    border: none;
}

    .styled-table td:first-child {
        position: sticky;
        right: 0;
        background-color: #f3f3f3;
    }

.styled-table tbody tr {
    border-bottom: 1px solid #dddddd;
}

    .styled-table tbody tr:nth-of-type(odd) td {
        background-color: #f3f3f3;
        color: #2020a9;
    }

    .styled-table tbody tr.active-row {
        font-weight: bold;
        color: #009879;
    }

#MyChart {
    height: 100vh;
    width: 100vw;
}

.table-responsive {
    height: 400px;
}

.EnNum {
    font-family: Arial, sans-serif;
    direction: ltr;
    unicode-bidi: plaintext;
}

.btn-UpDown {
    padding: 0.5rem 0.5rem;
    margin: -0.5rem 0 -0.5rem -0.5rem;
    box-sizing: content-box;
    width: 1em;
    height: 1em;
    padding: 0.25em 0.25em;
    color: #7f7f7f;
    background-color: #FFFFFF;
    border: none;
}

.modal-header .btn-close {
    padding: 0.5rem 0.5rem;
    margin: -0.5rem 0 -0.5rem -0.5rem;
}

@media (min-width: 390px) and (max-width: 768px) {
    .header_Right .Header_Logo {
        margin-right: 88px;
        width: 180px;
        height: 40px;
    }
}

@media (min-width: 100px) and (max-width:390px) {
    .header_Right .Header_Logo {
        margin-right: 0px;
        width: 100px;
        height: 25px;
    }
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

@media (min-width:576px) and (max-width:1163px) {
    .header_Left {
        margin-top: -28px;
    }

    .header_Right .Header_Logo {
        margin-right: 150px;
        width: 270px;
        height: 50px;
        margin-top: -49px;
    }
}

#Chart {
    width: 100%; /* Full width relative to the parent container */
    height: 400px; /* Set a default height */
    max-width: 100%; /* Prevent it from exceeding the container width */
}

@media screen and (max-width: 768px) {
    #Chart {
        height: 300px; /* Smaller height for smaller screens */
    }
}

@media screen and (max-width: 576px) {
    #Chart {
        height: 250px; /* Even smaller height for mobile devices */
    }
}

#loadingGif.hide {
    display: none; /* Default state */
}

#loadingGif.show {
    display: block;
}

#popupMenu {
    position: absolute;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    padding: 5px 0;
    z-index: 1000;
    /* 🔑 fix width problem */
    width: max-content; /* take the width of longest item */
    min-width: 150px; /* optional: nice minimum width */
    max-width: 250px; /* optional: prevent being too wide */
    white-space: nowrap; /* prevent text wrapping */
    display: none; /* hidden by default */
}

    #popupMenu a {
        display: block;
        padding: 8px 15px;
        text-decoration: none;
        color: #333;
        font-size: 14px;
    }

        #popupMenu a:hover {
            background: #f0f0f0;
        }



.user-icon {
    color: blue;
}

.imgShow {
    width: 250px;
    height: 200px;
}

.DateWidth {
    max-width: 117px;
}

.Height37 {
    height: 37px;
}

.btn-default {
    background-color: #fff;
    border: 1px solid #ccc;
    color: #333;
}

    .btn-default:hover {
        background-color: #e6e6e6;
        border-color: #adadad;
    }

/* === Put this AFTER bootstrap.rtl.min.css (or bootstrap.min.css) === */

/* 1) Always define the caret via Bootstrap's own variable */
/*.form-select {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='currentColor' viewBox='0 0 320 512'><path d='M143 352.3L7 216.3c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0L160 302.1l119-119.7c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9L177 352.3c-9.4 9.4-24.6 9.4-34 0z'/></svg>");
    background-repeat: no-repeat;
    background-position: right .75rem center;
    background-size: 1rem;
}

*/

/*.form-select {
    appearance: none;  remove default arrow 
    -webkit-appearance: none;
    -moz-appearance: none;
    position: relative;
    padding-right: 2rem;  space for arrow (LTR) 
}

    .form-select::after {
        content: "\f107";  fa-angle-down 
        font-family: "Font Awesome 5 Free";  or 6 
        font-weight: 900;
        position: absolute;
        right: 0.75rem;  use left: 0.75rem for RTL 
        top: 50%;
        transform: translateY(-50%);
        pointer-events: none;  don’t block clicks 
        color: #333;  change as needed 
    }*/

/* harmless paint nudge used by the script */
.form-select.form-select--redraw {
    transform: translateZ(0);
}

.top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}


.bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-wrap: wrap; /* allow wrapping */
    justify-content: center;
    align-items: center;
    padding: 5px 10px; /* give some space */
    background: lightgreen;
    height: auto; /* allow height to expand */
    line-height: normal; /* no fixed line height */
    font-weight: bold;
    gap: 10px; /* space between items */
}

.autoforcastMap {
    flex: 1;
    margin-top: -15px;
    height: 100% 
}

/* Button to position it in the top-right corner and bring it to the front */
#openModalBtn {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 1000; /* Higher value to bring it to the front */
}

/* Hamburger Button Styling */
.hamburger-btn {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 1000;
    /*background-color: transparent;*/
    /*background-color: #007bff;*/ /* Bootstrap primary color */
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: 5px;
}
 /* start: legends on map*/
.legendButton {
    position: fixed;
    bottom: 10px;
    left: 5px;
    z-index: 1000;
    width: 26px;
    height: 26px;
    background-color: #007bff;
    color: white;
    border: 1px solid black;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center; /* centers icon horizontally & vertically */
    padding: 0;
}
    .legendButton:hover {
        background-color: #0056b3; /* darker bootstrap primary hover color */
    }

.myTabContentCls {
    position: fixed;
    bottom: 0px;
    left: 30px;
    z-index: 1000;
   
    cursor: pointer;
    width: 280px;
    height: 140px;
    text-align: left; /* Align text to the left */
  
    border-radius: 5px;
}
.legendLabel {
    position: fixed;
    bottom: 110px;
    left: 30px;
    z-index: 1000;
    background-color: lightyellow;
    cursor: pointer;
    width: 280px;
    text-align: left; /* Align text to the left */
    border: 1px solid black;
    border-radius: 5px;
    direction:ltr;
}
.LatLongLabel {
    position: fixed;
    font-size: 16px;
    bottom: 80px;
    left: 30px;
    z-index: 1000;
    background-color: lightyellow;
    cursor: pointer;
    width: 235px;
    height: 26px;
    text-align: left; /* Align text to the left */
    border: 1px solid black;
    border-radius: 5px;
    direction: ltr;
}

.valueLabel {
    position: fixed;
    font-size: 16px;
    bottom: 80px;
    left: 265px;
    z-index: 1000;
    //background-color: lightyellow;
    color:white;
    background-color: black;
    cursor: pointer;
    width: 45px;
    height: 26px;
    text-align: left; /* Align text to the left */
    border: 1px solid black;
    border-radius: 5px;
    direction: ltr;
}

.opacityRange {
    position: fixed;
    bottom: 60px;
    left: 30px;
    z-index: 1000;
    background-color: lightyellow;
    cursor: pointer;
    width: 280px;
    text-align: left; /* Align text to the left */
    border: 1px solid black;
    border-radius: 5px;
}

.legend {
    position: fixed;
    bottom: 10px;
    left: 30px;
    z-index: 1000;
    /*background-color: transparent;*/
    /*background-color: #007bff;*/ /* Bootstrap primary color */
    border: 1px solid black;
    cursor: pointer;
    /*  padding: 10px;*/
    border-radius: 5px;
    width: 280px;
    height: 50px;
    /*object-fit: contain;*/ /* Ensure the image maintains its aspect ratio */
}
/* end: legends on map*/



.legendSize {
    width: 225px;
    height: 75px;
}
/* FontAwesome icon */
.hamburger-btn i {
    font-size: 30px;
    color: black; /* Adjust color of the icon */
}

#loadingGif {
    background: transparent url(/Images/Wait.gif) no-repeat center center;
    background-color: transparent;
    background-size: contain;
    height: 128px;
    width: 128px;
    position: fixed;
    z-index: 1000;
    left: 50%;
    top: 50%;
    margin: -30px 0 0 -30px;
    -webkit-animation: none;
    -moz-animation: none;
    animation: none;
    background-position: center center;
    background-size: cover;
    line-height: 1;
    text-align: center;
}

.same-width {
    flex: 1;
    min-width: 180px;
}

.textAlignLeft {
    text-align: left;
}
.textAlignCenter {
    text-align: center;
}
.hiddenCmnt {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

/* Visible state */
.visibleCmnt {
    max-height: 140px; /* choose a value large enough to fit content */
     
}
.hiddenSpc {
    
    display: none;
}

/* Visible state */
.visibleSpc {
    display: block;
    transition: max-height 0.4s ease;
}

/* Change cursor to default (arrow) when hovering over GeoJSON features */
.leaflet-interactive {
    cursor: default !important;
}
/* Change cursor to default (arrow) when hovering over the image overlay */
.leaflet-overlay-pane img {
    cursor: default !important;
}

/* bullet */
.label-bullet {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

    .label-bullet::before {
        content: "●";
        font-size: 1.4em; /* 🔹 اندازه بولت */
        line-height: 1;
    }
