/* Volume Gym — Custom Styles */

:root {
  --vol-primary: #2db5b7;
  --vol-primary-dark: #1a8f91;
  --tblr-primary: #2db5b7;
  --tblr-primary-rgb: 45, 181, 183;
}

body {
  font-family: 'Kanit', sans-serif;
}

/* Sidebar */
.vol-sidebar {
  background: linear-gradient(180deg, #1a3a4a 0%, #0d2233 100%) !important;
}

.vol-sidebar .nav-link {
  border-radius: 8px;
  margin: 2px 8px;
  transition: background 0.2s;
}

.vol-sidebar .nav-link:hover {
  background: rgba(255,255,255,0.08);
}

.vol-sidebar .nav-link.active {
  background: var(--vol-primary) !important;
  color: #fff !important;
}

.vol-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--vol-primary);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

/* Badges */
.badge-membership {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 20px;
}

/* Member status colors */
.status-active  { background: #d1fae5; color: #065f46; }
.status-expiring { background: #fef3c7; color: #92400e; }
.status-expired { background: #fee2e2; color: #991b1b; }
.status-walkin  { background: #e0e7ff; color: #3730a3; }

/* Card hover */
.card-hoverable {
  transition: box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
}
.card-hoverable:hover {
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
  transform: translateY(-2px);
}

/* Avatar in table */
.avatar-member {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: #e2e8f0;
}

/* POS Layout */
.pos-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.pos-product-card {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: #fff;
}

.pos-product-card:hover {
  border-color: var(--vol-primary);
  background: #f0fdfb;
  transform: scale(1.02);
}

.pos-product-card img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 8px;
}

/* Cart */
#cart-panel {
  border-left: 1px solid #e2e8f0;
  height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
}

#cart-items {
  flex: 1;
  overflow-y: auto;
}

/* Responsive */
@media (max-width: 768px) {
  #cart-panel {
    height: auto;
    border-left: none;
    border-top: 1px solid #e2e8f0;
    margin-top: 16px;
  }
}
