/* ============================================
   SISTEM LELANG LUKISAN - Stylesheet
   ============================================ */

:root {
  --primary: #2c3e50;
  --accent: #e67e22;
  --accent-dark: #ca6f1e;
  --success: #27ae60;
  --danger: #e74c3c;
  --sidebar-width: 260px;
  --topbar-height: 60px;
}

/* === SIDEBAR === */
.sidebar {
  width: var(--sidebar-width);
  min-height: 100vh;
  background: var(--primary);
  color: #ecf0f1;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  z-index: 100;
  transition: transform 0.3s ease;
}
.sidebar-brand {
  padding: 1.2rem 1.5rem;
  font-size: 1.15rem;
  font-weight: 700;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.2);
  display: flex; align-items: center;
}
.sidebar-menu { padding: 1rem 0; }
.sidebar-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
  padding: 0.5rem 1.5rem;
  text-transform: uppercase;
}
.sidebar-item {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.7rem 1.5rem;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: all 0.2s;
  font-size: 0.9rem;
}
.sidebar-item:hover { background: rgba(255,255,255,0.1); color: #fff; }
.sidebar-item.active { background: var(--accent); color: #fff; font-weight: 600; }
.sidebar-item i { font-size: 1.1rem; width: 1.2rem; text-align: center; }

/* === TOPBAR === */
.topbar {
  height: var(--topbar-height);
  background: #fff;
  border-bottom: 1px solid #e9ecef;
  display: flex; align-items: center;
  padding: 0 1.5rem;
  position: sticky; top: 0; z-index: 99;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

/* === PAGE WRAPPER === */
#page-content-wrapper {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  background: #f5f7fa;
  transition: margin 0.3s ease;
}
.main-content { padding: 1.75rem; }

/* === CARDS === */
.card { border: none; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.07); }
.stat-card { border-left: 4px solid var(--accent); transition: transform 0.2s; }
.stat-card:hover { transform: translateY(-2px); }
.stat-card .stat-icon { width: 50px; height: 50px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }

/* === BUTTONS === */
.btn-accent { background: var(--accent); color: #fff; border: none; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: #1a252f; border-color: #1a252f; }

/* === BADGE STATUS === */
.badge-upcoming { background: #3498db; }
.badge-active { background: var(--success); animation: pulse 1.5s infinite; }
.badge-ended { background: #7f8c8d; }
.badge-cancelled { background: var(--danger); }
@keyframes pulse {
  0%,100% { opacity:1; }
  50% { opacity:0.6; }
}

/* === TABLE === */
.table-responsive { border-radius: 8px; overflow: hidden; }
.table thead th { background: var(--primary); color: #fff; font-weight: 500; font-size: 0.85rem; border: none; }
.table tbody tr:hover { background: rgba(230,126,34,0.04); }

/* === PAINTING CARD (Buyer) === */
.auction-card { border-radius: 16px; overflow: hidden; transition: transform 0.25s, box-shadow 0.25s; }
.auction-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,0.13); }
.auction-card .card-img-top { height: 220px; object-fit: cover; }
.auction-card .painting-placeholder { height: 220px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); display:flex; align-items:center; justify-content:center; }
.auction-card .painting-placeholder i { font-size: 4rem; color: rgba(255,255,255,0.4); }

/* === COUNTDOWN TIMER === */
.countdown { font-size: 1.6rem; font-weight: 700; letter-spacing: 0.05em; }
.countdown-unit { display: inline-block; background: var(--primary); color: #fff; border-radius: 8px; padding: 0.4rem 0.7rem; min-width: 3.5rem; text-align: center; }
.countdown-sep { padding: 0 0.2rem; color: var(--primary); }

/* === BID SECTION === */
.bid-current { background: linear-gradient(135deg, var(--primary), #34495e); border-radius: 16px; color: #fff; padding: 1.5rem; }
.bid-amount { font-size: 2rem; font-weight: 800; color: var(--accent); }
.bid-input-group input { font-size: 1.1rem; font-weight: 600; border-right: none; }
.bid-input-group .btn { border-left: none; }
.bid-history { max-height: 320px; overflow-y: auto; }
.bid-row { display: flex; align-items: center; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px solid #f0f0f0; font-size: 0.9rem; }
.bid-row:first-child { background: rgba(230,126,34,0.08); border-radius: 6px; padding: 0.6rem 0.5rem; }
.bid-winner-badge { background: var(--accent); color: #fff; font-size: 0.7rem; padding: 2px 7px; border-radius: 10px; }

/* === LOGIN PAGE === */
.login-page { min-height: 100vh; background: linear-gradient(135deg, var(--primary) 0%, #34495e 100%); display: flex; align-items: center; justify-content: center; }
.login-card { width: 100%; max-width: 420px; border-radius: 20px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.login-header { background: var(--accent); padding: 2rem; text-align: center; }

/* === WINNER BANNER === */
.winner-banner { background: linear-gradient(135deg, #f39c12, #e67e22); border-radius: 16px; color: #fff; animation: winnerGlow 2s ease-in-out infinite alternate; }
@keyframes winnerGlow {
  from { box-shadow: 0 0 20px rgba(230,126,34,0.4); }
  to { box-shadow: 0 0 40px rgba(230,126,34,0.8); }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.show { transform: translateX(0); }
  #page-content-wrapper { margin-left: 0; }
  .bid-amount { font-size: 1.5rem; }
  .countdown { font-size: 1.2rem; }
}

/* === PAGE HEADER === */
.page-header { margin-bottom: 1.5rem; }
.page-header h2 { font-weight: 700; color: var(--primary); }
.page-header .breadcrumb { font-size: 0.85rem; }
