/* ===============================
   GLOBAL BASE STYLES
   =============================== */
* {
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body.dashboard-body {
  background: linear-gradient(135deg, #0e7d85, #07867e);
  min-height: 100vh;
  color: #053120;
  padding-bottom: 60px;
  margin: 0;
}

/* ===============================
   DASHBOARD CONTAINERS
   =============================== */
.dashboard-container {
  width: 95%;
  max-width: 1200px;
  margin: 40px auto;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgb(28, 104, 62);
  padding: 15px 25px;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  color: #1ec08a;
}

.dashboard-header h2 {
  margin: 0;
  font-weight: 600;
}

.dashboard-header a.btn {
  border-radius: 10px;
  padding: 8px 15px;
}

/* ===============================
   CARD CONTAINERS
   =============================== */
.card {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #123d25 !important;
  border: none !important;
  border-radius: 15px !important;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

.card-header {
  background: rgba(255, 255, 255, 0.2) !important;
  border-bottom: none !important;
  border-radius: 15px 15px 0 0 !important;
}

.card h5, .card h3 {
  color: #0c6e59;
}

/* ===============================
   BUTTONS
   =============================== */
.btn {
  border-radius: 10px !important;
  font-weight: 500;
  transition: all 0.3s ease-in-out;
}

.btn-primary {
  background-color: #3fad95 !important;
  border: none !important;
}

.btn-primary:hover {
  background-color: #0f5747 !important;
}

.btn-secondary {
  background-color: #6c63ff !important;
  border: none !important;
}

.btn-secondary:hover {
  background-color: #574fe1 !important;
}

.btn-success {
  background-color: #27ae60 !important;
}

.btn-danger {
  background-color: #e74c3c !important;
}

.btn-warning {
  background-color: #f1c40f !important;
  color: #222 !important;
}

/* ===============================
   TABLE STYLING
   =============================== */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 0.95rem;
  border-radius: 12px;
  overflow: hidden;
}

.table-dark th {
  background-color: rgba(255, 255, 255, 0.25) !important;
  color: #fff !important;
}

.table td, .table th {
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  padding: 10px !important;
  text-align: center !important;
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(255, 255, 255, 0.05);
}

.table-striped tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

/* ===============================
   BADGES
   =============================== */
.badge {
  font-size: 0.85rem;
  padding: 6px 10px;
  border-radius: 8px;
  font-weight: 500;
}

.bg-warning.text-dark {
  background-color: #f1c40f !important;
  color: #111 !important;
}

.bg-success {
  background-color: #2ecc71 !important;
}

.bg-danger {
  background-color: #e74c3c !important;
}

/* ===============================
   INPUTS & FORMS
   =============================== */
.form-control {
  border-radius: 50px;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 10px;
}

.form-control::placeholder {
  color: #ddd;
}

.form-control:focus {
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
  color: #fff;
}

/* ===============================
   LINKS & TEXT
   =============================== */
a {
  color: #00d4ff;
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: #00b4d8;
  text-decoration: underline;
}

/* ===============================
   SCROLLBAR STYLING
   =============================== */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.6);
}

/* ===============================
   MOBILE RESPONSIVENESS
   =============================== */
@media (max-width: 768px) {
  .dashboard-header {
    flex-direction: column;
    gap: 10px;
  }

  .dashboard-container {
    width: 98%;
    margin: 20px auto;
  }

  .table {
    font-size: 0.85rem;
  }

  .btn {
    font-size: 0.9rem;
    padding: 8px 10px;
  }
}

/* ===============================
   FOOTER (optional)
   =============================== */
.dashboard-footer {
  text-align: center;
  color: rgba(255,255,255,0.7);
  margin-top: 40px;
  font-size: 0.85rem;
}
