/* Font imports */
@import url("https://fonts.googleapis.com/css2?family=Lato:wght@300;400;500;600;700&display=swap");

/* Font settings */
body {
  font-family: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  font-size: 14px;
  line-height: 1.5;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Inter", sans-serif;
  font-weight: 600;
}

.card-header {
  font-family: "Inter", sans-serif;
}

.table th {
  font-family: "Inter", sans-serif;
}

/* Global Styles for Mikhmon PPPoE */
.highcharts-container.dark-chart {
  background-color: transparent;
}
.highcharts-background {
  fill: transparent;
  border: none;
}
.highcharts-plot-background {
  fill: transparent;
}
.bg-blue {
  background-color: #3498db;
}

/* Enhanced Box Styling */
.card1 {
  background: #1bc0a4;
background: -webkit-linear-gradient(0deg, #1bc0a4 0%, #5ef6dc 100%);
background: linear-gradient(0deg, #1bc0a4 0%, #5ef6dc 100%);
}
.card2 {
   background: #51a9e3;
background: -webkit-linear-gradient(0deg, #51a9e3 0%, #4adcef 100%);
background: linear-gradient(0deg, #51a9e3 0%, #4adcef 100%);
}
.card3 {
  background: #e6a62c;
background: -webkit-linear-gradient(0deg, #e6a62c 0%, #e0d81b 100%);
background: linear-gradient(0deg, #e6a62c 0%, #e0d81b 100%);
}
.card4 {
 background: #eb4d4b;
background: -webkit-linear-gradient(0deg, #eb4d4b 0%, #ff7673 100%);
background: linear-gradient(0deg, #eb4d4b 0%, #ff7673 100%);
}
.box {
  position: relative;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border-radius: 10px;
}

.box::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background-color: #20a8d8;
  transition: all 0.5s ease;
  transform: translateX(-50%);
}

.box:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.box:hover::after {
  width: 90%;
}
/* Placeholder styling */
input[placeholder] {
  /* color: #f010bf; */
  opacity: 0.7;
}

textarea::placeholder {
  color: #a0aec0;
  opacity: 0.7;
}

select::placeholder {
  color: #a0aec0;
  opacity: 0.7;
}

/* Improved form elements */
input,
select,
textarea {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #20a8d8;
  box-shadow: 0 0 0 0.2rem rgba(32, 168, 216, 0.25);
}

/* Button enhancements */
.btn {
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

/* Table improvements */
.table {
  border-collapse: separate;
  border-spacing: 0;
}

.table th {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85em;
}

/* Enhanced Card Styling */
.card {
  position: relative;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin: 10px 5px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: none;
}

.card:hover {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  /* transform: translateY(-3px); */
}

.card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: linear-gradient(to bottom, #20a8d8, #4dbd74);
  transition: height 0.5s ease;
}

.card:hover::after {
  height: 100%;
}

.card-header {
  padding: 12px 15px;
  font-weight: 600;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  /* background-color: rgba(0, 0, 0, 0.02); */
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-body {
  padding: 15px;
}

.card-footer {
  padding: 10px 15px;
  border-top: 1px solid rgba(240, 0, 0, 0.05);
  /* background-color: rgba(0, 0, 0, 0.02); */
  display: flex;
  justify-content: flex-end;
}

/* Card variations */
.card-primary::after {
  background: linear-gradient(to bottom, #20a8d8, #63c2de);
}

.card-success::after {
  background: linear-gradient(to bottom, #4dbd74, #20c997);
}

.card-warning::after {
  background: linear-gradient(to bottom, #ffc107, #f8cb00);
}

.card-danger::after {
  background: linear-gradient(to bottom, #f86c6b, #e83e8c);
}

/* Responsive improvements */
@media (max-width: 768px) {
  .box {
    margin: 3px;
    padding: 8px;
  }

  .box-group-icon {
    font-size: 30px;
  }

  .card {
    margin: 5px 2px;
  }

  .card-header {
    padding: 8px 12px;
  }

  .card-body {
    padding: 10px;
  }
}
