body {
  /* display: flex; */
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(to right, #141428, #510370);
  color: #fff;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  padding-top: 150px;
}

.relative {
  position: relative;
}

/* Loading Screen Styles */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, #141428, #510370);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loading-content {
  text-align: center;
}

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

.loading-text {
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  margin: 0;
}

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

.container {
  margin-top: 20%;
  max-width: 90%;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.text-wrap {
  overflow-wrap: break-word;
}

.container #login-form {
  display: inline-block;
  max-width: 100%;
  width: 400px;
  text-align: center;
}

.container #main-dashboard {
  max-width: 100%;
  width: 90%;
  min-width: 320px;
  text-align: center;
  margin: 0 auto;
}

.card {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  margin-bottom: 20px;
}

.card-title {
  color: #fff;
  font-weight: bold;
  margin-bottom: 20px;
  text-align: center;
}

.form-control {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 10px;
  padding: 10px;
  color: #fff;
  margin-bottom: 15px;
  transition: background-color 0.3s ease;
  height: auto;
}

.form-control::placeholder {
  color: #fff;
}

.form-control:focus {
  background-color: rgba(255, 255, 255, 0.4);
  box-shadow: none;
}

.form-control:disabled,
.form-control[readonly] {
  background-color: rgba(255, 255, 255, 0.2);
  opacity: 1;
  color: #495057;
}

.btn-primary {
  background: linear-gradient(to right, #510370, #890453);
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  width: 100%;
  font-weight: bold;
  transition: background-color 0.3s ease;
  margin-top: 10px;
}

.btn-primary:hover {
  opacity: 0.5;
}

.btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  background: transparent;
  border-radius: 10px;
  padding: 8px 16px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.8);
  color: #fff;
}

.alert {
  border-radius: 10px;
}

.logo {
  text-align: center;
  margin-bottom: 30px;
  position: absolute;
  top: 10%;
  left: 0;
  width: 100%;
}

#main-dashboard {
  display: none;
}

/* Tab styles */
.nav-tabs {
  border-bottom: none;
  margin-bottom: 2px;
}

.nav-tabs .nav-link {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  margin-right: 5px;
  border-radius: 10px 10px 0 0;
  padding: 12px 20px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
}

.nav-tabs .nav-link.active {
  background: rgba(255, 255, 255, 0.3);
  border: none;
  color: #fff;
  font-weight: bold;
}

.tab-content {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0 10px 10px 10px;
  padding: 20px;
  margin-top: -1px;
}

.btn-success {
  background: linear-gradient(to right, #28a745, #20c997);
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  width: 100%;
  font-weight: bold;
  transition: background-color 0.3s ease;
  margin-top: 10px;
}

.btn-success:hover {
  opacity: 0.8;
}

#date-range {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}

#date-range input {
  flex: 1;
}

.table td,
.table th {
  color: #dee2e6;
}
