/* portal.css — HSS Foto User Portal (foto.hsys.pro)
   Created: 20260315 */

/* ── Body & Layout ── */
body {
  background-color: #f8f9fa;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Navbar ── */
.portal-navbar {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.portal-navbar .navbar-brand {
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #e8e8e8 !important;
}
.portal-navbar .nav-link {
  color: #c0c0c0 !important;
}
.portal-navbar .nav-link:hover {
  color: #ffffff !important;
}

/* ── Role Dashboard Cards ── */
.role-card {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border-radius: 12px;
  overflow: hidden;
}
.role-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
}
.role-card .card-body {
  padding: 1.5rem;
}

/* ── Sidebar ── */
.portal-sidebar {
  min-height: calc(100vh - 56px);
  background: #ffffff;
  border-right: 1px solid #dee2e6;
}
.portal-sidebar .list-group-item {
  border-left: 3px solid transparent;
  border-right: none;
  border-radius: 0 !important;
  padding: 0.65rem 1.25rem;
  color: #495057;
  font-size: 0.9rem;
}
.portal-sidebar .list-group-item.active {
  background-color: #e8f4fd;
  border-left-color: #0d6efd;
  color: #0d6efd;
  font-weight: 600;
}
.portal-sidebar .list-group-item:hover:not(.active) {
  background-color: #f8f9fa;
  border-left-color: #adb5bd;
}
.portal-sidebar .bi {
  width: 20px;
  display: inline-block;
  text-align: center;
}

/* ── Photo Grid ── */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.photo-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: #e9ecef;
  aspect-ratio: 1;
}
.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}
.photo-card:hover img {
  transform: scale(1.03);
}
.photo-card .photo-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  padding: 0.5rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.photo-card:hover .photo-overlay {
  opacity: 1;
}
.photo-card .face-badge {
  position: absolute;
  top: 6px;
  right: 6px;
}
.photo-card .price-badge {
  position: absolute;
  top: 6px;
  left: 6px;
}
.photo-card .select-check {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 20px;
  height: 20px;
  cursor: pointer;
}

/* ── Album Cards ── */
.album-card {
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s;
}
.album-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1) !important;
}
.album-cover {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: #dee2e6;
}
.album-cover-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #dee2e6 0%, #ced4da 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
  font-size: 3rem;
}

/* ── Upload Zone ── */
#drop-zone {
  border: 2px dashed #0d6efd;
  border-radius: 12px;
  padding: 3rem 2rem;
  text-align: center;
  background: #f0f7ff;
  transition: background 0.2s, border-color 0.2s;
  cursor: pointer;
}
#drop-zone.drag-over {
  background: #dbeafe;
  border-color: #0055cc;
}
#drop-zone .drop-icon {
  font-size: 3rem;
  color: #0d6efd;
  margin-bottom: 0.75rem;
}
.upload-file-list {
  max-height: 300px;
  overflow-y: auto;
}
.upload-file-item .progress {
  height: 6px;
}

/* ── Purchase Cart ── */
.cart-table th {
  background: #f8f9fa;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.cart-total-row {
  background: #e8f4fd;
  font-weight: 700;
  font-size: 1.05rem;
}
.cart-thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
}

/* ── Floating Cart Bar ── */
#floating-cart {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1a1a2e;
  color: #fff;
  padding: 0.75rem 1.5rem;
  z-index: 1050;
  display: none;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.2);
}
#floating-cart.visible {
  display: flex;
}

/* ── Login Page ── */
.login-card {
  max-width: 420px;
  margin: 5vh auto;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}
.login-brand {
  text-align: center;
  padding: 2rem 2rem 0;
}
.login-brand .brand-logo {
  font-size: 2.5rem;
  color: #0d6efd;
}

/* ── Stat Cards ── */
.stat-card {
  border-left: 4px solid #0d6efd;
  border-radius: 8px;
}
.stat-card.green  { border-left-color: #198754; }
.stat-card.orange { border-left-color: #fd7e14; }
.stat-card.purple { border-left-color: #6f42c1; }
.stat-card .stat-value {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .photo-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
  }
  .portal-sidebar {
    min-height: unset;
    border-right: none;
    border-bottom: 1px solid #dee2e6;
  }
}
