/* ===== Page background ===== */
body.site-customer {
    background: #f4f6fb;
}

/* ===== Frame wrapper ===== */
.dashboard-frame-wrapper {
    padding: 40px 20px;
}

/* ===== Main frame ===== */
.dashboard-frame {
    max-width: 1400px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* ===== Dashboard layout (SIDEBAR + MAIN ONLY) ===== */
.dashboard-layout {
    display: grid;
    grid-template-columns: 260px 1fr; /* sidebar + main */
    min-height: auto;
    background: #f6f7fb;
}

/* ===== Sidebar ===== */
.dashboard-sidebar {
    background: #ffffff;
    border-right: 1px solid #eef0f6;
    padding: 30px 24px;
}

/* ===== Profile box ===== */
.profile-box {
    text-align: center;
    margin-bottom: 30px;
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 10px;
    object-fit: cover;
}

/* ===== Sidebar navigation ===== */
.sidebar-nav a {
    display: block;
    padding: 12px;
    color: #555;
    border-radius: 8px;
    margin-bottom: 6px;
    text-decoration: none;
}

.sidebar-nav a.active {
    background: #6c5ce7;
    color: #fff;
}

/* ===== Main content ===== */
.dashboard-main {
    padding: 32px;
    background: #f9faff;
}

/* ===== Header ===== */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ===== Buttons ===== */
.primary-btn {
    background: #111827;
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
}

/* ===== Stats cards ===== */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.stat-card {
    padding: 20px;
    border-radius: 16px;
    color: #f2f3ee;
}

.stat-card.blue { background: #2f17e4; }
.stat-card.yellow { background: #f3f30b; }
.stat-card.red { background: #f74702; }
.stat-card.green { background: #038b25; }
.stat-card.grey { background: #969696; }

/* ===== Content grid ===== */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.tasks-box,
.stats-box {
    background: #ffffff;
    padding: 20px;
    border-radius: 16px;
}

/* ===== Responsive ===== */
@media (max-width: 1200px) {
    .dashboard-layout {
        grid-template-columns: 220px 1fr;
    }
}

@media (max-width: 992px) {
    .stats-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-layout {
        grid-template-columns: 200px 1fr;
    }

    .dashboard-frame-wrapper {
        padding: 30px 15px;
    }
}

@media (max-width: 768px) {
    .dashboard-layout {
        grid-template-columns: 1fr; /* sidebar hidden */
    }

    .dashboard-sidebar {
        display: none;
    }

    .dashboard-main {
        padding: 20px 15px;
    }

    .stats-cards {
        grid-template-columns: 1fr; /* stack cards */
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-frame-wrapper {
        padding: 20px 10px;
    }

    .primary-btn {
        padding: 8px 14px;
        font-size: 14px;
    }

    .tasks-today,
    .pending-auctions {
        min-width: 100%;
        max-width: 100%;
    }

    .dashboard-stats-row {
        flex-direction: column;
        gap: 20px;
    }

    .auction-steps {
        grid-template-columns: 1fr; /* stack steps vertically */
        gap: 1rem;
    }

    .step-card img {
        width: 120px;
        height: 120px;
    }

    .step-card span {
        font-size: 1.5rem;
    }

    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .dashboard-frame {
        border-radius: 12px;
    }

    .stats-cards {
        gap: 12px;
    }

    .step-card {
        padding: 1rem;
    }

    .task-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .task-line {
        margin-bottom: 8px;
    }

    .task-badge {
        margin-top: 8px;
    }
}

.auction-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}

.step-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
  transition: transform .2s ease, box-shadow .2s ease;
}

.step-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.1);
}

.step-card img {
  width: 150px;
  height: 150px;
  margin-bottom: 1rem;
}

.step-card h6 {
  margin: 0.5rem 0;
  font-weight: 600;
}

.step-card span {
  font-size: 2rem;
  font-weight: 700;
  display: block;
  margin-top: .5rem;
}

.step-card.muted {
  opacity: .6;
}

.profile-header {
  display: flex;
  flex-direction: column;   /* 👈 THIS is the key */
  align-items: center;
  text-align: center;
  margin-bottom: 24px;
}

.profile-photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
  cursor: pointer;
  position: relative;
}

.profile-name {
  font-weight: 700;
  font-size: 1.5rem;
  color: #222;
  margin: 0;
}

.tasks-today {
    max-width: 420px;
}

.task-item {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 10px;
}

.task-line {
    width: 4px;
    height: 40px;
    border-radius: 2px;
    margin-right: 14px;
}

.task-text {
    flex: 1;
}

.task-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #222;
}

.task-subtitle {
    display: block;
    font-size: 12px;
    color: #8a8a8a;
}

.task-badge {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #f4f5f7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: #555;
}

.step-card span#stat-won-percentage {
  font-weight: bold;
  font-size: 1.2rem;
  color: #0d6efd; /* blue, like your "plus" icon */
}

/* ===== Dashboard Stats Row (Global Stats + Pending Payments side by side) ===== */
.dashboard-stats-row {
  display: flex;
  gap: 40px;
  margin-top: 2rem;
  flex-wrap: wrap; /* Responsive fallback */
}

/* Left column: Global Stats */
.tasks-today {
  flex: 1 1 300px; /* grow and shrink, minimum 300px */
  max-width: 420px; /* keep your original max */
}

/* Right column: Pending Payments list */
.pending-auctions {
  flex: 1;
  min-width: 420px;
  background: #fff;
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  min-height: 250px;

  display: flex;
  flex-direction: column; /* stack title + list */
}

/* Pending Auctions list title */
.pending-auctions h6 {
  margin-bottom: 16px;
  font-weight: 600;
  color: #222;
}

/* Placeholder style for pending auctions list items */
#pending-auctions-list {
  font-size: 14px;
  color: #555;
  line-height: 1.4;
  overflow-y: auto;
  max-height: 230px; /* adjust as needed */
  padding-right: 4px; /* prevents scrollbar overlap */
}
#pending-auctions-list::-webkit-scrollbar {
  width: 6px;
}

#pending-auctions-list::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 6px;
}
#pending-auctions-list {
  padding-bottom: 4px;
}


/* Example styling for individual pending auction items (you can update this in JS) */
.pending-auction-item {
  padding: 10px 12px;
  margin-bottom: 12px;
  border-radius: 10px;
  background-color: #f9f9fb;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  cursor: default;
}

.pending-auction-item:last-child {
  margin-bottom: 0;
}

.pending-auction-item {
  cursor: pointer;
}

.pending-auction-item:focus {
  outline: 2px solid #005fcc;
  outline-offset: 2px;
}

.dashboard-sidebar {
  width: 260px;
  padding: 20px;
  background-color: #fff;
}

.profile-image-wrapper {
  position: relative;
  width: 70px;
  height: 70px;
  margin-bottom: 10px;
}


.profile-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #eee;
}

/* Upload icon */
.upload-icon {
  position: absolute;
  bottom: -4px;
  right: -4px;
  cursor: pointer;
}

.upload-icon i {
  font-size: 22px;
  color: #0d6efd;
  background: #fff;
  border-radius: 50%;
}

.welcome-text {
  margin-top: 10px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
}

.profile-header h6,
.profile-header h3 {
  margin: 0;
  font-weight: 600;
  line-height: 1.3;
}
