/* Import Lato Fonts */
@import url("fonts.css");

/* ========================================================================== */
/*                                Theme Variables                             */
/* ========================================================================== */

/* Light Mode */
:root {
  margin: 0;
  padding: 0;
  box-sizing: border-box;

  --primary: #525BE5; /*Buttons, active elements, highlights*/
  --primary-dark: #3f47b5; /*Hover states, shadows, dark text accents*/
  --primary-light: #6b74f0; /*Background glows, hover glow, subtle highlights*/
  --glass-bg: rgba(255,255,255,0.18); /*Frosted backgrounds, overlays, glass blur base*/
  --card-bg: rgba(255, 255, 255);
  --glass-border: rgba(83, 92, 229, 0.25); /*Card backgrounds in light mode*/
  --background: #f8f9ff; /*Card backgrounds in light mode*/
  --primary-text : #1a1a1a; /*Text color, default*/
  --secondary-text: #4a4a4a; /*Text color, default*/
  --sidebar: #ffffff;
}

/* Dark Mode */
[data-bs-theme="dark"] {
  --primary: #525BE5;
  --primary-dark: #3f47b5;
  --primary-light: #6b74f0;
  --glass-bg: rgba(20, 23, 55, 0.4);
  --card-bg: rgba(20, 23, 55);
  --glass-border: rgba(83, 92, 229, 0.4);
  --background: #12142b;
  --primary-text : #e0e0ff;
  --secondary-text: #b0b3d1;
  --sidebar: #1b1e3b;
}

/* Body background */
body {
  background-color: var(--background);
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}

body.fade-in {
  opacity: 1;
}
.primary-text {
  color: var(--primary-text );
}
.primary-text:focus {
  color: var(--primary-text );
}

.custom-card {
  background-color: var(--card-bg)!important;
  color: var(--primary-text )!important; 
}

.custom-icon{
  color: var(--primary-text );
}

.custom-icon:hover{
  color: var(--primary);
}

.custom-button{
  background-color: var(--primary);
  color: white;
}

.custom-button:hover{
  background-color: var(--primary-dark);
  color: white;
}

/* ========================================================================== */
/*                                Glass Card Styles                           */
/* ========================================================================== */
.glass-card {
  position: relative;
  display: block;
  padding: 0.25rem;
  border-radius: 15px;
  overflow: hidden;
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  background-color: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--primary-text );
  box-shadow: 0 8px 32px rgba(83, 92, 229, 0.1);
  transition: all 0.3s ease;
  height: 100%;
}

/* Dark variant for dark theme */
[data-bs-theme="dark"] .glass-card {
  background-color: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--primary-text );
  box-shadow: 0 8px 32px rgba(83, 92, 229, 0.4);
}

/* Hover effects */
.glass-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 50px rgba(83, 92, 229, 0.2);
}

/* Animated Background */
.background {
  position: fixed;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  z-index: -1;
  overflow: hidden;
  opacity: 0.1;
}

.ball {
  position: absolute;
  width: 20vmin;
  height: 20vmin;
  border-radius: 50%;
  backface-visibility: hidden;
  animation: move linear infinite;
  pointer-events: none;
}

.ball:nth-child(odd) {
  color: #006d5b;
}

.ball:nth-child(even) {
  color: #ff6f61;
}

@keyframes move {
  100% {
    transform: translate3d(0, 0, 1px) rotate(360deg);
  }
}

/* Ball positions and animations */
.ball:nth-child(1) {
  top: 77%;
  left: 88%;
  animation-duration: 40s;
  animation-delay: -3s;
  transform-origin: 16vw -2vh;
  box-shadow: 40vmin 0 5.7vmin currentColor;
}

.ball:nth-child(2) {
  top: 42%;
  left: 2%;
  animation-duration: 53s;
  animation-delay: -29s;
  transform-origin: -19vw 21vh;
  box-shadow: -40vmin 0 5.17vmin currentColor;
}

.ball:nth-child(3) {
  top: 28%;
  left: 18%;
  animation-duration: 49s;
  animation-delay: -8s;
  transform-origin: -22vw 3vh;
  box-shadow: 40vmin 0 5.24vmin currentColor;
}

.ball:nth-child(4) {
  top: 50%;
  left: 79%;
  animation-duration: 26s;
  animation-delay: -21s;
  transform-origin: -17vw -6vh;
  box-shadow: 40vmin 0 5.27vmin currentColor;
}

.ball:nth-child(5) {
  top: 46%;
  left: 15%;
  animation-duration: 36s;
  animation-delay: -40s;
  transform-origin: 4vw 0vh;
  box-shadow: -40vmin 0 5.96vmin currentColor;
}

.ball:nth-child(6) {
  top: 77%;
  left: 16%;
  animation-duration: 31s;
  animation-delay: -10s;
  transform-origin: 18vw 4vh;
  box-shadow: 40vmin 0 5.17vmin currentColor;
}

.ball:nth-child(7) {
  top: 22%;
  left: 17%;
  animation-duration: 55s;
  animation-delay: -6s;
  transform-origin: 1vw -23vh;
  box-shadow: -40vmin 0 5.7vmin currentColor;
}

.ball:nth-child(8) {
  top: 41%;
  left: 47%;
  animation-duration: 43s;
  animation-delay: -28s;
  transform-origin: 25vw -3vh;
  box-shadow: 40vmin 0 5.19vmin currentColor;
}

/* ========================================================================== */
/*                                   Header                                   */
/* ========================================================================== */

header {
  background-color: var(--sidebar) !important;
  color: var(--primary-text );
  height: 63px;
}

.logo {
  max-width: 239px;
}

.dropdown-toggle::after {
  display: none !important;
}

.icon {
  cursor: pointer;
}

.icon-badge {
  position: absolute;
  top: -7px;
  right: -7px;
  width: 14px;
  height: 14px;
  background: #fb5454;
  color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 1px;
  padding-right: 1px;
  border-radius: 50%;
  font-size: 10px;
}

.dropdown-list {
  width: 300px;
}

.avatar {
  height: 30px;
  width: 30px;
}

/* .dropdown-position{
  margin-top: 9px !important;
} */

.language-dropdown{
  margin-top: 12px !important;
}

.notification-dropdown{
  margin-top: 9px !important;
}

.message-dropdown{
  margin-top: 9px !important;
}

.user-dropdown{
  margin-top: 8px !important;
}

.breadcrumb-menu {
  color: var(--primary-text );
}
.breadcrumb-menu:hover {
  color: #7E42C2;
}

/* General chart text */
.apexcharts-text,
.apexcharts-legend-text,
.apexcharts-legend-series,
.apexcharts-title-text,
.apexcharts-yaxis-title-text,
.apexcharts-xaxis-title-text {
  fill: var(--primary-text) !important;
  font-size: 14px;
}



/* ========================================================================== */
/*                                   Sidebar                                  */
/* ========================================================================== */
.sidebar {
  background-color: var(--sidebar) !important;
  width: 250px;
  top: 63px;
  z-index: 99;
  transition: width 0.3s;
  overflow-y: auto;
  color: var(--primary-text ) !important;
}

.sidebar::-webkit-scrollbar {
  width: 0px;
}

.sidebar .nav-link {
  color: var(--primary-text );
  font-size: 18px;
}

.sidebar .menu-icon{
  font-size: 22px;
  padding-right: 15px;
  padding-left: 7px;
}
.sidebar .nav-link:hover {
  color: var(--primary-text) ;
  border-radius: 8px;
}

.sidebar .nav-link.active {
  font-weight: 500;
}

.sidebar .nav-item > .nav-link.active {
  background-color: #7E42C2;
  color: white;
  border-radius: 0px 10px 10px 0px;
  margin: 0;
}


/* .sidebar nav ul li ul li a.nav-link.active{
  color: var(--primary-text);
} */
/* .sidebar nav ul li ul li a.nav-link{
  color: var(--secondary-text);
} */

/* .sidebar .submenu.collapse .nav-link.active {
  background-color: transparent;
  color: var(--primary-text);
  border-right: 2px solid var(--primary-dark);
} */

.sidebar .nav-link .arrow {
  transition: transform 0.3s;
}

.sidebar .nav-link[aria-expanded="true"] .arrow {
  transform: rotate(90deg);
}

.sidebar.collapsed {
  width: 60px;
}

.sidebar.collapsed:hover {
  width: 250px;
}

.main-content {
  margin-left: 250px;
  margin-top: 70px;
  transition: margin-left 0.3s;
  overflow: hidden;
}

.main-content.collapsed {
  margin-left: 60px;
}
/* Mobile styles */
@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;

    width: 250px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1050;
    display: block;
  }
  .main-content,
  .main-content.collapsed {
    margin-left: 0 !important;
  }

  .sidebar.show {
    transform: translateX(0);
  }

  .overlay {
    position: fixed;
    top: 0;
    left: 250px;
    background-color: rgba(0, 0, 0, 0.7);
    width: calc(100% - 250px);
    height: 100%;
    z-index: 1040;
    display: none;
  }

  .overlay.show {
    display: block;
  }
  .desktop-logo {
    display: none;
  }
 
}
 .mobile-logo {
    width: 40px;
  }
/* ========================================================================== */
/*                                   Footer                                   */
/* ========================================================================== */

.footer {
  background-color: var(--sidebar);
  transition: margin-left 0.3s;
}

/* ========================================================================== */
/*                               Utility Classes                              */
/* ========================================================================== */
.custom-shape {
  position: relative;
  left: calc(50% + 3rem);
  transform: translateX(-50%);
  width: 36rem;
  aspect-ratio: 1155 / 678;
  background: linear-gradient(to top right, #ff80b5, #9089fc);
  opacity: 0.3;
  clip-path: polygon(
    74.1% 44.1%,
    100% 61.6%,
    97.5% 26.9%,
    85.5% 0.1%,
    80.7% 2%,
    72.5% 32.5%,
    60.2% 62.4%,
    52.4% 68.1%,
    47.5% 58.3%,
    45.2% 34.5%,
    27.5% 76.7%,
    0.1% 64.9%,
    17.9% 100%,
    27.6% 76.8%,
    76.1% 97.7%,
    74.1% 44.1%
  );
}

.message-dropdown {
  width: 320px;
}
.avatar {
  width: 50px;
  height: 50px;
}

.badge-custom {
  border-radius: 20px;
  padding: 5px 10px;
  font-weight: 500;
  font-size: 12px;
}

.product-img {
  width: 40px;
  height: 40px;
  border-radius: 6px;
}

.product-title {
  margin-bottom: 0;
  font-weight: 500;
}

.product-subtitle {
  color: #6c757d;
  font-size: 12px;
}

.back-to-top-btn {
  background-color: #7D42C2;
}

.back-to-top-btn:hover {
  background-color: var(--primary-dark);
}
/* ========================================================================== */
/*                                Widget page                                 */
/* ========================================================================== */
.border-color1 {
  border-top: 4px solid blue;
}

.progress-bar-height {
  height: 5px;
}
/* ========================================================================== */
/*                               Avatar Page                                  */
/* ========================================================================== */
.avatar-img {
  border: 2px solid white;
}
.avatar-img-sm {
  width: 32px;
  height: 32px;
}
.avatar-img-md {
  width: 48px;
  height: 48px;
}
.avatar-img-lg {
  width: 64px;
  height: 64px;
}
.avatar-img-xl {
  width: 80px;
  height: 80px;
}
.avatar-img-xxl {
  width: 96px;
  height: 96px;
}
.avatar-indicator {
  position: absolute;
  bottom: 0;
  right: 0;
  transform: translate(10%, 10%);
}
/* ========================================================================== */
/*                        Product detail page                                 */
/* ========================================================================== */
.sm-product {
  height: 75px;
  width: 110px;
}
/* ========================================================================== */
/*                                  Card page                                 */
/* ========================================================================== */
.card-img {
  height: 30px;
  width: 30px;
  margin-left: -5px;
}

.bg-img1 {
  background-image: url("../images/cards/9.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
  opacity: 0.9;
  color: white;
}
.bg-img2 {
  background-image: url("../images/cards/10.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
  opacity: 0.9;
  color: white;
}
.bg-img3 {
  background-image: url("../images/cards/11.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
  opacity: 0.9;
  color: white;
}
/* ========================================================================== */
/*                               Contact page                                 */
/* ========================================================================== */
.profile.card {
  margin-top: -100px;
}

.circle-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* ========================================================================== */
/*                             Marketing page                                 */
/* ========================================================================== */
.vertical-bar-1 {
  width: 4px;
  height: 10px;
}
.vertical-bar-2 {
  width: 4px;
  height: 18px;
}
.vertical-bar-3 {
  width: 4px;
  height: 14px;
}
.vertical-bar-4 {
  width: 4px;
  height: 22px;
}
.vertical-bar-5 {
  width: 4px;
  height: 16px;
}
.vertical-bar-6 {
  width: 4px;
  height: 20px;
}
/* ========================================================================== */
/*                               Profile page                                 */
/* ========================================================================== */
ul.timeline {
  list-style-type: none;
  position: relative;
}
ul.timeline:before {
  content: " ";
  background: #d4d9df;
  display: inline-block;
  position: absolute;
  left: 29px;
  width: 2px;
  height: 100%;
  z-index: 400;
}
ul.timeline > li {
  margin: 20px 0;
  padding-left: 20px;
}
ul.timeline > li:before {
  content: " ";
  background: white;
  display: inline-block;
  position: absolute;
  border-radius: 50%;
  border: 3px solid #22c0e8;
  left: 20px;
  width: 20px;
  height: 20px;
  z-index: 400;
}
/* ========================================================================== */
/*                               Product page                                 */
/* ========================================================================== */
.img-zoom:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

/* ========================================================================== */
/*                        Product detail page                                 */
/* ========================================================================== */
.product-image {
  max-height: 400px;
  object-fit: cover;
}
.thumbnail {
  width: 80px;
  height: 80px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}
.thumbnail:hover,
.thumbnail.active {
  opacity: 1;
}

/* ========================================================================== */
/*                                Avatar Stack                                */
/* ========================================================================== */
.avatar-stack {
  position: relative;
  display: flex;
  justify-content: center;
}

.avatar-stack .avatar-img {
  width: 50px;
  height: 50px;
  border-radius: 100%;
  background: #fff;
  border: 3px solid #b9b9b9;
  margin-left: -25px;
  overflow: hidden;
}

.avatar-stack .avatar-img:first-child {
  z-index: 1;
}
.avatar-stack .avatar-img:nth-child(2) {
  z-index: 2;
}
.avatar-stack .avatar-img:nth-child(3) {
  z-index: 3;
}
.avatar-stack .avatar-img:nth-child(4) {
  z-index: 4;
}
.avatar-stack .avatar-img img {
  object-fit: contain;
  height: 100%;
  object-position: left;
}

/* ========================================================================== */
/*                            Avatar Stack Hover                              */
/* ========================================================================== */
.avatar-stack-hover {
  position: relative;
  display: flex;
  justify-content: center;
}

.avatar-stack-hover .avatar-img {
  width: 50px;
  height: 50px;
  border-radius: 100%;
  background: #fff;
  border: 3px solid #b9b9b9;
  margin-left: -5px;
  overflow: hidden;
}

.avatar-stack-hover .avatar-img:first-child {
  z-index: 1;
}
.avatar-stack-hover .avatar-img:nth-child(2) {
  z-index: 2;
}
.avatar-stack-hover .avatar-img:nth-child(3) {
  z-index: 3;
}
.avatar-stack-hover .avatar-img:nth-child(4) {
  z-index: 4;
}

.avatar-stack-hover .avatar-img img {
  object-fit: contain;
  height: 100%;
  object-position: left;
}

.avatar-stack-hover:hover .avatar-img {
  margin-right: 10px;
}


/* ========================================================================== */
/*                            Validation page                                 */
/* ========================================================================== */
#validationForm .form-control:valid {
  border-color: #198754;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

#validationForm .form-control:invalid,
#validationForm .form-check-input:invalid {
  border-color: #dc3545;
}

#validationForm .form-control:focus:invalid {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

#validationForm .form-control:focus:valid {
  border-color: #198754;
  box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.25);
}

#validationForm .form-check-input:valid {
  border-color: #198754;
  background-color: #198754;
}

#validationForm .form-check-input:invalid {
  border-color: #dc3545;
}