/* 
* Preloader Styles
* Author: Suraj Gardi
*/

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-color);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s ease;
}

.loader {
  width: 50px;
  height: 50px;
  border: 4px solid var(--primary-color-light);
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loader-inner {
  position: absolute;
  width: 34px;
  height: 34px;
  border: 4px solid var(--primary-color-light);
  border-top: 4px solid var(--primary-color-dark);
  border-radius: 50%;
  top: 4px;
  left: 4px;
  animation: spin 0.8s linear infinite reverse;
}

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