/*
 * Copyright (c) 2024 Biovisuals Private Limited
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of Biovisuals Private Limited.
 * You shall not disclose such Confidential Information and shall use it only
 * in accordance with the terms of the license agreement you entered into with Biovisuals Private Limited.
 */

/* Fix to ensure the canvas container gets enough space */
.app {
    display: flex;
    flex-direction: column;
    height: 100vh;
  }
  
  /* Allow full page scrollability */
  html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
  }
  

.auth-invalid {
    display: none;
}



.fw-500 {
    font-weight: 500 !important;
}

#data-save-container.active .data-saved {
    display: none;
}

.data-save {
    display: none;
}

#data-save-container.active .data-save {
    display: block;
}

/* --------------context Menu-------------------------------- */
.context-menu {
    display: none;  /* Hidden by default */
    position: absolute;
    background: white;
    border: 1px solid #ccc;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
    z-index: 1000;
    width: 150px;
    border-radius: 5px;
}

.context-menu ul {
    list-style: none;
    padding: 5px;
    margin: 0;
}

.context-menu ul li {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
}

.context-menu ul li:hover {
    background-color: #eee;
}

.disabled {
    color: gray;
    pointer-events: none;
    opacity: 0.5;
}



.spinner-border {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    vertical-align: -0.125em;
    border: 0.25em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    -webkit-animation: 0.75s linear infinite spinner-border;
    animation: 0.75s linear infinite spinner-border;
  }
  
  @keyframes spinner-border {
    to {
      transform: rotate(360deg); /* rtl:ignore */
    }
  }

  .d-none {
    display: none !important;
  }

/* Layer Manager Styles */
#layerControls {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 10px;
  margin: 10px 0;
}

#layerControls h3 {
  margin: 0 0 10px 0;
  font-size: 14px;
  color: #495057;
}

#layerList {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 300px;
  overflow-y: auto;
}

#layerList li {
  padding: 5px;
  margin: 2px 0;
  border-radius: 4px;
  display: flex;
  align-items: center;
  font-size: 12px;
  background: white;
  border: 1px solid #e9ecef;
}

#layerList li:hover {
  background: #e9ecef;
}

#layerList li button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 12px;
  padding: 2px 4px;
  border-radius: 3px;
}

#layerList li button:hover {
  background: #dee2e6;
}

.group-layer {
  font-weight: bold;
  background: #e3f2fd !important;
}

.expand-toggle {
  cursor: pointer;
  user-select: none;
  margin-right: 5px;
}

.nested {
  list-style: none;
  padding-left: 20px;
  margin: 5px 0;
}

.nested li {
  background: #f8f9fa;
  border-left: 2px solid #dee2e6;
}




/* Overlay */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  text-align: center;
}

/* Loader container */
.bio-simple-loader {
  position: relative;
  width: 90px;
  height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Rings */
.ring {
  position: absolute;
  border-radius: 50%;
  border-style: solid;
}

/* Outer ring – Deep Orange */
.outer-ring {
  width: 90px;
  height: 90px;
  border-width: 3px;
  border-color: #FF6F00 transparent #FF6F00 transparent;
  animation: spinClockwise 1.2s linear infinite;
}

/* Inner ring – Light Orange */
.inner-ring {
  width: 60px;
  height: 60px;
  border-width: 3px;
  border-color: transparent #FFA726 transparent #FFA726;
  animation: spinCounter 1.6s linear infinite;
  opacity: 0.9;
}

/* Smooth rotations */
@keyframes spinClockwise {
  to { transform: rotate(360deg); }
}

@keyframes spinCounter {
  to { transform: rotate(-360deg); }
}

/* Text */
.loader-text {
  margin-top: 110px;
  font-size: 15px;
  font-weight: 600;
  color: #5A2E00; /* deep brownish-orange */
}
/* Smooth BioVisuals progress bar */
.bv-upload-progress {
  width: 120px;
  height: 6px;
  background: rgba(255, 111, 0, 0.18); /* light orange */
  border-radius: 6px;
  margin-top: 18px;
  overflow: hidden;
}

.bv-upload-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #FF6F00, #FFA726);
  border-radius: 6px;
  transition: width 0.25s ease-out;
}
