@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #0057ff;
      --color-navy: #0b0f19;
      --color-rich-gold: #f5b942;
      --color-light-gray: #f5f6fa;
      --color-text-gray: #d0d0d0;
      --color-white: #ffffff;
}

/* Preloader Overlay */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background: var(--color-navy);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}

/* Loader Circles */
.loader {
  display: flex;
  gap: 10px;
}

.loader span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4e00ff, #09afff);
  animation: bounce 1.4s infinite ease-in-out;
}

.loader span:nth-child(2) {
  animation-delay: 0.2s;
}
.loader span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes bounce {
  0%, 80%, 100% {
    transform: scale(0.9);
    opacity: 0.5;
  }
  40% {
    transform: scale(1.3);
    opacity: 1;
  }
}

/* Hide on load */
.loaded #preloader {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

body {
    font-family: "Montserrat", sans-serif;
    background-color: var(--color-light-gray);
    color: #333;
}

header {
    display: flex;
}

.sidebar {
    height: 100vh;
    background-color: var(--color-white);
    border-right: 1px solid #e0e0e0;
    padding-top: 2rem;
    position: relative;
    left: 0;
}

.sidebar a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    margin-bottom: 10px;
}

.sidebar a:hover,
.sidebar a.active {
    background-color: var(--color-primary);
    color: white;
    border-radius: 0.5rem;
}

.main_content {
    padding: 0;
    overflow-y: auto;
    overflow-x: hidden;
    /* height: 100vh; */
}

.depositsContainer {
    max-width: 720px;
}

.investment-card {
  background: linear-gradient(145deg, #2c2c2c, #1c1c1c);
  color: white;
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s ease;
  padding: 1rem;
}

.investment-card.gold {
  background: linear-gradient(135deg, #FFD700aa, #f4c430cc);
}

.investment-card.auto {
  background: linear-gradient(135deg, #1976d2cc, #42a5f5aa);
}

.investment-card.crypto {
  background: linear-gradient(135deg, #6a1b9acc, #ab47bcaa);
}

.investment-card.oil {
  background: linear-gradient(135deg, #ff8f00cc, #ffb300aa);
}

.investment-card:hover {
  transform: translateY(-5px);
}

.investment-card img {
  height: 180px;
  object-fit: cover;
  width: 100%;
}

.investment-card .btn {
  border: 1px solid white;
}

.active-investments .card,
.completed-investments .card {
  background-color: #f9f9f9;
  border-radius: 12px;
}

.completed-investments .card {
  background-color: #e9ffe9;
}

.progress {
  height: 12px;
  border-radius: 10px;
  background-color: #ddd;
  margin-top: 10px;
  /* padding: 5px; */
}

.progress-bar {
  background-color: #0d6efd;

}


@media (max-width: 768px) {
    .sidebar {
         width: 240px;
        background-color: #fff;
        border-right: 1px solid #eaeaea;
        height: 100vh;
        position: fixed;
        top: 0;
        left: -240px;
        z-index: 1040;
        transition: all 0.3s ease;
    }

     .sidebar.show-sidebar {
        left: 0;
    }

    header {
        position: fixed;
        top: 0;
        right: 0;
        z-index: 10;
        width: 100%;
    }

    .main {
        margin: 5rem 0 2rem 0;
    }

    .userInvestments {
        margin-top: 3rem;
    }

}