

//////////////*Make foooter stick to the bottom line of window even if there is small amount of content on the web page!*/////////////
/* Ensure body and html take full height */ /* DOESN`T WORK FROM THIS FILE, BUT WORK DIRECTLY IN HTML!  */
/*html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}*/

/* Main content should expand to fill space */
.content {
    flex: 1;
}

/* Ensure footer sticks at the bottom */
#footer {
    margin-top: auto;
}

///////////////////////////////////////////////////////////////////////////////////////////


.card a:hover{
  background-color: #ddd;
}


/*Animation of glyphicon arrow; when our accordion not collapsed the arrow will rotate on 90 degree; when our accordion collapsed the arrow will stay without moving*/
.rotate-icon-90{
  transition: all 0.5s ease;
}
.collapsed .rotate-icon-90{
  transform: rotate(0deg);
}
.rotate-icon-90{
  /*transition: all 1.5s ease;*/
  transform: rotate(90deg);
}



.filter_dropdown_menu_block{
  /*max-height: 25vh;*/
  overflow: auto;
  white-space: nowrap;
}


/* Keyframes for scaling element in and out make a pulsating effect */
@keyframes scale-out {
  0% {
    transform: scale(0, 0);
    opacity: 0.3;
  }
  80% {
    transform: scale(1.2, 1.2); /* Settle back to 360 degrees */
    opacity: 1;
  }
  100% {
    transform: scale(1, 1); /* Settle back to 360 degrees */
  }
}


/*======================== ABOUT PAGES /*========================*/

/*animation when page starts for profile (account) icon*/
#logo_up2 {
  animation: scale-out 0.7s linear; forwards;
}

.table_tech_proc_param table tr th, .table_tech_proc_param table tr td{
  text-align: center;
}

.image-container_extracts_from_bgd img {
    width: 100%;
    height: auto;
    transition: filter 0.3s ease;
}

/* Hidden button initially */
.image-container_extracts_from_bgd button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid #007bff;
    color: #007bff;
    padding: 10px 20px;
    font-size: 1rem;
}

/* Blur effect on image hover and show button */
.image-container_extracts_from_bgd:hover img {
    filter: blur(4px);
}

.image-container_extracts_from_bgd:hover button {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

/*=====================================================================*/




/*/////////////////////////////////////////////////MAP HTML!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!*/


.station_info__map_block {
  width: 100%;
  height: 400px;
  border: 1px solid #2F4F4F;
  border-radius: 8px;
  z-index: 0;
  box-shadow: 0px 2px 4px 0px rgba(0,0,0,0.2);
}

/*align items in leaflet control layer basemaps*/
.station_info__map_block .leaflet-control-layers-base{
  display: flex;
  flex-direction: column;
  align-items: start;
}


.infoBlockMap {
/*  min-width: 170px;
  min-height: 70px;*/
  padding: 6px 8px;
  /* font: 14px/16px Arial, Helvetica, sans-serif; */
  background: white;
  background: rgba(255,255,255,0.8);
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
  border-radius: 5px;
}

.infoBlockMap h5 {
  margin: 0 0 5px;
  color: rgb(19, 19, 19);
}

.legendBlockMap {
  line-height: 18px;
  color: #555;
}
.legendBlockMap i {
  width: 13px;
  height: 13px;
  margin-top: 2px;
  float: left;
  margin-right: 8px;
  opacity: 0.7;
  border: 1.5px solid #000;
  border-radius: 100%;
}


/* style of datepicker in velocities sidebar on the map */
#reportrange1, #reportrange2{
  background: #fff; 
  cursor: pointer; 
  padding: 5px 10px; 
  border: 1px solid #ccc; 
  width: 100%
}


/* styles of sort arrows in table in velocities sidebar on the map */
.sort-btn {
  border: none;
  background: none;
  font-weight: bold;
  cursor: pointer;
}

.sort-icon {
  margin-left: 5px;
  font-size: 0.75rem;
  opacity: 0.6;
}

.sort-btn.active .sort-icon {
  opacity: 1;
}



/*//////////////////////////////////////////////////////////!STATION LIST PAGE!////////////////////////////////////////////////////////////////////////*/

/*.table-wrapper class is for django column shifter, .table-container class withouth django column shifter (in django tables2)*/
.station_ls_table_scroll .table-wrapper, .station_ls_table_scroll .table-container{
  overflow: auto;
}



/*This class is contained in views.py!!!*/
.table_st_ls_custom tbody tr:hover{
  background-color: #ddd;
}

.table_st_ls_custom{
  font-size: 12px;
  text-align: center;
}

.table_st_ls_custom tbody tr td {
    vertical-align: middle;
}

.table_st_ls_custom thead th{
  text-align: center;
}



@media (min-width: 768px) {
  #id_st_equipment__Receiver_type, #id_st_equipment__Antenna_type, #id_ntw_eng, #id_st_equipment__Receiver_manufacturer, #id_st_equipment__Antenna_manufacturer{
    margin: 0 2px 0 2px;
    width: 150px;
  }
}

/* width of filters in users list for admin! */
@media(min-width: 768px){
  #id_profile__network_name{
    width: 150px;
  }
}


/* overflow of table created with django tables2 (without column shifter)! OBSOLETE!*/
/*.overflow_table_scroll .table-container{
  overflow: auto;
}
*/

/*style for filters of django tables (for from-group! 'has-success' class is default class by django table for form group...) */
#filter_forms .form-group{
  margin-bottom: 2px;
}


/* change position of "visible columns" dropdown button in django tables */
.column-shifter-container .btn-group{
  position: absolute;
  top: -30px;
}



/*============================================= STYLE OF PAGE WITH STATION INFORMATION =============================================*/

/*...........*/
.choices__inner {
    font-size: 22px; /* Adjust the size as needed */
    font-weight: bold; /* Optional: Make the text bold */
}


.fixed-choices {
  position: fixed !important;
  top: 82px;
  z-index: 1000;
  /*background-color: #fff;*/
  width: 40% !important;
  box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

#fixed_height_for_choices{
  height: 81px;
}

@media (max-width: 768px) {
  .stationsDropdown{
    box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.2);
  }

  .fixed-choices{
    width: 96.1% !important;
  }

  .fixed-choices.networkDropdown{
    top: 126px;
    z-index: 999;
  }

  #fixed_height_for_choices{
    height: auto;
  }
}

@media (min-width: 1200px) {
  .fixed-choices{
    width: 30% !important;
  }
}


.panorama, .st_photos_all{
  border: 1px solid #2F4F4F;
  border-radius: 8px;
  box-shadow: 0px 2px 4px 0px rgba(0,0,0,0.2);
}

.image-container-for-users a {
    width: 100%; /* Bootstrap col width */
    height: 400px; /* Fixed height */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 8px;
    cursor: pointer; /* Clickable */
    transition: all 0.3s ease;
}

/* Image centered but keeping its original size */
.image-container-for-users img {
    position: absolute;
    max-width: 700px;
    max-height: auto;
    transition: all 0.3s ease;
}

/* next 3 styles for omiting white stripes from left and right side of the photo of 9:16 aspect ration */
@media (max-width: 768px) {
  .image-container-for-users img {
    max-width: 750px; 
  }
}
@media (min-width: 992px) {
  .image-container-for-users img {
    max-width: 500px;
  }
}
@media (min-width: 1800px) {
  .image-container-for-users img {
    max-width: 800px;
  }
}
@media (min-width: 2700px) {
  .image-container-for-users img {
    max-width: 900px;
  }
}


.image-container-for-users:hover img {
    transform: scale(1.1); /* Slight zoom */
}

/* Vignette effect on hover (applies to image, NOT button) */
.image-container-for-users a::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.7) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none; /* Ensures it doesn't block clicks */
}

/* Show vignette on hover */
.image-container-for-users a:hover::after {
    opacity: 1;
}


.pie_graphs{
  height: 270px;
  display: flex;
  align-items: center;
  overflow: auto;
}


/*styles of webkit (scrollbar!)*/
.pie_graphs::-webkit-scrollbar{
  width: 5px; /*for vertical scrollbar*/
  height: 5px; /*for horizontal scrollbar*/
}

.pie_graphs::-webkit-scrollbar-track{
  background-color: transparent;
}

.pie_graphs::-webkit-scrollbar-thumb{
  background-color: #d6dee1;
  border-radius: 20px;
  border: 6px solid transparent;
}

.pie_loading{
  display: block;
  position: absolute;
}

/*style of map on page with station info*/
#pieChartX, #pieChartY, #pieChartZ, #pieChartNorth, #pieChartEast, #pieChartUp{
  max-height: 270px;
}


#table_coord_diff tr th, #table_coord_diff tr td{
  vertical-align: middle !important;
}

.rotate_90{
  transform: rotate(-90deg);
  vertical-align: middle !important;
}

.nav-pills .nav-item .nav-link {
  border: 1px solid;
}

.nav-pills .nav-link{
  border-radius: 1rem;
}

.graphs_content{
  display: flex;
  height: 700px;
  align-items:center;
  justify-content: center;
  width: 100%;
}


/*=======================================================================================================================================*/


/*//////////////////////////////////////////STYLES OF NAV-TABS!!!/////////////////////////////////////////////*/

.tabs .nav-tabs{
  border-radius: 4px;
  margin-bottom: 15px;
}

.tabs .nav-tabs li.active a{background-color: white;}
.tabs .nav-tabs li.active:hover a{background-color: white;}

.tabs .nav-tabs li:hover, .tabs .nav-tabs li.active{border-top: 3px solid #483D8B;}

.tabs .nav-tabs li{
  background-color: #eee;
  border-bottom: none;
  border-left: 1px solid #C0C0C0;
  border-right: 1px solid #C0C0C0;
  border-top: 3px solid #C0C0C0;
  border-radius: 4px;
  margin-right: 1px;
}

.tabs .nav-tabs li a{
  margin-right: 0;
}



/* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! STYLE OF Stations deviation statistics GRAPHS !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! */
.chartjs-bar-graphs{
  height: 80vh;
  overflow: auto;
}

.chartjs-bar-graphs #chartjs-bar-graphs{
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.chartjs-bar-graphs #chartjs-bar-graphs .loaders{
  display: flex;
  align-items: center;
  justify-content: center;
}




/*======================== NOTIFICATIONS PAGES /*========================*/

/* Keyframes for the rotation with skid effect */
@keyframes rotate-skid {
  0% {
    transform: rotate(0deg);
  }
  40% {
    transform: rotate(-35deg);
  }
  80% {
    transform: rotate(35deg); /* Overshoot a bit to create the skid effect */
  }
  100% {
    transform: rotate(0deg); /* Settle back to 360 degrees */
  }
}

.rotate-trash:hover{
  /*font-size: 110%;*/
  animation: rotate-skid .3s linear forwards;
}

/*============================================================*/




/*======================== PROFILE PAGE /*========================*/

#accordion_st .card-header:hover, #accordion_st .card-body a:hover {
  background-color: #ddd;
}

#formBlockChangePass{
  display: none;
}


/*animation when page starts for profile (account) icon*/
#account_icon_2 {
  animation: scale-pulse .5s ease-in-out; forwards;
}

/* Keyframes for scaling element in and out make a pulsating effect */
@keyframes scale-pulse {
  0% {
    transform: scale(1, 1);
  }
  50% {
    transform: scale(0.8, 0.8); /* Overshoot a bit to create the skid effect */
  }
  80% {
    transform: scale(1.2, 1.2); /* Settle back to 360 degrees */
  }
  100% {
    transform: scale(1, 1); /* Settle back to 360 degrees */
  }
}



/*======================== REGISTRATION PAGE /*========================*/

.hidden_input_reg, input[type=file].hidden_input_reg {
  display: none;
}



/*=====================================================================*/





/* ======================== STYLEs FOR POSTPROCESSING ======================== */

.custom-file-input:hover{
  cursor: pointer;
}

.progress-bar {
  background-color: #337ab7; /* Bootstrap primary color */
  color: #fff;
}

/*=====================================================================*/





/* ======================== ADMIN PAGES ======================== */



/* Base styles for the status indicator */
.spider-status-indicator {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 25px;
  color: green; /* Default color */
  transition: all 0.3s ease; /* Smooth transition */
  z-index: 1000;
}

/* Media query for smaller screens */
@media screen and (max-width: 768px) {
  .spider-status-indicator {
    font-size: 20px; /* Adjusted font size for smaller screens */
  }
  #spider-status-indicator-title{
    font-size: 10px;
  }
}

/* Additional styles for the status symbol */
.spider-status-symbol {
  width: 80%;
  height: 80%;
  border-radius: 50%;
  background-color: inherit;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

/* Colors based on status */
.spider-status-indicator.online .spider-status-symbol {
  color: green;
}

.spider-status-indicator.offline .spider-status-symbol {
  color: red;
}





/* ======================== SPIDER MAP ======================== */


/* !!! also ca be used on the other maps !!! */
.map-sidebar-head{ 
    position: sticky;
    top: 0px;
    background-color: white;
    z-index: 999;
    height: 95px;
    border-bottom: 1px solid #c2c0c0;
    padding-top: 1rem;
    margin-bottom: .75rem;
}

.map-sidebar-head-velocities{
  height: 300px;
}


@media (min-width: 418px) and (max-width: 767px) {
  .map-sidebar-head-velocities {
    height: 270px;
  }
}

@media(min-width: 1200px){
  .map-sidebar-head-velocities{
    height: 270px;
  }
}



/*!!! also ca be used on the other maps !!!*/
#filter-pretty-checkboxes{
  display: block;
  margin-right: 7px;
}

/*!!! also ca be used on the other maps !!!*/
#filter-pretty-checkboxes .filter-pretty-checkboxes-flex{
  display: flex;
  flex-direction: row;
}

/* !!! also ca be used on the other maps !!! */
#filter-pretty-checkboxes .p-switch{
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 1px 1px 0px 5px;
  padding: 0px 20px 5px 0px;
}

/* !!! also ca be used on the other maps !!! */
#filter-pretty-checkboxes label{
  cursor: pointer;
}

/* !!! also ca be used on the other maps !!! */
.filter-pretty-checkboxes-hover{
  border-radius: .2rem;
}

/* !!! also ca be used on the other maps !!! */
.filter-pretty-checkboxes-hover:hover{
  background-color: #ddd;
}


/* !!! also ca be used on the other maps !!! */
#map_filters_btn,
#map_velocities_btn{
  width: 110px;
  border: 2px solid #c2c0c0;
  border-radius: 5px;
}

.clusteringBlock{
  width: 110px;
}


/*================================================*/



/* ======================== STATISTICS STATION TABLE ======================== */

/* export button spinner (loader) */

#loader_btn {
  display: none;
  width: 20px;
  height: 20px;
}



/* dropdown menu in statistics station table */

.choices__inner {
  max-height: 40px;
  text-align: justify;
  overflow: auto !important;

}

.choices{
  width: 100%;
}

.choices__list--dropdown, .choices__list[aria-expanded]{
  z-index: 1000 !important;
}

.choices__item.choices__item--choice.choices__item--selectable{
  text-align: left;
}

/*=====================================================================*/




/* ======================== SPIDER COORDINATES TABLE ======================== */
/* sticky of the table head */
#TableSpdCoordinatesStations_columns .table-wrapper .table thead {
    position: sticky;
    top: -1px;
    z-index: 3;  /* Ensure it stays above other cells */
    background-color: white; /* Adjust as needed */
    box-shadow: 5px 0px 10px rgba(0, 0, 0, 0.3); /* Optional shadow effect */
}


/* sticky of table first column with stations id (name))  */
#TableSpdCoordinatesStations_columns .table-wrapper .table th:first-child,
#TableSpdCoordinatesStations_columns .table-wrapper .table td:first-child {
    position: sticky;
    left: -1px;
    z-index: 2;  /* Ensure it stays above other cells */
    background-color: white; /* Adjust as needed */
    box-shadow: 5px 0px 10px rgba(0, 0, 0, 0.3);  /* Optional shadow effect */
}
/*=====================================================================*/



/*=================== STATION CONFIG PAGE FOR ADMIN  =================*/

.image-container {
    width: 100%; /* Bootstrap col width */
    height: 150px; /* Fixed height */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 8px;
    cursor: pointer; /* Clickable */
    transition: all 0.3s ease;
}

/* Image centered but keeping its original size */
.image-container img {
    position: absolute;
    max-width: 250px;
    max-height: auto;
    transition: all 0.3s ease;
}

.image-container:hover img {
    transform: scale(1.1); /* Slight zoom */
}

/* Hidden checkbox */
.image-checkbox {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Show checkbox on hover */
.image-container:hover .image-checkbox {
    opacity: 1;
}

/* When clicked, checkbox appears checked */
.image-checkbox:checked {
    opacity: 1;
}

/* Vignette effect on hover (applies to image, NOT button) */
.image-container::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.7) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none; /* Ensures it doesn't block clicks */
}

/* Show vignette on hover */
.image-container:hover::after {
    opacity: 1;
}

/* Download button */
.download-btn {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    /* Light background for visibility */
/*    background-color: rgba(255, 255, 255, 0.8); */
    border-radius: 30%;
    padding: 5px 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2; /* Ensure it's above vignette */
}

/* Show button on hover */
.image-container:hover .download-btn {
    opacity: 1;
}


/*=====================================================================*/

