@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap');

@media (prefers-color-scheme: light) {
  .grid-container-small-widgets {
    justify-content: space-between;
    display: grid;
    margin: auto;
    margin-left: auto;
    margin-right: auto;
    gap: auto;
    width: 96%;
    grid-template-columns: auto auto auto auto;
    padding: auto;
  }

  .grid-container-large-widgets {
    justify-content: space-between;
    display: grid;
    margin: auto;
    margin-left: auto;
    margin-right: auto;
    gap: auto;
    width: 96%;
    grid-template-columns: auto auto auto;
    padding: auto;
  }

  .grid-container-chart {
    justify-content: space-between !important;
    display: grid;
    margin: auto;
    gap: auto;
    width: 96%;
    grid-template-columns: auto auto;
    padding: auto;
  }

  .grid-container-list {
    display: grid;
    margin: auto;
    gap: 20px;
    width: auto;
    grid-template-columns: auto;
    padding: 10px;
  }

  .small-widget {
    max-height: 140px;
    height: auto;
    min-width: 220px;
    width: auto;
    max-width: 270px;
    margin: auto;
    margin-top: 25px;
    margin-bottom: 25px;
    padding: 25px;
    color: #006eff;
    border-radius: 20px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-top: 30px;
    margin-right: auto;
    margin-left: auto;
    background: url("../img/pattern-light.png") center repeat;
    background-size: contain;
    -webkit-animation: backgroundScroll 60s linear infinite;
    animation: backgroundScroll 60s linear infinite;
    background-color: rgb(245, 250, 255);
  }

  .small-widget h2 {
    text-align: left;
    margin: 4px;
    font-size: 15px;
    margin-bottom: 25px;
  }

  .small-widget p {
    margin: 4px;
    text-align: left;
    font-size: 22px;
    color: #2f2c38;
    margin-bottom: auto;
  }

  .small-widget span {
    margin: 0px;
    font-weight: bold;
    text-align: left;
  }

  #widget-icon {
    font-size: 38px;
  }

  .large-widget {
    max-height: 260px;
    height: auto;
    min-width: 250px;
    width: auto;
    max-width: 320px;
    margin: auto;
    margin-top: 25px;
    margin-bottom: 25px;
    padding: 25px;
    color: #ffffff;
    border-radius: 20px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-right: auto;
    margin-left: auto;
    background: url("../img/widget-light.png") center repeat;
    background-size: contain;
    -webkit-animation: backgroundScroll 60s linear infinite;
    animation: backgroundScroll 60s linear infinite;
    background-color: #ffffff;
  }

  .large-widget :hover {
    color: #8dabff;
  }

  .large-widget h2 {
    text-align: center;
    margin: 0;
    font-size: 18px;
    margin-bottom: 25px;
  }

  .large-widget p {
    margin: 8px;
    font-size: 13px;
    color: #e3f1ff;
    margin-bottom: auto;
  }

  .large-widget span {
    font-weight: bold;
  }

  .chart-box {
    height: 360px;
    width: 460px;
    margin: auto;
    margin-left: auto;
    margin-right: auto;
    margin-top: 25px;
    margin-bottom: 25px;
    padding: 25px;
    background: url("../img/pattern-light.png") center repeat;
    background-size: contain;
    -webkit-animation: backgroundScroll 60s linear infinite;
    animation: backgroundScroll 60s linear infinite;
    background-color: rgb(245, 250, 255);
    color: #006eff;
    border-radius: 20px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
  }

  .chart-box span {
    font-weight: bold;
  }

  .chart-box .icon {
    font-size: 25px;
    margin: auto;
    margin-bottom: auto;
    margin-top: 10px;
    font-weight: 600;
    color: #006eff;
    text-align: left;
  }
}

@media (prefers-color-scheme: dark) {
  .grid-container-small-widgets {
    justify-content: space-between;
    display: grid;
    margin: auto;
    margin-left: auto;
    margin-right: auto;
    gap: auto;
    width: 96%;
    grid-template-columns: auto auto auto auto;
    padding: auto;
  }

  .grid-container-large-widgets {
    justify-content: space-between;
    display: grid;
    margin: auto;
    margin-left: auto;
    margin-right: auto;
    gap: auto;
    width: 96%;
    grid-template-columns: auto auto auto;
    padding: auto;
  }

  .grid-container-chart {
    justify-content: space-between;
    display: grid;
    margin: auto;
    gap: auto;
    width: 96%;
    grid-template-columns: auto auto;
    padding: auto;
  }

  .grid-container-list {
    display: grid;
    margin: auto;
    gap: 20px;
    width: auto;
    grid-template-columns: auto;
    padding: 10px;
  }

  .small-widget {
    max-height: 140px;
    height: auto;
    min-width: 220px;
    width: auto;
    max-width: 270px;
    margin: auto;
    margin-top: 25px;
    margin-bottom: 25px;
    padding: 25px;
    color: #8FBFFF;
    border-radius: 20px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-right: auto;
    margin-left: auto;
    background: url("../img/pattern-dark.png") center repeat;
    background-size: contain;
    -webkit-animation: backgroundScroll 60s linear infinite;
    animation: backgroundScroll 60s linear infinite;
    background-color: #000000;
  }

  .small-widget h2 {
    text-align: left;
    margin: 4px;
    font-size: 15px;
    margin-bottom: 25px;
  }

  .small-widget p {
    margin: 4px;
    text-align: left;
    font-size: 22px;
    color: #ffffff;
    margin-bottom: auto;
  }

  .small-widget span {
    margin: 0px;
    font-weight: bold;
    text-align: left;
  }

  #widget-icon {
    font-size: 38px;
  }

  .large-widget {
    max-height: 260px;
    height: auto;
    min-width: 250px;
    width: auto;
    max-width: 320px;
    margin: auto;
    margin-top: 25px;
    margin-bottom: 25px;
    padding: 25px;
    transition: all 0.3s ease;
    margin-right: auto;
    margin-left: auto;
    background: url("../img/box-dark.png") center repeat;
    background-size: contain;
    -webkit-animation: backgroundScroll 60s linear infinite;
    animation: backgroundScroll 60s linear infinite;
    background-color: #8FBFFF;
    color: #23004b;
    border-radius: 20px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
  }

  .large-widget :hover {
    color: #3365b1;
  }

  .large-widget h2 {
    text-align: center;
    margin: 0;
    font-size: 18px;
    margin-bottom: 25px;
  }

  .large-widget p {
    margin: 8px;
    font-size: 13px;
    color: #12002b;
    margin-bottom: auto;
  }

  .large-widget span {
    font-weight: bold;
  }

  .chart-box {
    height: 360px;
    width: 460px;
    margin: auto;
    margin-top: 25px;
    margin-bottom: 25px;
    margin-left: auto;
    margin-right: auto;
    padding: 25px;
    background: url("../img/pattern-dark.png") center repeat;
    background-size: contain;
    -webkit-animation: backgroundScroll 60s linear infinite;
    animation: backgroundScroll 60s linear infinite;
    color: #8FBFFF;
    background-color: #000000;
    border-radius: 20px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
  }

  .chart-box .icon {
    font-size: 25px;
    margin: auto;
    margin-bottom: auto;
    margin-top: 10px;
    font-weight: 600;
    color: #8FBFFF;
    text-align: left;
  }
}

@media (max-width: 500px) {
  .grid-container-small-widgets {
    display: grid;
    margin: auto;
    margin-left: auto;
    margin-right: auto;
    gap: auto;
    width: 100%;
    grid-template-columns: auto auto;
    padding: 10px;
    margin-bottom: 25px;
  }

  .grid-container-large-widgets {
    display: grid;
    margin: auto;
    margin-left: auto;
    margin-right: auto;
    margin-top: 25px;
    gap: 30px;
    width: 100%;
    grid-template-columns: auto;
    padding: 10px;
    margin-bottom: 25px;
  }

  .grid-container-chart {
    display: grid;
    margin: auto;
    margin-left: auto;
    margin-right: auto;
    margin-top: 25px;
    gap: 30px;
    width: 100%;
    grid-template-columns: auto;
    padding: 10px;
    margin-bottom: 25px;
    height: 100%;
  }

  .grid-container-list {
    display: grid;
    margin: auto;
    gap: 20px;
    width: auto;
    grid-template-columns: auto;
    padding: 10px;
    margin-bottom: 25px;
    margin-top: 25px;
  }

  .small-widget {
    max-height: 100px;
    height: auto;
    min-width: 125px;
    width: auto;
    max-width: 125px;
    margin: 2px;
    margin-top: 20px;
    padding: 15px;
    color: #ff9900;
    border-radius: 20px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-right: auto;
    margin-left: auto;
    /* background: url("../img/table.png") center repeat;
    background-size:contain;
    -webkit-animation: backgroundScroll 60s linear infinite;
    animation: backgroundScroll 60s linear infinite; */
    background: #ffffff;
  }

  .small-widget h2 {
    text-align: left;
    margin: 2px;
    font-size: 9px;
  }

  .small-widget p {
    margin: 2px;
    text-align: left;
    font-size: 12px;
    color: #38312c;
    margin-bottom: auto;
  }

  .small-widget span {
    margin: 0px;
    font-weight: bold;
    text-align: left;
  }

  #widget-icon {
    font-size: 30px;
  }

  .large-widget {
    max-height: 290px;
    height: auto;
    min-width: 250px;
    width: auto;
    max-width: 320px;
    margin: auto;
    padding: 25px;
    color: #ffffff;
    border-radius: 20px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: url("../img/pattern-mobile.png") center repeat;
    background-size: cover;
    -webkit-animation: backgroundScroll 60s linear infinite;
    animation: backgroundScroll 60s linear infinite;
    background-color: #ffffff;
  }

  .large-widget :hover {
    color: #ffc48d;
  }

  .large-widget h2 {
    text-align: center;
    margin: 0;
    font-size: 18px;
    margin-bottom: 25px;
  }

  .large-widget p {
    margin: 8px;
    font-size: 13px;
    color: #fff0e3;
    margin-bottom: auto;
  }

  .large-widget span {
    font-weight: bold;
  }

  .chart-box {
    max-height: 290px;
    height: auto;
    min-width: 200px;
    width: auto;
    max-width: 300px;
    margin: 2px;
    padding: 25px;
    color: #ffffff;
    /* background: url("../img/table.png") center repeat;
    background-size:contain;
    -webkit-animation: backgroundScroll 60s linear infinite;
    animation: backgroundScroll 60s linear infinite; */
    background: #ffffff;
    color: #ff9900;
    border-radius: 20px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
  }

  .chart-box span {
    font-weight: bold;
  }

  .chart-box .icon {
    font-size: 18px;
    margin: auto;
    margin-bottom: -5px;
    margin-top: 0px;
    font-weight: 600;
    color: #ff9900;
    text-align: left;
  }
}