/* --- MockBee Professional Dashboard Styling --- */
:root {
  --cream-bg: #FFFFFF;
  --cream-light: #FFFFFF;
  --cream-dark: #E9E4E2;
  --gold: #D8C4B6;
  --gold-light: #E2D1C8;
  --gold-dark: #B09E93;
  --navy: #1A1A1A;
  --navy-dark: #000000;
  --text-dark: #1A1A1A;
  --text-medium: #4A4A4A;
  --shadow-warm: 0 10px 30px rgba(180, 160, 150, 0.1);
  --shadow-deep: 0 15px 40px rgba(30, 20, 10, 0.15);
  --border-radius: 12px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Satoshi', sans-serif;
  background-color: var(--cream-bg);
  color: var(--text-dark);
  overflow: hidden;
  /* Dashboard scroll controlled internally */
  height: 100vh;
}

.dashboard-layout {
  display: flex;
  height: 100vh;
  width: 100%;
}

/* Sidebar Styling - Compact */
.sidebar {
  width: 210px;
  background-color: var(--navy);
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  padding: 15px;
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
  z-index: 100;
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 0;
}

.side-logo {
  width: 165px;
  height: auto;
  margin-left: -8px;
  filter: drop-shadow(0 0 8px rgba(216, 196, 182, 0.3));
  transition: all 0.3s ease;
}

.brand-name {
  font-family: 'Satoshi', sans-serif;
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--gold);
  transition: opacity 0.3s;
}

.sidebar-toggle-btn {
  background: none;
  border: none;
  color: var(--gold);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 5px;
  margin-left: auto;
  transition: transform 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-toggle-btn:hover {
  color: #FFF;
  transform: scale(1.1);
}

/* --- Collapsed State --- */
.sidebar--collapsed {
  width: 75px !important;
  padding: 15px 10px !important;
}

.sidebar--collapsed .brand-name,
.sidebar--collapsed .nav-item span,
.sidebar--collapsed .nav-section,
.sidebar--collapsed .user-text {
  display: none !important;
}

.sidebar--collapsed .sidebar-header {
  justify-content: center;
  padding: 0;
}

.sidebar--collapsed .side-logo {
  width: 45px;
  margin-left: 0;
}

.sidebar--collapsed .sidebar-toggle-btn {
  margin: 0;
}

.sidebar--collapsed .nav-item {
  justify-content: center;
  padding: 12px 0;
}

.sidebar--collapsed .sidebar-footer {
  justify-content: center;
  padding: 8px;
}

.sidebar--collapsed .avatar-mini {
  margin-right: 0;
}

.sidebar--collapsed .btn-logout {
  display: none;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
}

.nav-section {
  font-size: 0.65rem;
  font-weight: 800;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 15px 5px 8px;
}

.nav-list {
  list-style: none;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 3px;
  cursor: pointer;
  transition: all 0.3s;
  color: #AAA;
  font-weight: 400;
}

.nav-item i {
  font-size: 1rem;
  width: 18px;
}

.nav-item span {
  font-size: 0.82rem;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #FFF;
}

.nav-item.active {
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(216, 196, 182, 0.2);
}

.nav-item.active i {
  color: var(--navy);
}

.sidebar-footer {
  margin-top: auto;
  background: rgba(255, 255, 255, 0.05);
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.user-info-mini {
  display: flex;
  align-items: center;
  gap: 8px;
}

.avatar-mini {
  width: 32px;
  height: 32px;
  background: var(--gold);
  color: var(--navy);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.8rem;
}

.user-text p {
  margin: 0;
}

.user-name-mini {
  font-weight: 700;
  font-size: 0.8rem;
  color: #FFF;
}

.user-plan-mini {
  font-size: 0.6rem;
  color: var(--gold-dark);
  font-weight: 800;
}

.btn-logout {
  background: none;
  border: none;
  color: #666;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-logout:hover {
  color: #FFF;
}

/* Main Content Styling - Refined Spacing */
.main-content {
  flex: 1;
  background: var(--cream-bg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.dashboard-header {
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--cream-dark);
}

.welcome-text h1 {
  font-family: 'Satoshi', sans-serif;
  font-size: 1.45rem;
  font-weight: 900;
  margin-bottom: 2px;
}

.welcome-text .accent {
  color: var(--gold-dark);
}

.welcome-text p {
  color: var(--text-medium);
  font-weight: 500;
  font-size: 0.85rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.notif-bell {
  position: relative;
  font-size: 1.2rem;
  color: var(--navy);
  cursor: pointer;
  transition: all 0.3s ease;
}

.home-nav-icon:hover,
.notif-bell:hover {
  transform: scale(1.15);
  color: var(--gold-dark);
}

.notif-dot {
  position: absolute;
  top: 0;
  right: 0;
  width: 7px;
  height: 7px;
  background: #E84C3D;
  border-radius: 50%;
  border: 1.5px solid #FFF;
}

.header-date {
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--navy);
  background: var(--cream-dark);
  padding: 6px 15px;
  border-radius: 50px;
}

/* Content Area Styling - Compact Grid */
.content-viewport {
  flex: 1;
  padding: 0;
  /* Remove padding here so iframe fills completely */
  overflow: hidden;
  /* Prevent parent from scrolling */
  background-image: radial-gradient(circle at 100% 0%, rgba(216, 196, 182, 0.1) 0%, transparent 40%);
}

.active-content {
  display: block;
  height: 100%;
  overflow-y: auto;
  padding: 20px 30px;
  /* Restore padding for inner content */
}

.hidden {
  display: none !important;
}

.content-frame {
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  display: block;
}

/* Overview Area Styling */
.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.stat-card {
  background: #FFF;
  padding: 20px;
  border-radius: 15px;
  border: 1px solid var(--cream-dark);
  display: flex;
  align-items: center;
  gap: 15px;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: var(--shadow-warm);
}

.stat-card i {
  font-size: 1.4rem;
  color: var(--gold-dark);
  background: var(--gold-light);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

.stat-info h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0px;
}

.stat-info p {
  font-size: 0.75rem;
  color: var(--text-medium);
  font-weight: 600;
}

.welcome-banner {
  background: var(--navy);
  color: #FFF;
  padding: 15px 40px;
  border-radius: 12px;
  display: flex;
  flex-direction: row; /* Original row layout */
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
  min-height: 130px; /* Slimmer black box */
  border: 1px solid rgba(216, 196, 182, 0.15);
}

.welcome-banner::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -30px;
  width: 180px;
  height: 180px;
  background: rgba(216, 196, 182, 0.1);
  border-radius: 50%;
}

.banner-text {
  flex: 1;
  text-align: center;
  margin: 0;
  z-index: 2;
}

.banner-text h2 {
  font-family: 'Satoshi', sans-serif;
  font-size: 1.25rem;
  /* Reduced from 1.6rem */
  margin-bottom: 6px;
  color: var(--gold);
}

.banner-text p {
  font-size: 0.8rem;
  /* Reduced from 0.9rem */
  color: #CCC;
  margin-bottom: 15px;
  line-height: 1.4;
}

.btn-primary {
  background: var(--gold);
  border: 1px solid var(--gold-dark);
  padding: 10px 24px;
  border-radius: 8px;
  color: var(--navy);
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(216, 196, 182, 0.2);
}

.btn-primary:hover {
  background: var(--navy);
  color: var(--gold);
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.banner-img {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  z-index: 1;
}

.banner-img img {
  width: 100px;
  filter: drop-shadow(0 8px 15px rgba(0, 0, 0, 0.5));
}


/* --- Overview Page Additions --- */
.overview-top-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 25px;
}

.btn-subscription-status {
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--text-medium);
  border: 1.5px solid var(--cream-dark);
}

.btn-subscription-status:hover {
  background: var(--cream-dark);
  color: var(--navy);
}

/* Subscribed State: Green */
.btn-subscription-status.is-subscribed {
  background: #28A745;
  color: #FFFFFF;
  border-color: #28A745;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.overview-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.info-box {
  background: #FFF;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--cream-dark);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 220px; /* Fixed height for consistency */
}

.info-box:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
}

.info-box h4 {
  font-family: 'Satoshi', sans-serif;
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-box h4 i {
  color: var(--gold-dark);
}

.info-box p {
  font-size: 0.8rem;
  color: var(--text-medium);
  line-height: 1.5;
  margin-bottom: 12px;
}

.activity-list {
  list-style: none;
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.activity-list::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.activity-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed var(--cream-dark);
  font-size: 0.75rem;
}

.activity-item:last-child {
  border: none;
}

.activity-item span:first-child {
  font-weight: 700;
  color: var(--navy);
}

.activity-item span:last-child {
  color: var(--text-light);
}

/* --- Role Selection Cards on Overview --- */
.role-section-title {
  font-family: 'Satoshi', sans-serif;
  font-size: 1.3rem;
  margin: 30px 0 15px;
  color: var(--navy);
}

.role-grid-overview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 15px;
  margin-bottom: 30px;
}

.role-card-mini {
  background: #FFF;
  border: 1px solid var(--cream-dark);
  padding: 15px;
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
}

.role-card-mini:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
}

.role-card-mini i {
  font-size: 1.5rem;
  color: var(--gold-dark);
  margin-bottom: 10px;
  display: block;
}

.role-card-mini h4 {
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.role-card-mini p {
  font-size: 0.7rem;
  color: var(--text-medium);
}

/* Locked Roles Logic */
.locked-card {
  position: relative;
  cursor: not-allowed;
}

.locked-card::before {
  content: "\f023";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  color: var(--gold-dark);
  opacity: 0.2;
  z-index: 2;
}

.locked-card::after {
  content: "Subscribe to access";
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--navy);
  color: #FFF;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.65rem;
  opacity: 0;
  transition: all 0.3s;
  white-space: nowrap;
}

.locked-card:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.locked-card>* {
  opacity: 0.35;
  filter: blur(0.5px);
}

@media (max-width: 1024px) {
  .overview-info-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    width: 70px;
    padding: 15px 10px;
  }

  .brand-name,
  .nav-item span,
  .nav-section,
  .sidebar-footer .user-text {
    display: none;
  }

  .sidebar-header {
    justify-content: center;
  }

  .nav-item {
    justify-content: center;
    padding: 12px 0;
  }

  .sidebar-footer {
    justify-content: center;
    padding: 8px;
  }

  .avatar-mini {
    width: 32px;
    height: 32px;
  }

  .btn-logout {
    display: none;
  }

  .overview-grid {
    grid-template-columns: 1fr;
  }

  .welcome-banner {
    flex-direction: column;
    text-align: center;
    padding: 30px;
  }

  .banner-text {
    max-width: 100%;
    margin-bottom: 20px;
  }
}