/* styles.css - Modern, luxury UI for Health Monitoring System */

body {
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
  background: linear-gradient(120deg, #232526 0%, #414345 100%);
  min-height: 100vh;
  color: #f8fafc;
}

h2,
h3,
h4 {
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.card-style {
  background: rgba(30, 32, 34, 0.98);
  border-radius: 2rem;
  box-shadow: 0 8px 40px 0 rgba(0, 0, 0, 0.25), 0 1.5px 8px 0 rgba(0, 0, 0, 0.1);
  padding: 3rem 2.5rem;
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  transition: box-shadow 0.3s, transform 0.3s;
}
.card-style:hover {
  box-shadow: 0 16px 64px 0 rgba(0, 0, 0, 0.35),
    0 2px 12px 0 rgba(0, 0, 0, 0.15);
  transform: translateY(-4px) scale(1.01);
}

.bg-white,
.table {
  background: rgba(255, 255, 255, 0.04) !important;
  color: #f8fafc;
  border-radius: 1.2rem;
  overflow: hidden;
  border: none;
}

.table th,
.table td {
  border: none;
  padding: 1rem 1.2rem;
  font-size: 1.08rem;
  background: transparent;
  color: #ffe066; /* Màu vàng nhạt, dễ nhìn trên nền tối */
  text-shadow: 0 1px 4px #0008;
}
.table thead th {
  background: rgba(255, 255, 255, 0.1);
  color: #ffd700;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #ffd70033;
}
.table-striped > tbody > tr:nth-of-type(odd) {
  background: rgba(255, 255, 255, 0.03);
}

.btn {
  border-radius: 2rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 0.7rem 2.2rem;
  font-size: 1.08rem;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.btn-danger,
.btn-success,
.btn-secondary {
  background: linear-gradient(90deg, #ff512f 0%, #dd2476 100%);
  color: #fff;
  border: none;
}
.btn-success {
  background: linear-gradient(90deg, #11998e 0%, #38ef7d 100%);
}
.btn-secondary {
  background: linear-gradient(90deg, #434343 0%, #000000 100%);
}
.btn:hover,
.btn:focus {
  filter: brightness(1.15) drop-shadow(0 2px 8px #0002);
  transform: translateY(-2px) scale(1.03);
  color: #fff;
}

.btn-outline-secondary {
  border: 2px solid #ffd700;
  color: #ffd700;
  background: transparent;
  transition: background 0.2s, color 0.2s;
}
.btn-outline-secondary:hover {
  background: #ffd700;
  color: #232526;
}

input,
button,
select,
textarea {
  outline: none !important;
  box-shadow: none !important;
}

.text-center {
  text-align: center !important;
}

.spinner-border {
  width: 3rem;
  height: 3rem;
  border-width: 0.4em;
  color: #ffd700 !important;
}

a,
a:visited {
  color: #ffd700;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Responsive tweaks */
@media (max-width: 576px) {
  .card-style {
    padding: 1.2rem 0.5rem;
  }
  h2,
  h3,
  h4 {
    font-size: 1.1rem;
  }
  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
  }
}

/* Google Fonts import */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap");

/* Custom pagination design for luxury dark UI */
.pagination {
  --bs-pagination-bg: transparent;
  --bs-pagination-border-color: #ffd70044;
  --bs-pagination-color: #ffd700;
  --bs-pagination-hover-color: #232526;
  --bs-pagination-hover-bg: #ffd700;
  --bs-pagination-hover-border-color: #ffd700;
  --bs-pagination-focus-color: #232526;
  --bs-pagination-focus-bg: #ffd700;
  --bs-pagination-focus-box-shadow: 0 2px 8px #ffd70044;
  --bs-pagination-active-bg: #ffd700;
  --bs-pagination-active-border-color: #ffd700;
  --bs-pagination-active-color: #232526;
  --bs-pagination-disabled-bg: transparent;
  --bs-pagination-disabled-color: #888;
  --bs-pagination-border-radius: 2rem;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.12);
  padding: 0.2rem 0.5rem;
}
.pagination .page-item .page-link {
  border-radius: 2rem !important;
  border: 1.5px solid #ffd70044;
  color: #ffd700;
  background: transparent;
  font-weight: 600;
  transition: all 0.18s;
  margin: 0 0.15rem;
  box-shadow: none;
}
.pagination .page-item.active .page-link,
.pagination .page-item .page-link:focus,
.pagination .page-item .page-link:hover {
  background: #ffd700;
  color: #232526;
  border-color: #ffd700;
  box-shadow: 0 2px 8px #ffd70044;
}
.pagination .page-item.disabled .page-link {
  color: #888;
  background: transparent;
  border-color: #ffd70022;
  cursor: not-allowed;
  opacity: 0.5;
}
