/* Base Page Styling */
body {
  font-family: Arial, sans-serif;
  background-color: #F5F7FA;
  margin: 0;
}

/* Main Container */
.container {
  max-width: 700px;
  margin: 50px auto;
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Header */
.header {
  text-align: center;
  margin-bottom: 25px;
}

.header img {
  max-width: 200px;
  margin-bottom: 10px;
}

h2 {
  color: #2F6F8F;
}

/* Sections */
.section {
  margin-bottom: 25px;
}

/* Inputs */
input, select {
  width: 100%;
  padding: 10px;
  margin: 10px 0 20px 0;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
}

input:focus, select:focus {
  border-color: #2F6F8F;
  outline: none;
}

/* Price Display */
#priceDisplay {
  font-size: 20px;
  font-weight: bold;
  color: #2F6F8F;
  margin: 20px 0;
  background: #E8F4F8;
  padding: 15px;
  border-radius: 6px;
  text-align: center;
}

/* Button */
button {
  width: 100%;
  padding: 12px;
  background-color: #2F6F8F;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
}

button:hover {
  background-color: #245a73;
}

/* Text */
p {
  color: #555;
  line-height: 1.5;
}

/* Checkbox Label */
label {
  display: block;
  margin-bottom: 15px;
}

#priceDisplay {
  user-select: none;
}

.checkbox-group {
  display: flex;
  align-items: center;
  margin: 20px 0;
}

.checkbox-group input[type="checkbox"] {
  all: unset;
  width: 16px;
  height: 16px;
  border: 1px solid #ccc;
  border-radius: 3px;
  margin-right: 10px;
  cursor: pointer;
  display: inline-block;
  position: relative;
}

/* Checked state */
.checkbox-group input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 0px;
  width: 5px;
  height: 10px;
  border: solid #2F6F8F;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-group label {
  display: inline-block;
  margin: 0;
  line-height: 1.2;
  cursor: pointer;
}


.success-box {
  background: #E8F4F8;
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
}

.success-box h3 {
  color: #2F6F8F;
  margin: 10px 0 20px 0;
}

.back-button {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 20px;
  background-color: #2F6F8F;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
}

.back-button:hover {
  background-color: #245a73;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.admin-table th {
  background-color: #2F6F8F;
  color: white;
  padding: 10px;
  text-align: left;
}

.admin-table td {
  padding: 10px;
  border-bottom: 1px solid #ddd;
}

.admin-table tr:hover {
  background-color: #f1f1f1;
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #eef2f7;
  color: #1e293b;
}

.container {
  width: 95%;
  max-width: 1400px;
  margin: 40px auto;
}

/* HEADER */

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.dashboard-header h1 {
  margin: 0;
  font-size: 32px;
  color: #0f172a;
}

.dashboard-header p {
  margin-top: 5px;
  color: #64748b;
}

.logout-btn {
  background: #ef4444;
  color: white;
  padding: 12px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

.logout-btn:hover {
  background: #dc2626;
}

/* STATS */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: white;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.stat-card h3 {
  margin: 0;
  font-size: 15px;
  color: #64748b;
}

.stat-card p {
  margin-top: 10px;
  font-size: 32px;
  font-weight: bold;
  color: #0f172a;
}

/* FILTERS */

.filter-bar {
  display: flex;
  gap: 24px;
  align-items: end;
  background: white;
  padding: 20px;
  border-radius: 16px;
  margin-bottom: 30px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  flex-wrap: wrap;
}

.filter-group {
  flex: 1;
  min-width: 240px;
}

.filter-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #334155;
}

.filter-group input,
.filter-group select {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #dbe2ea;
  font-size: 14px;

  box-sizing: border-box;
}

.filter-group input:focus,
.filter-group select:focus {
  border-color: #2563eb;
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* BUTTON */

.search-btn {
  padding: 13px 24px;
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  height: 46px;
}

.search-btn:hover {
  background: #1d4ed8;
}

/* TABLE */

.table-wrapper {
  background: white;
  border-radius: 16px;
  overflow-x: auto;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th {
  background: #1e293b;
  color: white;
  padding: 16px;
  text-align: left;
  font-size: 14px;
  position: sticky;
  top: 0;
  z-index: 2;
  
}

.admin-table th:first-child {
  border-top-left-radius: 16px;
}

.admin-table th:last-child {
  border-top-right-radius: 16px;
}

.admin-table td {
  padding: 16px;
  border-bottom: 1px solid #eef2f7;
}

.admin-table tr:hover {
  background: #e2e8f0;
}

.admin-table tr:nth-child(even) {
  background: #f8fafc;
}

.stat-card {
  border: 1px solid #e2e8f0;
}
