/* =========================
   DASHBOARD PORTAL
========================= */

.portal-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 360px 1fr;
  background: #f4f6f8;
}


.portal-sidebar {
  background:
    linear-gradient(
      180deg,
      #111111,
      #1b1b1b
    );

  color: white;

  padding: 28px 20px;

  display: flex;
  flex-direction: column;

  gap: 28px;
}


.portal-sidebar.open {
  left: 0;
}


.portal-brand {
  display: flex;

  align-items: center;

  gap: 14px;

  padding-bottom: 24px;

  border-bottom:
    1px solid
    rgba(255,255,255,0.15);
}


.portal-brand img {
  width: 70px;
  height: 70px;

  object-fit: contain;
}


.portal-brand h2 {
  color: white;

  margin-bottom: 4px;
}


.portal-brand p {
  color:
    rgba(255,255,255,0.65);
}


/* =========================
   SIDEBAR MENU
========================= */

.portal-menu {
  display: flex;
  flex-direction: column;

  gap: 10px;
}


.portal-menu a {
  padding: 14px 16px;

  border-radius: 12px;

  color:
    rgba(255,255,255,0.85);

  font-weight: 700;

  transition:
    all 0.25s ease;
}


.portal-menu a:hover,
.portal-menu a.active {
  background: var(--gold);

  color: white;
}


/* =========================
   SIDEBAR USER
========================= */

.portal-user-mini {
  margin-top: auto;

  padding-top: 24px;

  border-top:
    1px solid
    rgba(255,255,255,0.15);
}


.portal-user-card {
  display: flex;

  align-items: center;

  gap: 12px;

  margin-bottom: 20px;
}


.portal-user-avatar {
  width: 52px;
  height: 52px;

  border-radius: 50%;

  object-fit: cover;
}


.portal-logout {
  width: 100%;
}


/* =========================
   MAIN DASHBOARD
========================= */

.portal-main {
  width: 100%;

  padding:
    0
    35px
    50px;
}


.portal-topbar {
  height: 80px;

  background: white;

  display: flex;

  align-items: center;
  justify-content: space-between;

  margin:
    0
    -35px
    30px;

  padding:
    0
    35px;

  box-shadow:
    0
    5px
    20px
    rgba(0,0,0,0.05);
}


.portal-topbar h1 {
  margin-bottom: 0;
}


/* =========================
   PROFILE HERO
========================= */

.portal-profile-hero {
  background:
    linear-gradient(
      135deg,
      #d4af37,
      #c39b17
    );

  color: white;

  border-radius: 24px;

  padding: 36px;

  display: flex;

  align-items: center;

  gap: 24px;

  margin-bottom: 26px;

  box-shadow:
    0
    15px
    40px
    rgba(212,175,55,0.25);
}


.portal-avatar {
  width: 100px;
  height: 100px;

  border-radius: 50%;

  border:
    4px solid
    rgba(255,255,255,0.4);

  background:
    rgba(255,255,255,0.2);

  display: flex;

  align-items: center;
  justify-content: center;

  font-size: 34px;

  font-weight: 900;
}


.portal-profile-hero h2 {
  color: white;

  margin-bottom: 5px;
}


.portal-profile-hero p {
  color:
    rgba(255,255,255,0.9);
}


.portal-status {
  display: inline-block;

  padding:
    5px
    14px;

  border-radius: 999px;

  background:
    rgba(255,255,255,0.2);

  color: white;

  font-weight: 700;
}


/* =========================
   DASHBOARD STATS
========================= */

.portal-stats {
  display: grid;

  grid-template-columns:
    repeat(
      4,
      1fr
    );

  gap: 20px;

  margin-bottom: 28px;
}


.portal-stat-card {
  background: white;

  border-radius: 18px;

  padding: 22px;

  border:
    1px solid
    #eeeeee;

  box-shadow:
    0
    8px
    25px
    rgba(0,0,0,0.05);
}


.portal-stat-card p {
  color: #777777;

  margin-bottom: 8px;
}


.portal-stat-card h3 {
  font-size: 32px;

  margin-bottom: 0;
}


/* =========================
   PANELS
========================= */

.portal-panel {
  background: white;

  border-radius: 18px;

  padding: 25px;

  border:
    1px solid
    #eeeeee;

  box-shadow:
    0
    8px
    25px
    rgba(0,0,0,0.05);
}


.portal-actions {
  display: grid;

  grid-template-columns:
    repeat(
      auto-fill,
      minmax(
        220px,
        1fr
      )
    );

  gap: 18px;
}


.portal-action-card {
  background: #fafafa;

  border:
    1px solid
    #eeeeee;

  border-radius: 16px;

  padding: 20px;

  transition:
    all 0.25s ease;
}


.portal-action-card:hover {
  transform:
    translateY(-4px);

  border-color:
    var(--gold);
}


.portal-action-card h3 {
  margin-bottom: 10px;
}


/* =========================
   DASHBOARD BACKGROUND FIX
========================= */

body,
.portal-layout,
.portal-main {
  background:
    #f4f6f8
    !important;

  background-image:
    none
    !important;
}


.portal-main::before,
.portal-main::after,
.portal-layout::before,
.portal-layout::after {
  display:
    none
    !important;

  background-image:
    none
    !important;

  content:
    none
    !important;
}


/* =========================
   SIDEBAR PROFILE IMAGE FIX
========================= */

.dashboard-profile-card {
  display:
    flex
    !important;

  align-items:
    center
    !important;

  gap:
    12px
    !important;

  background:
    transparent
    !important;

  background-image:
    none
    !important;

  color:
    white
    !important;

  overflow:
    hidden
    !important;
}


.dashboard-profile-card img {
  width:
    58px
    !important;

  height:
    58px
    !important;

  min-width:
    58px
    !important;

  min-height:
    58px
    !important;

  max-width:
    58px
    !important;

  max-height:
    58px
    !important;

  object-fit:
    cover
    !important;

  border-radius:
    50%
    !important;

  display:
    block
    !important;
}


.dashboard-profile-card h3,
.dashboard-profile-card p {
  color:
    white
    !important;

  margin:
    0
    0
    4px
    !important;

  line-height:
    1.3
    !important;
}


.portal-user-mini {
  background:
    transparent
    !important;

  background-image:
    none
    !important;

  overflow:
    hidden
    !important;
}


.initials-avatar {
  width:
    58px
    !important;

  height:
    58px
    !important;

  min-width:
    58px
    !important;

  min-height:
    58px
    !important;

  max-width:
    58px
    !important;

  max-height:
    58px
    !important;

  border-radius:
    50%
    !important;

  background:
    var(--gold)
    !important;

  color:
    white
    !important;

  display:
    flex
    !important;

  align-items:
    center
    !important;

  justify-content:
    center
    !important;

  font-weight:
    800
    !important;

  font-size:
    18px
    !important;

  flex-shrink:
    0
    !important;
}


/* =========================
   MOBILE MENU BUTTON
========================= */

.mobile-menu-btn {
  display: none;
}


/* =========================
   MOBILE DASHBOARD MENU
========================= */

.mobile-dashboard-menu {
  display: none;
}


/* =========================
   STAT LINKS
========================= */

.stat-link {
  text-decoration: none;

  color: inherit;

  display: block;

  transition:
    all 0.25s ease;
}


.stat-link:hover {
  transform:
    translateY(-4px);

  border-color:
    var(--gold);
}


.stat-link p,
.stat-link h3 {
  color: inherit;
}


/* =========================
   LISTING STATUS CARDS
========================= */

.listing-status-card {
  position: relative;
}


.listing-status-card p {
  display: flex;

  align-items: center;

  gap: 9px;

  color: #777777;

  margin-bottom: 8px;
}


.listing-status-card h3 {
  font-size: 32px;

  margin-bottom: 0;

  color: #111111;
}


.listing-dot {
  display: inline-block;

  width: 9px;
  height: 9px;

  min-width: 9px;

  border-radius: 50%;
}


.approved-listing .listing-dot {
  background: #22c55e;
}


.pending-listing .listing-dot {
  background:
    var(--gold);
}


.rejected-listing .listing-dot {
  background: #ef4444;
}


/* =========================
   SUBMISSION STATUS
========================= */

.submission-status-panel {
  margin-bottom: 28px;
}


.submission-status-panel
.portal-panel-header {
  margin-bottom: 22px;
}


.submission-status-panel
.portal-panel-header h2 {
  margin-bottom: 5px;
}


.submission-status-panel
.portal-panel-header p {
  margin: 0;

  color: #777777;
}


.submission-status-grid {
  display: grid;

  grid-template-columns:
    repeat(
      2,
      minmax(
        0,
        1fr
      )
    );

  gap: 20px;
}


.submission-status-group {
  background: #fafafa;

  border:
    1px solid
    #eeeeee;

  border-radius: 18px;

  padding: 22px;
}


.submission-status-header {
  display: flex;

  justify-content:
    space-between;

  align-items:
    flex-start;

  gap: 15px;

  margin-bottom: 20px;
}


.submission-label {
  display: block;

  color: #999999;

  font-size: 12px;

  font-weight: 700;

  text-transform: uppercase;

  letter-spacing: 0.8px;

  margin-bottom: 5px;
}


.submission-status-header h3 {
  margin: 0;

  font-size: 20px;
}


.submission-status-header a {
  color:
    var(--gold);

  text-decoration: none;

  font-weight: 700;

  font-size: 14px;
}


.submission-status-header a:hover {
  text-decoration: underline;
}


.submission-status-counts {
  display: grid;

  grid-template-columns:
    repeat(
      3,
      minmax(
        0,
        1fr
      )
    );

  gap: 10px;
}


.submission-count {
  position: relative;

  background: #ffffff;

  border:
    1px solid
    #eeeeee;

  border-radius: 14px;

  padding:
    16px
    12px;

  text-align: center;
}


.submission-count
.status-dot {
  position: absolute;

  top: 12px;
  right: 12px;

  width: 8px;
  height: 8px;

  border-radius: 50%;
}


.submission-count.approved
.status-dot {
  background: #22c55e;
}


.submission-count.pending
.status-dot {
  background:
    var(--gold);
}


.submission-count.rejected
.status-dot {
  background: #ef4444;
}


.submission-count strong {
  display: block;

  font-size: 30px;

  line-height: 1;

  color: #111111;

  margin-bottom: 8px;
}


.submission-count p {
  margin: 0;

  color: #777777;

  font-size: 13px;

  font-weight: 600;
}


/* =========================
   RESPONSIVE TABLET
========================= */

@media (max-width: 1100px) {

  .portal-layout {
    grid-template-columns:
      1fr;
  }


  .portal-sidebar {
    display: none;
  }


  .portal-main {
    width: 100%;
  }


  .portal-stats {
    grid-template-columns:
      repeat(
        2,
        1fr
      );
  }


  .mobile-menu-btn {
    display:
      flex
      !important;

    align-items: center;

    justify-content: center;

    width: 44px;
    height: 44px;

    background: #111111;

    color: white;

    border: none;

    border-radius: 8px;

    font-size: 24px;

    font-weight: bold;

    cursor: pointer;

    flex-shrink: 0;
  }


  .mobile-dashboard-menu {
    display:
      flex
      !important;

    flex-wrap: wrap;

    align-items: center;

    gap: 10px;

    width: 100%;

    padding:
      14px
      0
      20px;

    overflow: visible;
  }


  .mobile-dashboard-menu a,
  .mobile-dashboard-menu button {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 46px;

    padding:
      11px
      18px;

    border: none;

    border-radius: 999px;

    background: #111111;

    color: #ffffff;

    font-size: 16px;

    font-weight: 700;

    line-height: 1.2;

    text-decoration: none;

    white-space: nowrap;

    flex:
      0
      0
      auto;
  }


  .mobile-dashboard-menu a:hover {
    background:
      var(--gold);

    color: #ffffff;
  }


  .mobile-dashboard-menu
  .mobile-logout-btn {
    background: #c62828;

    color: #ffffff;

    cursor: pointer;
  }

}


/* =========================
   RESPONSIVE DASHBOARD
========================= */

@media (max-width: 900px) {

  .submission-status-grid {
    grid-template-columns:
      1fr;
  }

}


/* =========================
   RESPONSIVE MOBILE
========================= */

@media (max-width: 700px) {

  .portal-main {
    padding:
      0
      18px
      40px;
  }


  .portal-topbar {
    margin:
      0
      -18px
      24px;

    padding:
      0
      18px;
  }


  .portal-profile-hero {
    flex-direction:
      column;

    align-items:
      flex-start;
  }


  .portal-stats {
    grid-template-columns:
      1fr;
  }

}


/* =========================
   MOBILE MENU GRID
========================= */

@media (max-width: 600px) {

  .mobile-dashboard-menu {
    display:
      grid
      !important;

    grid-template-columns:
      repeat(
        2,
        minmax(
          0,
          1fr
        )
      );

    gap: 10px;
  }


  .mobile-dashboard-menu a,
  .mobile-dashboard-menu button {
    width: 100%;

    min-width: 0;

    padding:
      12px
      10px;

    font-size: 14px;

    white-space: normal;

    text-align: center;
  }

}


/* =========================
   VERY SMALL SCREENS
========================= */

@media (max-width: 500px) {

  .submission-status-counts {
    grid-template-columns:
      1fr;
  }

}