body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background-image: url('../assets/bg2.png');
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  padding-top: 72px;
  /* space for fixed header */
}

/* =========================
HEADER
========================= */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 40px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* logo */
.logo {
  height: 36px;
}

/* titles and groups */
.logo-title-group {
  display: flex;
  align-items: center;
  gap: 20px;
}

.title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #1e293b;
  white-space: nowrap;
}

/* =========================
SEARCH BAR
========================= */
.search-box {
  display: flex;
  align-items: center;
  background: #f8fafc;
  border-radius: 30px;
  padding: 6px 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.search-icon {
  font-size: 14px;
  margin-right: 8px;
  color: #6b7280;
}

.search {
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  width: 120px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

#admin-link-container {
  display: flex;
  align-items: center;
}

.user-welcome {
  font-size: 14px;
  font-weight: 600;
  color: #475569;
}

.logout-btn {
  background: transparent;
  border: 1px solid #cbd5e1;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: 0.2s;
}

.logout-btn:hover {
  background: #f1f5f9;
  border-color: #ef4444;
  color: #ef4444;
}

/* =========================
MODAL STYLES
========================= */
.modal {
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-out;
}

.modal-content {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  padding: 30px;
  border-radius: 20px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 15px;
}

.expiry-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 14px;
}

.expiry-item:last-child {
  border-bottom: none;
}

.expiry-item .name {
  font-weight: 600;
  color: #1e293b;
}

.expiry-item .days {
  color: #2563eb;
  font-weight: 700;
}

.expiry-item.urgent .days {
  color: #ef4444;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* =========================
CONTAINER
========================= */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 40px 20px;
}

/* =========================
GRID
========================= */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 30px;
}

/* =========================
POC CARD
========================= */
.card {
  aspect-ratio: 4/5;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background-size: cover;
  background-position: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
}

/* =========================
CARD OVERLAY
========================= */
.card-overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.75),
      rgba(0, 0, 0, 0.15));
  color: white;
}

/* =========================
CARD TEXT
========================= */
.card-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}

.card-desc {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 12px;
  max-width: 95%;
}

/* =========================
CARD BUTTONS
========================= */
.card-buttons {
  display: flex;
  gap: 10px;
}

/* main button */
.btn {
  background: #2563eb;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  color: white;
  font-size: 14px;
  transition: 0.2s;
}

.btn:hover {
  background: #1e40af;
}

/* know more button */
.know-more {
  background: #0ea5e9;
}

.know-more:hover {
  background: #0284c7;
}

/* expired */
.expired {
  color: #ff7b7b;
}

/* =========================
ADMIN DASHBOARD STYLES
========================= */

.admin-panel-link {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: #2563eb;
  padding: 8px 16px;
  border-radius: 8px;
  transition: 0.2s;
}

.admin-panel-link:hover {
  background: #f1f5f9;
}

/* Modal Admin Styles */
.modal-admin {
  position: fixed;
  z-index: 3000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6); /* Darker backdrop */
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-out;
}

.modal-admin-content {
  background: white;
  padding: 40px;
  border-radius: 24px;
  width: 90%;
  max-width: 700px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

.form-group-full {
  grid-column: span 2;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 14px;
  margin-top: 6px;
  background: #f8fafc;
  color: #1e293b;
  box-sizing: border-box; /* Crucial for width: 100% */
}

.form-control:focus {
  outline: none;
  border-color: #2563eb;
  background: white;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

label {
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.admin-container {
  display: flex;
  min-height: calc(100vh - 72px);
  margin-top: 0;
}

.admin-sidebar {
  width: 260px;
  background: white;
  border-right: 1px solid #e2e8f0;
  padding: 30px 20px;
  flex-shrink: 0;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nav-item {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: 0.2s;
}

.nav-item:hover {
  background: #f8fafc;
  color: #2563eb;
}

.nav-item.active {
  background: #eff6ff;
  color: #2563eb;
}

.admin-content {
  flex-grow: 1;
  padding: 40px;
  background: #f8fafc;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.section-header h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: #1e293b;
}

.admin-btn-primary {
  background: #2563eb;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

.admin-btn-primary:hover {
  background: #1e40af;
}

.admin-table-wrapper {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.admin-table th {
  background: #f8fafc;
  padding: 16px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  border-bottom: 1px solid #e2e8f0;
}

.admin-table td {
  padding: 16px;
  font-size: 14px;
  color: #1e293b;
  border-bottom: 1px solid #f1f5f9;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.action-btns {
  display: flex;
  gap: 8px;
}

.btn-sm {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: 0.2s;
}

.btn-edit {
  background: #eff6ff;
  color: #2563eb;
}

.btn-edit:hover {
  background: #dbeafe;
}

.btn-delete {
  background: #fef2f2;
  color: #ef4444;
}

.btn-delete:hover {
  background: #fee2e2;
}

.coming-soon {
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  background: #f1f5f9;
  padding: 4px 8px;
  border-radius: 4px;
  margin-right: 5px;
}