/* Loading Indicator Styles for IR Library */
.loading-container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  padding: 60px 20px;
  text-align: center;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #26506c;
  border-radius: 50%;
  -webkit-animation: spin 1s linear infinite;
          animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

.loading-text {
  font-size: 16px;
  color: #666;
  font-weight: 500;
}

@-webkit-keyframes spin {
  0% {
    -webkit-transform: rotate(0deg);
            transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
            transform: rotate(360deg);
  }
}

@keyframes spin {
  0% {
    -webkit-transform: rotate(0deg);
            transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
            transform: rotate(360deg);
  }
}
/* Hide loading when data is loaded */
.data-loaded .loading-container {
  display: none;
}

/* Initially hide the data area until loaded */
.ir-library--content #divDataArea {
  display: none;
}

.data-loaded #divDataArea {
  display: block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .loading-container {
    padding: 40px 15px;
  }
  .loading-spinner {
    width: 40px;
    height: 40px;
    border-width: 3px;
  }
  .loading-text {
    font-size: 14px;
  }
}