:root {
  --primary: #4CAF50;
  --secondary: #388E3C;
  --success: #8BC34A;
  --info: #2196F3;
  --warning: #FF9800;
  --light: #f8f9fa;
  --dark: #212529;
  --red: #ff0000;
  --gray: #6c757d;
  --purple: #6a0cc2;
  --blue: #1565c0;
  ;
  --sidebar-width: 250px;
  --header-height: 70px;
  --card-radius: 10px;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f5f7fb;
  color: var(--dark);
  line-height: 1.6;
}

.dashboard-container {
  display: flex;
  min-height: 100vh;
}

/* sidebar Styles */
.sidebar {
  width: var(--sidebar-width);
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  color: white;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  transition: var(--transition);
  z-index: 1000;
}

.sidebar-header {
  display: flex;
  align-items: center;
  padding: 10px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background-color: black;
}

.sidebar-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
}

/* PalKeeper icon container */
.palkeeper-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  margin-left: 10px;
}

.palkeeper-icon img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  display: block;
}

.sidebar-menu {
  padding: 15px 0;
}

.menu-item {
  padding: 12px 20px;
  display: flex;
  align-items: center;
  transition: var(--transition);
  cursor: pointer;
}

.menu-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.menu-item.active {
  background-color: rgba(255, 255, 255, 0.2);
  border-left: 4px solid white;
}

/* Active menu-item styles for specific screens */
.menu-item.active[data-screen="team-function"],
.menu-item.active[data-screen="trajectory-1"],
.menu-item.active[data-screen="trajectory-2"],
.menu-item.active[data-screen="trajectory-3"] {
  background-color: rgba(255, 255, 255, 0.25) !important;
  border-left: 4px solid #4CAF50 !important;
  box-shadow: inset 0 0 10px rgba(255, 215, 0, 0.2);
}

.menu-item.active[data-screen="team-function"]:before,
.menu-item.active[data-screen="trajectory-1"]:before,
.menu-item.active[data-screen="trajectory-2"]:before,
.menu-item.active[data-screen="trajectory-3"]:before {
  content: "✓";
  margin-right: 10px;
  font-weight: bold;
  color: white;
}

.menu-item i {
  margin-right: 10px;
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
}

/* Main content Styles */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  transition: var(--transition);
}

/* header Styles */
.header {
  height: var(--header-height);
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-left {
  display: flex;
  align-items: center;
}

.menu-toggle {
  font-size: 1.5rem;
  cursor: pointer;
  margin-right: 20px;
  display: none;
}

.search-box {
  position: relative;
}

.search-box input {
  padding: 10px 15px 10px 40px;
  border: 1px solid #e0e0e0;
  border-radius: 30px;
  width: 300px;
  font-size: 0.9rem;
  transition: var(--transition);
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.search-box i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray);
}

/* Header Right with proper spacing */
.header-right {
  display: flex;
  align-items: center;
  gap: 25px;
  /* Ensures consistent spacing between notification and user profile */
}

.notification {
  position: relative;
  cursor: pointer;
  margin-left: 0;
  /* Reset any existing margin */
}

.notification i {
  font-size: 1.3rem;
  color: var(--gray);
  transition: var(--transition);
}

.notification:hover i {
  color: var(--primary);
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: var(--warning);
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Pulse animation for notifications */
@keyframes pulse-notification {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 152, 0, 0.7);
  }
  
  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 6px rgba(255, 152, 0, 0);
  }
  
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 152, 0, 0);
  }
}

.notification-badge.pulse {
  animation: pulse-notification 2s infinite;
}

/* ============ USER PROFILE STYLES ============ */

/* User Profile Container */
.user-profile-container {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  margin-left: 0;
  /* Reset any existing margin */
}

/* User Profile Info - positioned to the right of profile picture */
.user-profile-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-right: 10px;
}

.user-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--dark);
  line-height: 1.2;
}

.user-role {
  font-size: 12px;
  color: var(--gray);
  font-weight: 400;
}

/* User Profile Avatar with dropdown toggle */
.user-profile-avatar {
  position: relative;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.user-data-profile-pic,
.profile-pic {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 2px solid #e0e0e0;
  transition: var(--transition);
}

.profile-pic {
  border-radius: 50%;
}

.user-data-profile-pic,
.profile-pic:hover {
  border-color: var(--primary);
}

/* Dropdown Toggle Button - partially intersecting bottom-right */
.profile-dropdown-toggle {
  position: absolute;
  bottom: -6px;
  right: -6px;
  width: 24px;
  height: 24px;
  background: var(--primary);
  color: white;
  border: 2px solid white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
  font-size: 10px;
  padding: 0;
  margin: 0;
}

.profile-dropdown-toggle:hover {
  background: var(--secondary);
  transform: scale(1.1);
}

/* Profile Dropdown Menu */
.profile-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  z-index: 1000;
  display: none;
  overflow: hidden;
  border: 1px solid #e0e0e0;
  animation: dropdownFadeIn 0.2s ease;
}

.profile-dropdown.show {
  display: block;
}

.profile-dropdown::before {
  content: '';
  position: absolute;
  top: -8px;
  right: 15px;
  width: 16px;
  height: 16px;
  background: white;
  transform: rotate(45deg);
  border-left: 1px solid #e0e0e0;
  border-top: 1px solid #e0e0e0;
  z-index: -1;
}

/* Dropdown Buttons */
.profile-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-size: 14px;
  color: var(--dark);
  transition: var(--transition);
  border-bottom: 1px solid #f0f0f0;
}

.profile-dropdown-btn:last-child {
  border-bottom: none;
}

.profile-dropdown-btn:hover {
  background-color: #f8f9fa;
}

.profile-dropdown-btn i {
  width: 16px;
  text-align: center;
  font-size: 14px;
  color: var(--gray);
}

.profile-dropdown-btn:first-child:hover i {
  color: var(--info);
}

.profile-dropdown-btn:nth-child(2):hover i {
  color: var(--warning);
}

.profile-dropdown-btn:last-child:hover i {
  color: #dc3545;
}

/* Hidden file input for Edit Picture */
.hidden-file-input {
  display: none;
}

/* content Area Styles */
.content {
  padding: 30px;
}

.page-title {
  margin-bottom: 20px;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 20px !important;
}

.page-title>div:first-child {
  flex: 1;
  min-width: 300px;
}

.page-title h1 {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--dark);
}

.page-title p {
  color: var(--gray);
  margin-top: 5px;
}

/* cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.header-card {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;

}

.card {
  background-color: white;
  border-radius: var(--card-radius);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  padding: 20px;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.card-title {
  font-size: 0.9rem;
  color: var(--gray);
  font-weight: 500;
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.card-icon.sales {
  background-color: var(--primary);
}

.card-icon.revenue {
  background-color: var(--success);
}

.card-icon.customers {
  background-color: var(--info);
}

.card-icon.orders {
  background-color: var(--warning);
}

.card-icon.box {
  background-color: var(--dark);
}

.card-icon.cone {
  background-color: var(--red);
}

.card-icon.tile {
  background-color: var(--purple);
}

.card-icon.faint {
  background-color: var(--gray);
}

.card-icon.blue {
  background-color: var(--blue);
}

.card-value {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 5px;
}

.card-growth {
  font-size: 0.8rem;
  display: flex;
  align-items: center;
}

.card-growth.positive {
  color: #28a745;
}

.card-growth.negative {
  color: #dc3545;
}

/* Charts Section */
.charts-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

.chart-container {
  background-color: white;
  border-radius: var(--card-radius);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  padding: 20px;
  justify-content: space-between;

}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.chart-title {
  font-size: 1.1rem;
  font-weight: 600;
}

.chart-actions select {
  padding: 5px 10px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  font-size: 0.9rem;
}

.chart-wrapper {
  position: relative;
  height: 300px;
}

/* Recent Activity */
.activity-container {
  background-color: white;
  border-radius: var(--card-radius);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  padding: 20px;
}

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

.activity-item {
  display: flex;
  padding: 15px 0;
  border-bottom: 1px solid #f0f0f0;
}

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

.activity-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  color: white;
}

.activity-icon.user {
  background-color: var(--primary);
}

.activity-icon.order {
  background-color: var(--success);
}

.activity-icon.payment {
  background-color: var(--warning);
}

/* Screen Sections */
.screen {
  display: none;
}

.screen.active {
  display: block;
}

/* Analytics Screen */
.analytics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

/* Orders Screen */
.users-table,
.orders-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.users-table th,
.orders-table th,
.orders-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
}

.users-table th,
.orders-table th {
  background-color: #f8f9fa;
  font-weight: 600;
}

.users-table tr {
  position: relative;
}

.users-table tr:hover,
.orders-table tr:hover {
  background-color: #f8f9fa;
}

.type,
.status {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-block;
}

.status.complete {
  background-color: #e8f5e9;
  color: #2e7d32;
}

.type.regular {
  background-color: #800080;
  color: #e8f5e9;
}

.type.techie {
  background-color: #000000;
  color: #e8f5e9;
}

.type.super {
  background-color: #ff0000;
  color: #e8f5e9;
}

.type.admin {
  background-color: #4CAF50;
  color: #e8f5e9;
}

.type.minor {
  background-color: #ef6c00;
  color: #fff3e0;
}

.status.pending {
  background-color: #fff3e0;
  color: #ef6c00;
}

.status.processing {
  background-color: #e3f2fd;
  color: #1565c0;
}

.type.business {
  background-color: #1565c0;
  color: #e3f2fd;
}

.orange-bullet {
  color: #ef6c00;
  margin-right: 12px;
  line-height: 1.4;
}

.green-bullet {
  color: #4CAF50;
  margin-right: 12px;
  line-height: 1.4;
}

.red-bullet {
  color: #ff0000;
  margin-right: 12px;
  line-height: 1.4;
}

.black-bullet {
  color: #000000;
  margin-right: 12px;
  line-height: 1.4;
}

.purple-bullet {
  color: #800080;
  margin-right: 12px;
  line-height: 1.4;
}

.blue-bullet {
  color: #1565c0;
  margin-right: 12px;
  line-height: 1.4;
}

/* Customers Screen */
.customers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.customer-card {
  background-color: white;
  border-radius: var(--card-radius);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  padding: 20px;
  display: flex;
  align-items: center;
}

#online-status {
  background-color: #000000;
  align-items: center;
}

.customer-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 15px;
}

.customer-info h3 {
  margin-bottom: 5px;
}

.customer-info p {
  color: var(--gray);
  font-size: 0.9rem;
}

/* Products Screen */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.product-card {
  background-color: white;
  border-radius: var(--card-radius);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.product-image {
  height: 160px;
  background-color: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--primary);
}

.product-details {
  padding: 15px;
}

.product-details h3 {
  margin-bottom: 5px;
}

.product-price {
  font-weight: 600;
  color: var(--primary);
  font-size: 1.2rem;
  margin: 10px 0;
}

/* Finance Screen */
.finance-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.finance-card {
  background-color: white;
  border-radius: var(--card-radius);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  padding: 20px;
}

.finance-card h3 {
  margin-bottom: 15px;
  color: var(--primary);
}

/* Settings Screen */
.settings-section {
  background-color: white;
  border-radius: var(--card-radius);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  padding: 20px;
  margin-bottom: 20px;
}

.settings-section h3 {
  margin-bottom: 15px;
  color: var(--primary);
}

.setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}

.setting-item:last-child {
  border-bottom: none;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked+.slider {
  background-color: var(--primary);
}

input:checked+.slider:before {
  transform: translateX(26px);
}

/* Button Styles */
.btn-view {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: var(--transition);
}

.btn-view:hover {
  background-color: var(--secondary);
}

/* ============ RESPONSIVE STYLES ============ */

@media (max-width: 992px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
  }

  .menu-toggle {
    display: block;
  }

  .search-box input {
    width: 200px;
  }

  .charts-row,
  .analytics-grid {
    grid-template-columns: 1fr;
  }

  .users-table,
  .orders-table {
    display: block;
    overflow-x: auto;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 0 15px;
  }

  .search-box {
    display: none;
  }

  .content {
    padding: 15px;
  }

  .cards-grid,
  .customers-grid,
  .products-grid,
  .finance-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .header-right {
    display: flex;
    gap: 15px;
    /* Smaller gap on mobile */
  }

  .user-profile-info {
    display: none;
    /* Hide username/role on mobile */
  }

  .user-profile-container {
    gap: 8px;
  }

  .profile-dropdown {
    min-width: 180px;
    right: -10px;
  }

  .profile-dropdown::before {
    right: 20px;
  }
}

/* Tablet and below - User Profile Responsive */
@media (max-width: 992px) {
  .user-profile-info {
    display: none;
    /* Hide username/role on smaller screens */
  }

  .user-profile-container {
    gap: 8px;
  }

  .profile-dropdown {
    min-width: 180px;
    right: -10px;
  }

  .profile-dropdown::before {
    right: 20px;
  }
}

/* Mobile landscape and below */
@media (max-width: 768px) {
  .user-profile-avatar {
    width: 36px;
    height: 36px;
  }

  .profile-dropdown-toggle {
    width: 22px;
    height: 22px;
    font-size: 9px;
    bottom: -5px;
    right: -5px;
  }

  .profile-dropdown {
    min-width: 160px;
    right: -15px;
  }

  .profile-dropdown-btn {
    padding: 10px 14px;
    font-size: 13px;
    gap: 10px;
  }

  .profile-dropdown-btn i {
    font-size: 13px;
  }
}

/* Small mobile */
@media (max-width: 576px) {
  .user-profile-avatar {
    width: 32px;
    height: 32px;
  }

  .profile-dropdown-toggle {
    width: 20px;
    height: 20px;
    font-size: 8px;
    bottom: -4px;
    right: -4px;
  }

  .profile-dropdown {
    position: fixed;
    top: var(--header-height);
    right: 10px;
    left: 10px;
    min-width: auto;
    width: calc(100% - 20px);
    max-width: 280px;
    margin: 0 auto;
  }

  .profile-dropdown::before {
    right: auto;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
  }

  .chart-actions {
    display: none;
  }
}

/* Very small screens */
@media (max-width: 360px) {
  .profile-dropdown {
    right: 5px;
    left: 5px;
    width: calc(100% - 10px);
  }

  .profile-dropdown-btn {
    padding: 8px 12px;
    font-size: 12px;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .profile-dropdown {
    background: var(--dark);
    border-color: #444;
  }

  .profile-dropdown::before {
    background: var(--dark);
    border-color: #444;
  }

  .profile-dropdown-btn {
    color: #f8f9fa;
    border-color: #444;
  }

  .profile-dropdown-btn:hover {
    background-color: #2d2d2d;
  }
}

/* Animation for dropdown */
@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* Chart subtitle styles */
.chart-subtitle {
  font-size: 0.85rem;
  color: var(--gray);
  margin-top: 5px;
  font-weight: 400;
}

/* Make cards-grid always show 2 cards per row */
#dashboard .cards-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

/* Responsive adjustments for cards grid */
@media (max-width: 1200px) {
  #dashboard .cards-grid {
    gap: 12px;
  }
}

@media (max-width: 992px) {
  #dashboard .cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
}

@media (max-width: 768px) {
  #dashboard .cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 576px) {
  #dashboard .cards-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .chart-subtitle {
    font-size: 0.8rem;
  }
}

/* Custom Dropdown Styling - Enhanced */
:root {
  --input-bg: white;
  --input-border: #e0e0e0;
  --text-color: #212529;
  --border-color: #f0f0f0;
  --shadow-color: rgba(0, 0, 0, 0.1);
}

.custom-select {
  position: relative;
  width: 100%;
  margin-bottom: 0;
  z-index: 1;
}

/* Adjust z-index based on which dropdown is open */
.custom-select:has(.select-selected.open) {
  z-index: 1000 !important;
}

.select-selected {
  background-color: var(--input-bg);
  color: var(--text-color);
  padding: 0.8rem 1rem;
  border: 2px solid var(--input-border);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
  position: relative;
  z-index: 10;
  font-size: 0.9rem;
  font-weight: 500;
}

.select-selected:hover {
  border-color: var(--primary);
  background-color: rgba(76, 175, 80, 0.05);
}

.select-selected i {
  transition: transform 0.3s ease;
  font-size: 0.8rem;
  color: var(--gray);
}

.select-selected.open {
  border-color: var(--primary);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  box-shadow: 0 2px 5px rgba(76, 175, 80, 0.1);
}

.select-selected.open i {
  transform: rotate(180deg);
  color: var(--primary);
}

.select-items {
  position: absolute;
  background-color: var(--input-bg);
  border: 2px solid var(--input-border);
  border-top: none;
  border-radius: 0 0 8px 8px;
  width: 100%;
  z-index: 1001 !important;
  max-height: 300px;
  overflow-y: auto;
  display: none;
  box-shadow: 0 10px 30px var(--shadow-color);
  margin-top: -2px;
}

.select-selected.open+.select-items {
  display: block;
  animation: dropdownFadeIn 0.2s ease;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.select-items div {
  color: var(--text-color);
  padding: 0.8rem 1rem;
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
}

.select-items div:last-child {
  border-bottom: none;
}

.select-items div:hover {
  background-color: var(--primary) !important;
  color: white !important;
}

.select-items div.selected,
.select-items div.selected:hover {
  background-color: var(--primary) !important;
  color: white !important;
  font-weight: 600;
}

.custom-select input[type="hidden"] {
  display: none;
}

/* Web Form Filter Layout */
.webform-filter {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: var(--card-radius);
}

/* Modal Styles - Updated for dropdowns */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  background-color: white;
  border-radius: var(--card-radius);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 1200px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

.modal.active .modal-content {
  transform: translateY(0);
}

.modal-header {
  padding: 20px 30px;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--primary);
  color: white;
}

.modal-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close:hover {
  transform: scale(1.1);
}

.modal-body {
  padding: 20px 30px;
  overflow-y: auto;
  flex-grow: 1;
}

.modal-footer {
  padding: 15px 30px;
  border-top: 1px solid #e0e0e0;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background-color: #f8f9fa;
}

/* Webform Stats */
.webform-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 30px;
}

.stat-card {
  background-color: white;
  border-radius: var(--card-radius);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  padding: 15px;
  text-align: center;
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--gray);
  font-weight: 500;
}

/* Table Styles */
.webform-table-container {
  overflow-x: auto;
  border-radius: var(--card-radius);
  border: 1px solid #e0e0e0;
  background-color: white;
}

.webform-table {
  width: 100%;
  border-collapse: collapse;
}

.webform-table th {
  background-color: #f8f9fa;
  padding: 15px;
  text-align: left;
  font-weight: 600;
  color: var(--dark);
  border-bottom: 1px solid #e0e0e0;
  white-space: nowrap;
}

.webform-table td {
  padding: 15px;
  border-bottom: 1px solid #f0f0f0;
}

.webform-table tr:last-child td {
  border-bottom: none;
}

.webform-table tr:hover {
  background-color: #f8f9fa;
}

.no-data {
  text-align: center;
  color: var(--gray);
  font-style: italic;
  padding: 40px !important;
}

/* Button Styles */
.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.btn-export {
  background-color: var(--info);
  color: white;
}

.btn-export:hover {
  background-color: #0d8bf2;
}

.btn-close {
  background-color: var(--gray);
  color: white;
}

.btn-close:hover {
  background-color: #5a6268;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .modal-content {
    max-width: 95%;
  }

  .modal-header {
    padding: 15px 20px;
  }

  .modal-body {
    padding: 15px 20px;
  }

  .modal-footer {
    padding: 15px 20px;
  }

  .webform-filter {
    grid-template-columns: 1fr;
    gap: 15px;
  }

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

@media (max-width: 576px) {
  .webform-stats {
    grid-template-columns: 1fr;
  }

  .modal-footer {
    flex-direction: column;
  }

  .modal-footer .btn {
    width: 100%;
  }
}

/* Status Cell and Remark Styling */
.status-cell {
  position: relative;
  min-width: 150px;
  padding: 8px !important;
}

.status-select {
  margin: 0;
  width: 100%;
}

.status-select .select-selected {
  padding: 6px 10px;
  font-size: 0.85rem;
  min-height: 36px;
}

.status-options {
  z-index: 2001 !important;
  /* Higher than modal z-index */
  width: 220px !important;
  left: 50% !important;
  transform: translateX(-50%);
  margin-top: 0;
}

.status-actions {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid var(--border-color);
  margin-top: 5px;
  background-color: #f8f9fa;
}

.btn-save-status {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 6px 15px;
  border-radius: 4px;
  font-size: 0.85rem;
  cursor: pointer;
  flex: 1;
}

.btn-cancel {
  background-color: var(--gray);
  color: white;
  border: none;
  padding: 6px 15px;
  border-radius: 4px;
  font-size: 0.85rem;
  cursor: pointer;
  flex: 1;
}

.btn-cancel:hover {
  background-color: #5a6268;
}

/* Remark Container Styling */
.remark-container {
  display: flex;
  gap: 8px;
  align-items: center;
}

.remark-input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--input-border);
  border-radius: 4px;
  font-size: 0.85rem;
  min-width: 120px;
  transition: var(--transition);
}

.remark-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.remark-input::placeholder {
  color: #adb5bd;
  font-style: italic;
}

.btn-remark-save {
  background-color: var(--dark);
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.btn-remark-save:hover {
  background-color: #6c757d;
}

/* Table Cell Adjustments */
.users-table td,
.orders-table td {
  padding: 12px 15px;
  vertical-align: middle;
}

.users-table .status-cell,
.orders-table .status-cell {
  padding: 8px 15px !important;
}

/* Prevent dropdown from closing when clicking inside */
.status-select .select-items div {
  pointer-events: auto;
}

/* Ensure dropdown stays open */
.status-select .select-selected.open+.select-items {
  display: block !important;
}

/* Custom styles for table dropdowns */
.status-select {
  position: static !important;
}

.status-select .select-items {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  width: 220px !important;
}

/* Modal z-index adjustments */
.modal {
  z-index: 2000;
}

.status-select:has(.select-selected.open) {
  z-index: 2002 !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .remark-container {
    flex-direction: column;
    gap: 5px;
  }

  .remark-input {
    width: 100%;
  }

  .btn-remark-save {
    width: 100%;
  }

  .status-options {
    width: 180px !important;
    left: 0 !important;
    transform: none;
  }
}

/* ============ HEADER CARDS & COMPACT SLIDES ============ */
.page-title .cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 0;
}

.header-card {
  background-color: white;
  border-radius: var(--card-radius);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  padding: 20px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Center content vertically */
}

.header-card:first-child {
  background: linear-gradient(135deg, #f5f7fb 0%, #e3e8f0 100%);
  border-left: 4px solid var(--primary);
}

.header-card:first-child p {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--dark);
  margin: auto 0;
  line-height: 1.6;
  text-align: center;
  /* Center the welcome text */
}

/* Slides Card */
.slides-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  position: relative;
  overflow: hidden;
  padding: 25px 20px 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Center horizontally */
  justify-content: center;
  /* Center vertically */
}

/* Slides Container */
.slides-container {
  position: relative;
  height: 100%;
  min-height: 160px;
  width: 75%;
  /* Occupies 75% of card width */
  max-width: 400px;
  /* Maximum width for better readability */
  margin: 0 auto;
  /* Center the container */
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transform: translateX(10px);
  transition: opacity 0.6s ease, transform 0.6s ease, visibility 0.6s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Center slide content */
  justify-content: center;
  /* Center slide content vertically */
}

.slide.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* Slide Content - Centered & Compact */
.slide-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.4;
  width: 100%;
  justify-content: center;
  /* Center header content */
  text-align: center;
}

.slide-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.slide-content {
  font-size: 1.3rem;
  line-height: 1.7;
  font-weight: 500;
  text-align: center;
  width: 100%;
  color: var(--text-color);
}

.slide-content ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: inline-block;
  /* Make UL inline-block for centering */
  text-align: left;
  /* Keep list items left-aligned within centered container */
}

.slide-content li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 6px;
  line-height: 1.3;
}

.slide-content li:before {
  content: "•";
  position: absolute;
  margin: -15px;
  left: 6px;
  /*color: rgba(255, 255, 255, 0.9);*/
  font-size: 2rem;
  top: 6px;
}

.slide-content .subtext {
  font-style: italic;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 1rem;
  opacity: 0.9;
  text-align: center;
  /* Center the subtext */
  width: 100%;
}

/* Slide Navigation Dots Only */
.slide-nav {
  display: flex;
  justify-content: center;
  gap: 6px;
  position: absolute;
  bottom: 15px;
  left: 0;
  right: 0;
  width: 75%;
  /* Match the slides container width */
  margin: 0 auto;
  /* Center the dots */
}

.slide-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.slide-dot.active {
  background-color: white;
  transform: scale(1.2);
}

.slide-dot:hover {
  background-color: rgba(255, 255, 255, 0.6);
}

/* Slide Counter (Optional, can be hidden) */
.slide-counter {
  position: absolute;
  bottom: 15px;
  right: 20px;
  font-size: 0.75rem;
  opacity: 0.6;
}

/* Responsive */
@media (max-width: 1200px) {
  .page-title .cards-grid {
    grid-template-columns: 1fr 1.2fr;
  }
}

@media (max-width: 992px) {
  .page-title .cards-grid {
    grid-template-columns: 1fr;
  }

  .header-card {
    min-height: 200px;
  }

  .slides-card {
    min-height: 200px;
  }

  .slides-container {
    width: 85%;
    /* Slightly wider on tablets */
  }

  .slide-nav {
    width: 85%;
    /* Match the slides container width */
  }
}

@media (max-width: 768px) {
  .header-card {
    padding: 18px;
    min-height: 180px;
  }

  .slides-card {
    padding: 20px 18px 35px 18px;
  }

  .slides-container {
    width: 90%;
    /* Wider on mobile */
    max-width: 350px;
  }

  .slide-nav {
    width: 90%;
    /* Match the slides container width */
  }

  .slide-header {
    font-size: 0.92rem;
    margin-bottom: 10px;
  }

  .slide-content li {
    font-size: 0.8rem;
    margin-bottom: 5px;
  }

  .slides-container {
    min-height: 140px;
  }
}

@media (max-width: 576px) {
  .header-card {
    padding: 15px;
    min-height: 170px;
  }

  .slides-card {
    padding: 18px 15px 35px 15px;
  }

  .slides-container {
    width: 95%;
    /* Almost full width on small screens */
    max-width: none;
  }

  .slide-nav {
    width: 95%;
    /* Match the slides container width */
  }

  .slide-header {
    font-size: 0.9rem;
  }

  .slide-content li {
    font-size: 0.78rem;
    margin-bottom: 4px;
  }

  .slides-container {
    min-height: 130px;
  }
}

@media (max-width: 400px) {
  .slides-container {
    width: 100%;
    /* Full width on very small screens */
  }

  .slide-nav {
    width: 100%;
    /* Full width on very small screens */
  }

  .slide-content ul {
    text-align: center;
    /* Center align list on very small screens */
  }

  .slide-content li {
    padding-left: 0;
    text-align: center;
  }

  .slide-content li:before {
    display: none;
    /* Hide bullets on very small screens */
  }
}

/* Social Media Dashboard Specific Styles */
.dashboard-table-section {
  background-color: white;
  border-radius: var(--card-radius);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
  overflow: hidden;
}

.table-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 15px 20px;
  background-color: #f8f9fa;
  border-bottom: 1px solid #e0e0e0;
  overflow-x: auto;
}

.table-tab {
  padding: 8px 16px;
  background: none;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--gray);
  transition: var(--transition);
  white-space: nowrap;
}

.table-tab:hover {
  background-color: #e9ecef;
  border-color: var(--primary);
}

.table-tab.active {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
}

.table-container {
  padding: 20px;
}

.dashboard-table {
  display: none;
  animation: fadeIn 0.3s ease;
}

.dashboard-table.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
}

.table-header h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--dark);
}

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.social-media-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px;
}

.social-media-table th {
  background-color: #f8f9fa;
  padding: 12px 15px;
  text-align: left;
  font-weight: 600;
  color: var(--dark);
  border-bottom: 1px solid #e0e0e0;
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 10;
}

.social-media-table td {
  padding: 12px 15px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
}

.social-media-table tr:hover {
  background-color: #f8f9fa;
}

.social-media-table tr.highlight {
  background-color: rgba(76, 175, 80, 0.05);
}

/* Status badges */

.status.on-track {
  background-color: #e3f2fd;
  color: #1565c0;
}

.status.good {
  background-color: #e8f5e9;
  color: #2e7d32;
}

.status.excellent {
  background-color: #f1f8e9;
  color: #558b2f;
}

/* Positive/Negative indicators */
.positive {
  color: #28a745;
  font-weight: 600;
}

.negative {
  color: #dc3545;
  font-weight: 600;
}

/* KPI Summary Styles */
.kpi-summary {
  background-color: white;
  border-radius: var(--card-radius);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  padding: 20px;
  margin-bottom: 30px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.kpi-card {
  display: flex;
  align-items: center;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 8px;
  transition: var(--transition);
}

.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.kpi-icon {
  width: 50px;
  height: 50px;
  background-color: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  color: white;
  font-size: 1.2rem;
}

.kpi-content {
  flex: 1;
}

.kpi-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
}

.kpi-label {
  font-size: 0.9rem;
  color: var(--gray);
  margin-top: 2px;
}

.kpi-subtitle {
  font-size: 0.75rem;
  color: #adb5bd;
  margin-top: 2px;
}

.kpi-trend {
  font-size: 1.2rem;
}

.kpi-trend.positive {
  color: #28a745;
}

.kpi-trend.negative {
  color: #dc3545;
}

/* Export button */
.btn-export {
  background-color: var(--info);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
}

.btn-export:hover {
  background-color: #0d8bf2;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .table-tabs {
    padding: 10px 15px;
  }

  .table-tab {
    padding: 6px 12px;
    font-size: 0.8rem;
  }

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

@media (max-width: 768px) {
  .dashboard-table-section {
    margin: 15px -15px;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .table-tabs {
    gap: 3px;
    padding: 8px 10px;
  }

  .table-tab {
    padding: 5px 10px;
    font-size: 0.75rem;
    flex: 1;
    min-width: 100px;
    text-align: center;
  }

  .table-container {
    padding: 15px;
  }

  .table-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .table-header h3 {
    font-size: 1.1rem;
  }

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

  .kpi-card {
    padding: 12px;
  }

  .social-media-table {
    min-width: 600px;
  }
}

@media (max-width: 576px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }

  .table-tab {
    min-width: 80px;
    font-size: 0.7rem;
    padding: 4px 8px;
  }

  .social-media-table th,
  .social-media-table td {
    padding: 8px 10px;
    font-size: 0.85rem;
  }

  .status {
    padding: 3px 8px;
    font-size: 0.7rem;
  }

  .kpi-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    margin-right: 12px;
  }

  .kpi-value {
    font-size: 1.3rem;
  }

  .btn-export {
    width: 100%;
    justify-content: center;
    padding: 8px 12px;
  }
}

@media (max-width: 400px) {
  .table-tab {
    min-width: 70px;
    font-size: 0.65rem;
    padding: 3px 6px;
  }

  .social-media-table {
    min-width: 500px;
  }

  .kpi-card {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .kpi-icon {
    margin-right: 0;
    margin-bottom: 10px;
  }
}

/* Print Styles */
@media print {
  .dashboard-table-section {
    box-shadow: none;
    border: 1px solid #ddd;
  }

  .table-tabs,
  .btn-export,
  .menu-toggle,
  .header-right {
    display: none !important;
  }

  .social-media-table {
    min-width: auto;
  }
}


/* Container for metrics cards and charts side by side */
.metrics-with-charts-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin: 25px 0;
  align-items: center;
  /* Changed from stretch to center for vertical alignment */
}

.metrics-cards-container {
  flex: 1;
  max-width: 100%;
  flex-direction: column;
  justify-content: center;
  /* Center cards vertically */
  align-content: center;
  align-items: center;
  min-height: 350px;
  /* Minimum height to match charts */
}

/* Ensure 4 cards per row in desktop for metrics containers */
.metrics-cards-container .cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  /* Reduced gap for more compact layout */
  margin-bottom: 0;
  flex: 1;
}

.metrics-cards-container .card {
  background-color: white;
  border-radius: var(--card-radius);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  padding: 12px;
  /* Reduced padding */
  transition: var(--transition);
  height: 120px;
  /* Fixed compact height */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* Distribute content evenly */
}

.metrics-cards-container .card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
  /* Reduced margin */
}

.metrics-cards-container .card-title {
  font-size: 0.85rem;
  /* Slightly smaller */
  color: var(--gray);
  font-weight: 500;
  line-height: 1.3;
}

.metrics-cards-container .card-icon {
  width: 36px;
  /* Slightly smaller */
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.9rem;
  /* Adjusted icon size */
}

.metrics-cards-container .card-value {
  font-size: 1.5rem;
  /* Adjusted size for compact card */
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.2;
}

.metrics-cards-container .card-growth {
  font-size: 0.75rem;
  /* Slightly smaller */
  display: flex;
  align-items: center;
  gap: 4px;
}

.metrics-cards-container .card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.chart-side-container {
  flex: 1;
  width: 80%;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: var(--card-radius);
  padding: 35px;
  display: flex;
  flex-direction: column;
  min-height: 350px;
  justify-content: center;
  align-items: center;
  /* Add this for horizontal centering */
}

.chart-wrapper-container {
  background-color: white;
  border-radius: calc(var(--card-radius) - 2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  width: 55%;
  padding: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.05);
  justify-self: center !important;
}

.chart-wrapper-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e0e0e0;
}

.chart-type-toggle {
  display: flex;
  gap: 12px;
}

.chart-type-btn {
  padding: 8px 16px;
  background-color: #f0f0f0;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: var(--transition);
  font-weight: 500;
}

.chart-type-btn:hover {
  background-color: #e0e0e0;
  transform: translateY(-1px);
}

.chart-type-btn.active {
  background-color: var(--primary);
  color: white;
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.chart-type-btn.active:hover {
  background-color: var(--secondary);
  transform: translateY(-1px);
}

.chart-canvas-container {
  flex: 1;
  min-height: 250px;
  position: relative;
}

.chart-wrapper-container canvas {
  width: 100% !important;
  height: 100% !important;
}

/* Radio button controls */
.chart-radio-controls {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 15px 0;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: var(--card-radius);
  border-left: 4px solid var(--primary);
}

.radio-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dark);
  gap: 8px;
  transition: var(--transition);
}

.radio-label:hover {
  color: var(--primary);
}

.custom-radio {
  position: relative;
  width: 20px;
  height: 20px;
  border: 2px solid #ddd;
  border-radius: 50%;
  background-color: white;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.radio-label input[type="radio"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  width: 0;
  height: 0;
}

.custom-radio::after {
  content: "";
  position: absolute;
  display: none;
  width: 10px;
  height: 10px;
  background-color: white;
  border-radius: 50%;
}

.radio-label input[type="radio"]:checked+.custom-radio {
  background-color: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.radio-label input[type="radio"]:checked+.custom-radio::after {
  display: block;
}

.radio-label input[type="radio"]:hover+.custom-radio {
  border-color: var(--primary);
}

.chart-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f8f9fa;
  border-radius: var(--card-radius);
}

/* Checkbox controls styling (preserved but hidden) */
.chart-toggle-controls {
  display: none;
  /* Hidden by default */
  align-items: center;
  gap: 20px;
  margin: 15px 0;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: var(--card-radius);
  border-left: 4px solid var(--primary);
}

.toggle-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dark);
  gap: 8px;
  transition: var(--transition);
}

.toggle-label:hover {
  color: var(--primary);
}

.custom-checkbox {
  position: relative;
  width: 20px;
  height: 20px;
  border: 2px solid #ddd;
  border-radius: 4px;
  background-color: white;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.toggle-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  width: 0;
  height: 0;
}

.custom-checkbox::after {
  content: "";
  position: absolute;
  display: none;
  width: 10px;
  height: 10px;
  background-color: white;
  clip-path: polygon(28% 48%, 41% 61%, 75% 21%, 88% 35%, 41% 84%, 15% 60%);
}

.toggle-label input[type="checkbox"]:checked+.custom-checkbox {
  background-color: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.toggle-label input[type="checkbox"]:checked+.custom-checkbox::after {
  display: block;
}

.toggle-label input[type="checkbox"]:hover+.custom-checkbox {
  border-color: var(--primary);
}

/* Smooth transition for toggling */
.metrics-with-charts-container {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.metrics-with-charts-container.hidden {
  display: none;
}

/* Responsive adjustments for compact cards */
@media (min-width: 1201px) {
  .metrics-cards-container .cards-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .metrics-with-charts-container {
    gap: 35px;
  }

  .metrics-cards-container .card {
    height: 120px;
  }
}

@media (max-width: 1200px) and (min-width: 993px) {
  .metrics-cards-container .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .metrics-with-charts-container {
    gap: 25px;
  }

  .chart-radio-controls {
    flex-wrap: wrap;
    gap: 15px;
  }

  .metrics-cards-container .card {
    height: 130px;
    /* Slightly taller for 3-column layout */
  }

  .metrics-cards-container,
  .chart-side-container {
    min-height: 380px;
    /* Adjusted for taller cards */
  }
}

@media (max-width: 992px) and (min-width: 769px) {
  .metrics-cards-container .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .metrics-with-charts-container {
    flex-direction: column;
    gap: 25px;
    align-items: stretch;
  }

  .metrics-cards-container,
  .chart-side-container {
    width: 100%;
    min-width: auto;
    min-height: auto;
    /* Auto height in column layout */
  }

  .chart-canvas-container {
    min-height: 300px;
  }

  .chart-radio-controls {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .metrics-cards-container .card {
    height: 120px;
  }
}

@media (max-width: 768px) {

  /* Mobile - Stack cards vertically */
  .metrics-cards-container .cards-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .metrics-with-charts-container {
    flex-direction: column;
    gap: 20px;
    margin: 20px 0;
  }

  .metrics-cards-container,
  .chart-side-container {
    width: 100%;
    min-width: auto;
    min-height: auto;
  }

  .chart-wrapper-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
  }

  .chart-type-toggle {
    width: 100%;
    justify-content: center;
  }

  .chart-canvas-container {
    min-height: 250px;
  }

  .chart-side-container {
    padding: 3px;
  }

  .chart-wrapper-container {
    padding: 15px;
  }

  .chart-radio-controls {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
  }

  .metrics-cards-container .card {
    height: 110px;
    /* Compact on mobile */
    padding: 10px;
  }

  .metrics-cards-container .card-value {
    font-size: 1.4rem;
  }

  .metrics-cards-container .card-title {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .chart-type-toggle {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .chart-type-btn {
    flex: 1;
    min-width: 120px;
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  .chart-canvas-container {
    min-height: 200px;
  }

  .metrics-cards-container .card {
    padding: 10px;
    height: 100px;
    /* More compact on small mobile */
  }

  .metrics-cards-container .card-value {
    font-size: 1.3rem;
  }

  .metrics-cards-container .card-icon {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }

  .metrics-with-charts-container {
    gap: 15px;
    margin: 15px 0;
  }

  .radio-label {
    font-size: 0.85rem;
  }
}


/* Show chart-toggle-controls in Accounts screen only */
#accounts .chart-toggle-controls {
  display: flex !important;
  align-items: center;
  gap: 20px;
  margin: 20px 0;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: var(--card-radius);
  border-left: 4px solid var(--primary);
  flex-wrap: wrap;
}

/* Make it responsive for different screen sizes */
@media (max-width: 992px) {
  #accounts .chart-toggle-controls {
    gap: 15px;
    padding: 12px;
  }
}

@media (max-width: 768px) {
  #accounts .chart-toggle-controls {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin: 15px 0;
  }

  #accounts .toggle-label {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 576px) {
  #accounts .chart-toggle-controls {
    padding: 10px;
    margin: 12px 0;
  }

  #accounts .toggle-label {
    font-size: 0.85rem;
  }
}

/* Ensure the toggle controls work properly */
#accounts .toggle-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dark);
  gap: 8px;
  transition: var(--transition);
}

#accounts .toggle-label:hover {
  color: var(--primary);
}

#accounts .custom-checkbox {
  position: relative;
  width: 20px;
  height: 20px;
  border: 2px solid #ddd;
  border-radius: 4px;
  background-color: white;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

#accounts .toggle-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  width: 0;
  height: 0;
}

#accounts .custom-checkbox::after {
  content: "";
  position: absolute;
  display: none;
  width: 10px;
  height: 10px;
  background-color: white;
  clip-path: polygon(28% 48%, 41% 61%, 75% 21%, 88% 35%, 41% 84%, 15% 60%);
}

#accounts .toggle-label input[type="checkbox"]:checked+.custom-checkbox {
  background-color: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

#accounts .toggle-label input[type="checkbox"]:checked+.custom-checkbox::after {
  display: block;
}

#accounts .toggle-label input[type="checkbox"]:hover+.custom-checkbox {
  border-color: var(--primary);
}


/* Add these styles to your CSS section */

/* Table Dropdown Styles */
#dropdowns-container,
.dropdown-container {
  position: relative;
  display: inline-block;
}

.drop-down-btn {
  background-color: white;
  color: var(--dark);
  padding: 8px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  min-width: 150px;
  justify-content: space-between;
}

.drop-down-btn:hover {
  background-color: #f8f9fa;
  border-color: var(--primary);
}

.drop-down-btn i {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.drop-down-btn.active i {
  transform: rotate(180deg);
}

/* Table Dropdown - Matching .profile-dropdown style */
.table-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 50px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  z-index: 1000;
  display: none;
  overflow: hidden;
  border: 1px solid #e0e0e0;
  animation: dropdownFadeIn 0.2s ease;
}

.table-dropdown.show {
  display: block;
}

.table-dropdown::before {
  content: '';
  position: absolute;
  top: -8px;
  right: 15px;
  width: 16px;
  height: 16px;
  background: white;
  transform: rotate(45deg);
  border-left: 1px solid #e0e0e0;
  border-top: 1px solid #e0e0e0;
  z-index: -1;
}

/* Status Filter Buttons */
.status-filter {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-size: 14px;
  color: var(--dark);
  transition: var(--transition);
  border-bottom: 1px solid #f0f0f0;
}

.status-filter:last-child {
  border-bottom: none;
}

.status-filter:hover {
  background-color: #f8f9fa;
}

/* Center alignment for the new chart-header-row */
.chart-header-row:last-child {
  margin-top: 15px;
  padding: 15px;
  background-color: white;
  border-radius: var(--card-radius);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Responsive adjustments for dropdowns */
@media (max-width: 768px) {
  .chart-header-row:last-child {
    flex-direction: column;
    gap: 15px !important;
  }

  .drop-down-btn {
    width: 100%;
    justify-content: space-between;
  }

  .table-dropdown {
    min-width: 180px;
    right: 0;
  }

  .table-dropdown::before {
    right: 20px;
  }
}

@media (max-width: 576px) {
  .chart-header-row:last-child {
    padding: 10px;
  }

  .table-dropdown {
    min-width: 160px;
    right: -15px;
  }

  .status-filter {
    padding: 10px 14px;
    font-size: 13px;
    gap: 10px;
  }
}

/* Action cell styling */
.users-table td:last-child {
  position: relative;
  padding: 8px 15px;
}

/* Status cell styling */
.users-table th#acct-status,
.users-table td th#acct-status {
  padding: 8px 15px;
  min-width: 120px;
}

/* Account Status styling */
.users-table th#acct-status {
  background-color: #f8f9fa;
}

/* Action dropdown button styling */
.users-table .btn-view {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.users-table .btn-view:hover {
  background-color: var(--secondary);
  transform: scale(1.05);
}

.users-table .btn-view i {
  font-size: 0.8rem;
}

/* Table row dropdown positioning */
.users-table .table-dropdown {
  position: absolute;
  top: calc(100% + 5px);
  right: 15px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  min-width: 180px;
  z-index: 1001;
  display: none;
  overflow: hidden;
  border: 1px solid #e0e0e0;
  animation: dropdownFadeIn 0.2s ease;
}

.users-table .table-dropdown.show {
  display: block;
}

.users-table .table-dropdown::before {
  content: '';
  position: absolute;
  top: -8px;
  right: 20px;
  width: 16px;
  height: 16px;
  background: white;
  transform: rotate(45deg);
  border-left: 1px solid #e0e0e0;
  border-top: 1px solid #e0e0e0;
  z-index: -1;
}

/* Add these styles to your existing CSS */

/* Table-specific dropdown adjustments */
.users-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.users-table th,
.users-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
  position: relative;
}

.users-table th {
  background-color: #f8f9fa;
  font-weight: 600;
}

.users-table tr {
  position: relative;
}

/* Action cell styling */
.users-table td:last-child {
  position: relative;
  padding: 8px 15px;
}

/* Status cell styling */
.users-table th#acct-status,
.users-table td th#acct-status {
  padding: 8px 15px;
  min-width: 120px;
}

/* Account Status styling */
.users-table th#acct-status {
  background-color: #f8f9fa;
}

/* Status text styling */
.users-table .status-active {
  color: #28a745;
  font-weight: 600;
}

.users-table .status-unverified {
  color: #ffc107;
  font-weight: 600;
}

.users-table .status-paused {
  color: #6c757d;
  font-weight: 600;
}

.users-table .status-suspended {
  color: #dc3545;
  font-weight: 600;
}

.users-table .status-banned {
  color: #343a40;
  font-weight: 600;
}

.users-table .status-deleted {
  color: #6c757d;
  font-weight: 600;
  text-decoration: line-through;
}

/* Red bullet for admin type */
.red-bullet {
  color: #dc3545;
  margin-right: 12px;
  line-height: 1.4;
}

/* Action dropdown button styling */
.users-table .btn-view {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.users-table .btn-view:hover {
  background-color: var(--secondary);
  transform: scale(1.05);
}

.users-table .btn-view i {
  font-size: 0.8rem;
}

/* Table row dropdown positioning */
.users-table .table-dropdown {
  position: absolute;
  top: calc(100% + 5px);
  right: 15px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  min-width: 180px;
  z-index: 1001;
  display: none;
  overflow: hidden;
  border: 1px solid #e0e0e0;
  animation: dropdownFadeIn 0.2s ease;
}

.users-table .table-dropdown.show {
  display: block;
}

.users-table .table-dropdown::before {
  content: '';
  position: absolute;
  top: -8px;
  right: 20px;
  width: 16px;
  height: 16px;
  background: white;
  transform: rotate(45deg);
  border-left: 1px solid #e0e0e0;
  border-top: 1px solid #e0e0e0;
  z-index: -1;
}

/* Ensure dropdowns don't overflow table */
.users-table {
  overflow: visible;
}

.users-table tbody {
  position: relative;
}

/* Status filter button styling */
.users-table .status-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 16px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-size: 13px;
  color: var(--dark);
  transition: var(--transition);
  border-bottom: 1px solid #f0f0f0;
}

.users-table .status-filter:last-child {
  border-bottom: none;
}

.users-table .status-filter:hover {
  background-color: #f8f9fa;
}

/* Add selected state for status filter buttons */
.users-table .status-filter.selected {
  background-color: rgba(76, 175, 80, 0.1) !important;
  color: var(--primary) !important;
  font-weight: 600;
}

.users-table .status-filter.selected::before {
  content: "✓";
  margin-right: 8px;
  font-weight: bold;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .users-table {
    display: block;
    overflow-x: auto;
  }

  .users-table th,
  .users-table td {
    padding: 8px 10px;
    font-size: 0.85rem;
  }

  .users-table .btn-view {
    width: 28px;
    height: 28px;
    padding: 0;
  }

  .users-table .table-dropdown {
    min-width: 160px;
    right: 10px;
  }
}

@media (max-width: 576px) {

  .users-table th,
  .users-table td {
    padding: 6px 8px;
    font-size: 0.75rem;
  }

  .users-table .table-dropdown {
    min-width: 140px;
    right: 5px;
  }

  .users-table .status-filter {
    padding: 8px 12px;
    font-size: 12px;
  }
}

/* Dropdown container styling */
#dropdowns-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  overflow: visible;
  z-index: 10000;
  pointer-events: none;
}

/* Account status dropdown positioning */
.account-status-dropdown {
  position: absolute !important;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  min-width: 180px;
  z-index: 10001;
  display: none;
  overflow: hidden;
  border: 1px solid #e0e0e0;
  animation: dropdownFadeIn 0.2s ease;
  pointer-events: auto;
}

.account-status-dropdown.show {
  display: block !important;
}

.account-status-dropdown::before {
  content: '';
  position: absolute;
  top: -8px;
  right: 15px;
  width: 16px;
  height: 16px;
  background: white;
  transform: rotate(45deg);
  border-left: 1px solid #e0e0e0;
  border-top: 1px solid #e0e0e0;
  z-index: -1;
}

/* Ensure table rows have proper positioning context */
.users-table tbody tr {
  position: static;
}

/* Action button cell styling */
.users-table td:last-child {
  position: relative;
  padding: 8px 15px;
  text-align: center;
}

/* Button styling */
.btn-view.dropdown-icon {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  position: relative;
  z-index: 100;
}

.btn-view.dropdown-icon:hover {
  background-color: var(--secondary);
  transform: scale(1.05);
}

.btn-view.dropdown-icon.active {
  background-color: var(--secondary);
  box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.3);
}

.btn-view.dropdown-icon.active i {
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}

/* Status filter buttons */
.status-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 16px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-size: 13px;
  color: var(--dark);
  transition: var(--transition);
  border-bottom: 1px solid #f0f0f0;
}

.status-filter:last-child {
  border-bottom: none;
}

.status-filter:hover {
  background-color: #f8f9fa;
}

.status-filter.selected {
  background-color: rgba(76, 175, 80, 0.1) !important;
  color: var(--primary) !important;
  font-weight: 600;
}

.status-filter.selected::before {
  content: "✓";
  margin-right: 8px;
  font-weight: bold;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .account-status-dropdown {
    min-width: 160px;
  }

  .account-status-dropdown::before {
    right: 12px;
  }
}

@media (max-width: 576px) {
  .account-status-dropdown {
    min-width: 140px;
  }

  .status-filter {
    padding: 8px 12px;
    font-size: 12px;
  }
}

/* Add these styles for the updated table structure */

/* Status cell - now column 16 */
.users-table td:nth-child(16) {
  min-width: 120px;
  text-align: center;
}

/* Action cell - now column 18 */
.users-table td:nth-child(18) {
  min-width: 80px;
  text-align: center;
}

/* Account status styling */
.acct-status-cell {
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 4px;
  display: inline-block;
  min-width: 90px;
  text-align: center;
  margin: 0 10px;
}

/* Status color classes */
.status-active {
  background-color: rgba(40, 167, 69, 0.1);
  color: #28a745;
  border: 1px solid rgba(40, 167, 69, 0.2);
}

.status-unverified {
  background-color: rgba(23, 162, 184, 0.1);
  color: #17a2b8;
  border: 1px solid rgba(23, 162, 184, 0.2);
}
.status-suspended {
  background-color: rgba(255, 193, 7, 0.1);
  color: #ffc107;
  border: 1px solid rgba(255, 193, 7, 0.2);
}

.status-banned {
  background-color: rgba(220, 53, 69, 0.1);
  color: #dc3545;
  border: 1px solid rgba(220, 53, 69, 0.2);
}

.status-deleted {
  background-color: rgba(108, 117, 125, 0.1);
  color: #6c757d;
  text-decoration: line-through;
  border: 1px solid rgba(108, 117, 125, 0.2);
}

/* Green bullet */
.green-bullet {
  color: #28a745;
  margin-right: 12px;
  line-height: 1.4;
}



/* Screen and container styles */

/* Header styles */
.screen-header {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  margin-top: 2rem;
  color: var(--primary);
  text-align: center;
  width: 100%;
}

/* Text styles */
.section-text {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  color: var(--text-color);
}

/* Summary section */
.summary {
  justify-self: center;
  margin-top: 3rem;
  width: 50%;
  padding: 1.5rem;
  background-color: rgba(76, 175, 80, 0.1);
  border-radius: 12px;
  border-left: 4px solid var(--primary);
}

/* Founder story link */
.founder-story-link {
  margin-top: 8rem;
}

/* Tech startup section */
.tech-startup-section {
  position: relative;
  width: 100%;
  margin: 4rem 0;
  overflow: hidden;
}

.startup-columns-container {
  display: flex;
  flex-wrap: wrap;
  min-height: 600px;
  width: 100%;
  position: relative;
  margin: 0;
  padding: 0;
}

/* Left column */
.startup-left-column {
  flex: 0 0 50%;
  width: 50%;
  padding: 4rem 5vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: var(--card-bg);
  position: relative;
  z-index: 2;
}

/* Right column */
.startup-right-column {
  flex: 0 0 50%;
  width: 50%;
  position: relative;
  background-image: url('/assets/images/palKeeperHero.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  margin: 0;
  padding: 0;
}


/* Dark overlay for right column */
.startup-right-column::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 100%);
  z-index: 1;
}

/* Column title */
.startup-column-title {
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1.5rem;
  text-align: left;
  line-height: 1.2;
  max-width: 500px;
}

/* Startup description */
.startup-description {
  font-size: clamp(1rem, 1.3vw, 1.05rem);
  line-height: 1.7;
  color: var(--text-color);
  margin-bottom: 2.5rem;
  text-align: left;
  max-width: 500px;
  opacity: 0.85;
}

/* Emphasis text */
.emphasis {
  font-style: italic;
}

/* Strong text */
strong {
  font-weight: bold;
}

/* Founder story link */
.founder-story-link {
  text-align: center;
  margin: 2rem auto 3rem;
  width: 100%;
  max-width: 1200px;
  padding: 0 1rem;
}

/* Decorative line above the text */
.founder-story-link::before {
  content: '';
  display: block;
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--primary) 50%, transparent 100%);
  margin: 0 auto 1.5rem;
  opacity: 0.5;
}

/* Font Awesome base */
.fas {
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  display: var(--fa-display, inline-block);
  font-style: normal;
  font-variant: normal;
  line-height: 1;
  text-rendering: auto;
}

/* Rocket icon */
.fa-rocket:before {
  content: "\f135";
  color: var(--primary);
  font-weight: bold;
  font-size: 2.5rem;
  line-height: 1.7;
}





/* ====================== */
/* CARD-FOOTER RESPONSIVE */
/* ====================== */
.card-footer {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  width: 100%;
}

.card-footer .btn-left,
.card-footer .btn-right {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 0.75rem 1.5rem;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 48px;
  /* Added fixed height for consistent centering */
}

.card-footer .btn-left {
  width: 230px;
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.card-footer .btn-right {
  width: 200px;
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.card-footer .btn-left i {
  font-size: 1.5rem;
  color: #4CAF50;
  margin-right: 25px;
}

.card-footer .btn-right i {
  font-size: 1.5rem;
  color: #4CAF50;
  margin-left: 25px;
}

.card-footer .btn-left:hover {
  background-color: rgba(76, 175, 80, 0.1);
}

.card-footer .btn-right:hover {
  background-color: var(--primary-dark);
}

/* Startup Icon Styling - NEW */
.startup-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  /* Creates proper spacing between icon and text */
}

.startup-icon i {
  font-size: 0.7rem;
  line-height: 1;
}

/* Ensure buttons stay in single row on all devices */
@media (max-width: 768px) {
  .card-footer {
    gap: 0.8rem;
    padding: 0 0.5rem;
  }

  .card-footer .btn-left,
  .card-footer .btn-right {
    min-width: 110px;
    padding: 0.7rem 1.2rem;
    font-size: 0.95rem;
    height: 44px;
    /* Adjusted for mobile */
  }

  .startup-icon {
    gap: 0.4rem;
  }
}

@media (max-width: 480px) {
  .card-footer {
    gap: 0.6rem;
    padding: 0;
  }

  .card-footer .btn-left,
  .card-footer .btn-right {
    min-width: 100px;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    height: 40px;
    /* Adjusted for mobile */
  }

  .startup-icon {
    gap: 0.3rem;
  }

  .startup-icon i {
    font-size: 0.9rem;
  }
}

@media (max-width: 360px) {
  .card-footer {
    gap: 0.5rem;
  }

  .card-footer .btn-left,
  .card-footer .btn-right {
    min-width: 90px;
    padding: 0.6rem 0.8rem;
    font-size: 0.85rem;
    height: 38px;
    /* Adjusted for mobile */
  }

  .startup-icon {
    gap: 0.25rem;
  }

  .startup-icon i {
    font-size: 0.85rem;
  }
}

.overlay-cta-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(255, 255, 255, 0.95);
  padding: 2.5rem;
  width: min(400px, 85%);
  max-width: 400px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  z-index: 10;
  border-left: 5px solid var(--primary);
  text-align: left;
  animation: cardFadeIn 0.6s ease-out;
}

/* Task Progress Modal Styles - Specific to avoid conflicts */
#taskProgessModal .task-progress-dashboard {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* Stats Grid */
#taskProgessModal .task-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 10px;
}

#taskProgessModal .task-stat-card {
  background: white;
  border-radius: var(--card-radius);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: var(--transition);
}

#taskProgessModal .task-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

#taskProgessModal .task-stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
}

#taskProgessModal .task-stat-card:nth-child(1) .task-stat-icon {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

#taskProgessModal .task-stat-card:nth-child(2) .task-stat-icon {
  background: linear-gradient(135deg, #4CAF50 0%, #2e7d32 100%);
}

#taskProgessModal .task-stat-card:nth-child(3) .task-stat-icon {
  background: linear-gradient(135deg, #2196F3 0%, #0d47a1 100%);
}

#taskProgessModal .task-stat-card:nth-child(4) .task-stat-icon {
  background: linear-gradient(135deg, #f44336 0%, #c62828 100%);
}

#taskProgessModal .task-stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1;
}

#taskProgessModal .task-stat-label {
  font-size: 0.9rem;
  color: var(--gray);
  margin-top: 5px;
}

/* Progress Charts */
#taskProgessModal .progress-charts-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px;
}

#taskProgessModal .progress-chart-card {
  background: white;
  border-radius: var(--card-radius);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  padding: 20px;
}

#taskProgessModal .progress-chart-card .chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

#taskProgessModal .progress-chart-card .chart-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark);
}

#taskProgessModal .chart-period-select .select-selected {
  padding: 6px 10px;
  font-size: 0.85rem;
  min-height: 36px;
}

#taskProgessModal .chart-period-select {
  width: auto;
  min-width: 150px;
  padding: 6px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  font-size: 0.85rem;
  background-color: white;
}

#taskProgessModal .chart-container {
  height: 250px;
  position: relative;
}

/* Task Filters */
#taskProgessModal .task-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
  background: #f8f9fa;
  padding: 15px;
  border-radius: var(--card-radius);
  margin: 10px 0;
}

#taskProgessModal .filter-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  min-width: 200px;
}

#taskProgessModal .filter-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--dark);
  white-space: nowrap;
}

#taskProgessModal .filter-group .custom-select {
  width: 100%;
  margin: 0;
}

#taskProgessModal .filter-select {
  display: none;
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  font-size: 0.85rem;
  background-color: white;
  min-width: 150px;
}

#taskProgessModal .btn-filter-reset {
  padding: 8px 16px;
  background-color: var(--gray);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: var(--transition);
  white-space: nowrap;
  align-self: flex-end;
  margin-top: 20px;
}

#taskProgessModal .btn-filter-reset:hover {
  background-color: #5a6268;
}

/* Task Table */
#taskProgessModal .task-table-container {
  background: white;
  border-radius: var(--card-radius);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

#taskProgessModal .task-table-container .table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #e0e0e0;
}

#taskProgessModal .task-table-container .table-header h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--dark);
  margin: 0;
}

#taskProgessModal .table-actions {
  display: flex;
  gap: 10px;
}

#taskProgessModal .btn-add-task,
#taskProgessModal .btn-refresh {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

#taskProgessModal .btn-add-task {
  background-color: var(--primary);
  color: white;
}

#taskProgessModal .btn-add-task:hover {
  background-color: var(--secondary);
}

#taskProgessModal .btn-refresh {
  background-color: #f8f9fa;
  color: var(--dark);
  border: 1px solid #e0e0e0;
}

#taskProgessModal .btn-refresh:hover {
  background-color: #e9ecef;
}

#taskProgessModal .table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

#taskProgessModal .task-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1200px;
}

#taskProgessModal .task-table th {
  background-color: #f8f9fa;
  padding: 12px 15px;
  text-align: left;
  font-weight: 600;
  color: var(--dark);
  border-bottom: 1px solid #e0e0e0;
  white-space: nowrap;
}

#taskProgessModal .task-table td {
  padding: 12px 15px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
}

#taskProgessModal .task-table tr:hover {
  background-color: #f8f9fa;
}

/* Task Type Badges */
#taskProgessModal .task-type {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-block;
}

#taskProgessModal .task-type.feature {
  background-color: #e3f2fd;
  color: #1565c0;
}

#taskProgessModal .task-type.bugfix {
  background-color: #ffebee;
  color: #c62828;
}

#taskProgessModal .task-type.optimization {
  background-color: #f3e5f5;
  color: #6a1b9a;
}

#taskProgessModal .task-type.testing {
  background-color: #e8f5e9;
  color: #2e7d32;
}

/* Priority Badges */
#taskProgessModal .task-priority {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-block;
}

#taskProgessModal .task-priority.critical {
  background-color: #ffebee;
  color: #c62828;
}

#taskProgessModal .task-priority.high {
  background-color: #fff3e0;
  color: #ef6c00;
}

#taskProgessModal .task-priority.medium {
  background-color: #e3f2fd;
  color: #1565c0;
}

#taskProgessModal .task-priority.low {
  background-color: #e8f5e9;
  color: #2e7d32;
}

/* Status Badges */
#taskProgessModal .task-status {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-block;
}

#taskProgessModal .task-status.todo {
  background-color: #f5f5f5;
  color: #616161;
}

#taskProgessModal .task-status.inprogress {
  background-color: #e3f2fd;
  color: #1565c0;
}

#taskProgessModal .task-status.review {
  background-color: #fff3e0;
  color: #ef6c00;
}

#taskProgessModal .task-status.testing {
  background-color: #e8f5e9;
  color: #2e7d32;
}

#taskProgessModal .task-status.done {
  background-color: #e8f5e9;
  color: #2e7d32;
}

#taskProgessModal .task-status.blocked {
  background-color: #ffebee;
  color: #c62828;
}

/* Progress Bar */
#taskProgessModal .progress-bar {
  position: relative;
  height: 24px;
  background-color: #f5f5f5;
  border-radius: 12px;
  overflow: hidden;
}

#taskProgessModal .progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4CAF50 0%, #8BC34A 100%);
  border-radius: 12px;
  transition: width 0.3s ease;
}

#taskProgessModal .progress-fill.blocked {
  background: linear-gradient(90deg, #f44336 0%, #ef5350 100%);
}

#taskProgessModal .progress-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--dark);
}

/* Action Buttons */
#taskProgessModal .btn-action {
  background: none;
  border: none;
  color: var(--gray);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 5px;
  margin: 0 2px;
  transition: var(--transition);
}

#taskProgessModal .btn-action:hover {
  color: var(--primary);
  transform: scale(1.1);
}

/* Burndown Container */
#taskProgessModal .burndown-container {
  background: white;
  border-radius: var(--card-radius);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  padding: 20px;
  margin-top: 20px;
}

#taskProgessModal .burndown-container .chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

#taskProgessModal .burndown-container .chart-header h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--dark);
  margin: 0;
}

#taskProgessModal .chart-legend {
  display: flex;
  gap: 15px;
  font-size: 0.85rem;
}

#taskProgessModal .legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--gray);
}

/* Recent Activity */
#taskProgessModal .recent-activity {
  background: white;
  border-radius: var(--card-radius);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  padding: 20px;
}

#taskProgessModal .recent-activity h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 15px;
}

#taskProgessModal .activity-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

#taskProgessModal .activity-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #f0f0f0;
}

#taskProgessModal .activity-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

#taskProgessModal .activity-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background-color: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 0.9rem;
  flex-shrink: 0;
}

#taskProgessModal .activity-content {
  flex: 1;
}

#taskProgessModal .activity-title {
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 3px;
}

#taskProgessModal .activity-time {
  font-size: 0.8rem;
  color: var(--gray);
}

/* Responsive Design */
@media (max-width: 1200px) {
  #taskProgessModal .progress-charts-container {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 992px) {
  #taskProgessModal .task-filters {
    flex-direction: column;
    align-items: stretch;
  }

  #taskProgessModal .filter-group {
    min-width: 100%;
  }

  #taskProgessModal .btn-filter-reset {
    align-self: flex-start;
    margin-top: 10px;
  }
}

@media (max-width: 768px) {
  #taskProgessModal .task-stats-grid {
    grid-template-columns: 1fr;
  }

  #taskProgessModal .task-table-container .table-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  #taskProgessModal .table-actions {
    width: 100%;
    justify-content: space-between;
  }

  #taskProgessModal .burndown-container .chart-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  #taskProgessModal .chart-legend {
    flex-wrap: wrap;
  }

  #taskProgessModal .progress-chart-card .chart-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  #taskProgessModal .chart-period-select {
    width: 100%;
  }
}

@media (max-width: 576px) {
  #taskProgessModal .progress-chart-card {
    padding: 15px;
  }

  #taskProgessModal .task-stat-card {
    padding: 15px;
  }

  #taskProgessModal .task-stat-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  #taskProgessModal .task-stat-value {
    font-size: 1.5rem;
  }

  #taskProgessModal .task-table th,
  #taskProgessModal .task-table td {
    padding: 8px 10px;
    font-size: 0.85rem;
  }

  #taskProgessModal .activity-item {
    flex-direction: column;
    gap: 10px;
  }
}


#taskProgessModal .modal-body {
  padding: 20px 30px;
  overflow-y: auto;
}

#taskProgessModal .modal-footer {
  padding: 15px 30px;
  border-top: 1px solid #e0e0e0;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background-color: #f8f9fa;
}

#taskProgessModal .btn {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

#taskProgessModal .btn-export {
  background-color: var(--info);
  color: white;
}

#taskProgessModal .btn-export:hover {
  background-color: #0d8bf2;
}

#taskProgessModal .btn-close {
  background-color: var(--gray);
  color: white;
}

#taskProgessModal .btn-close:hover {
  background-color: #5a6268;
}

/* Task Form Styles */
.task-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.task-form label {
  font-weight: 500;
  color: var(--dark);
  font-size: 0.9rem;
}

.task-form input[type="text"],
.task-form input[type="number"],
.task-form input[type="date"],
.task-form textarea {
  padding: 10px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: var(--transition);
}

.task-form input:focus,
.task-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.1);
}

.task-form textarea {
  resize: vertical;
  min-height: 80px;
}

/* Progress Slider */
.progress-input {
  display: flex;
  align-items: center;
  gap: 10px;
}

.progress-slider {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: #e0e0e0;
  outline: none;
  -webkit-appearance: none;
}

.progress-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.progress-value {
  min-width: 40px;
  text-align: center;
  font-weight: 600;
  color: var(--dark);
}

/* Tags Input */
.tags-input {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 40px;
  padding: 8px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background: white;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #e3f2fd;
  color: #1565c0;
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 0.85rem;
  font-weight: 500;
}

.tag-remove {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font-size: 0.8rem;
  padding: 0;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.tag-remove:hover {
  background: rgba(0, 0, 0, 0.1);
}

.tags-suggestions {
  color: var(--gray);
  font-size: 0.8rem;
}

/* Dependencies Input */
.dependencies-input {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dependencies-selected {
  min-height: 40px;
  padding: 8px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background: white;
}

.dependency-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: #f8f9fa;
  border-radius: 4px;
  margin-bottom: 4px;
}

.btn-select-dependencies {
  align-self: flex-start;
  padding: 8px 16px;
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-select-dependencies:hover {
  background: #e9ecef;
}

/* Attachments Input */
.attachments-input {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.attachments-preview {
  min-height: 60px;
  padding: 8px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background: white;
}

.attachment-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: #f8f9fa;
  border-radius: 4px;
  margin-bottom: 4px;
}

.btn-select-files {
  align-self: flex-start;
  padding: 8px 16px;
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-select-files:hover {
  background: #e9ecef;
}

/* Task Header */
.task-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 15px;
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 20px;
}

.task-id {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary);
}

.task-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.85rem;
  color: var(--gray);
}

/* Time Tracking */
.time-tracking {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.time-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 15px;
}

.time-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.time-label {
  font-size: 0.85rem;
  color: var(--gray);
}

.time-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark);
}

.btn-log-time {
  align-self: flex-start;
  padding: 8px 16px;
  background: var(--info);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-log-time:hover {
  background: #0d8bf2;
}

/* Comments Section */
.comments-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.comments-list {
  max-height: 200px;
  overflow-y: auto;
  padding-right: 10px;
}

.comment-item {
  padding: 12px;
  background: #f8f9fa;
  border-radius: 6px;
  margin-bottom: 10px;
}

.comment-author {
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 4px;
}

.comment-time {
  font-size: 0.8rem;
  color: var(--gray);
  margin-bottom: 8px;
}

.comment-content {
  color: var(--dark);
}

.add-comment {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.add-comment textarea {
  padding: 10px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  resize: vertical;
  min-height: 60px;
}

.btn-add-comment {
  align-self: flex-end;
  padding: 8px 20px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.btn-add-comment:hover {
  background: var(--secondary);
}

/* View Task Modal Styles */
.task-details-container {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.task-id-status {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.task-id-status h1 {
  font-size: 1.8rem;
  color: var(--dark);
  margin: 0;
}

.task-status-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.task-actions {
  display: flex;
  gap: 8px;
}

.task-title {
  font-size: 1.4rem;
  color: var(--dark);
  margin: 0;
  line-height: 1.4;
}

.task-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: var(--card-radius);
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meta-label {
  font-size: 0.85rem;
  color: var(--gray);
  font-weight: 500;
}

.meta-value {
  font-size: 0.95rem;
  color: var(--dark);
  font-weight: 500;
}

.task-type-badge,
.task-priority-badge {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-block;
}

.progress-bar.small {
  height: 20px;
}

.progress-bar.small .progress-text {
  font-size: 0.75rem;
}

/* Sections */
.section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section h3 {
  font-size: 1.1rem;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.section-content {
  padding: 15px;
  background: white;
  border-radius: var(--card-radius);
  border: 1px solid #e0e0e0;
}

/* Time Tracking Stats */
.time-tracking-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 15px;
  margin-bottom: 15px;
}

.time-stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15px;
  background: white;
  border-radius: var(--card-radius);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.time-stat-card .time-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}

.time-stat-card .time-stat-label {
  font-size: 0.85rem;
  color: var(--gray);
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 20px;
}

.timeline:before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #e0e0e0;
}

.timeline-item {
  position: relative;
  margin-bottom: 20px;
  padding-left: 20px;
}

.timeline-item:before {
  content: '';
  position: absolute;
  left: -6px;
  top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
}

.timeline-date {
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 4px;
}

.timeline-content {
  color: var(--dark);
}

/* Comments Container */
.comments-container {
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 15px;
}

.no-comments {
  text-align: center;
  padding: 30px;
  color: var(--gray);
}

.no-comments i {
  font-size: 2rem;
  margin-bottom: 10px;
  opacity: 0.5;
}

/* Button Styles */
.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--secondary);
}

.btn-secondary {
  background: var(--gray);
  color: white;
}

.btn-secondary:hover {
  background: #5a6268;
}

.btn-danger {
  background: #dc3545;
  color: white;
}

.btn-danger:hover {
  background: #c82333;
}

/* Responsive Design */
@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .task-header {
    flex-direction: column;
    gap: 15px;
  }

  .task-actions {
    width: 100%;
    justify-content: space-between;
  }

  .task-meta-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 576px) {
  .task-id-status {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .modal-footer {
    flex-direction: column;
    gap: 10px;
  }

  .modal-footer .btn {
    width: 100%;
  }
}

/* ================================ */
/* ROLES & FOCUS AREAS SPECIFIC STYLES */
/* ================================ */

.roles-container {
  max-width: 1200px;
  margin: 0 auto;
  margin-top: 20px;
  padding: 40px 20px;
  background-color: var(--bg-color);
}

.main-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: var(--primary);
}

.dark-mode .main-title {
  color: #4CAF50;
}

.light-mode .main-title {
  color: #2e7d32;
}

.subtitle {
  text-align: center;
  color: var(--text-color);
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.8;
}

#roles-focus-areas .section-title {
  font-size: 1.8rem;
  margin: 50px 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
  color: var(--primary);
}

#roles-focus-areas .three-columns-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

#roles-focus-areas .column-card {
  background: var(--card-bg);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 6px var(--shadow-color);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

#roles-focus-areas .column-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px var(--shadow-color);
  border-color: var(--primary);
}

#roles-focus-areas .icon-container {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 15px;
  width: 60px;
  height: 60px;
  background: rgba(76, 175, 80, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dark-mode #roles-focus-areas .icon-container {
  background: rgba(76, 175, 80, 0.15);
}

.light-mode #roles-focus-areas .icon-container {
  background: rgba(76, 175, 80, 0.08);
}

#roles-focus-areas .column-card h3 {
  margin: 15px 0;
  color: var(--primary);
  font-size: 1.3rem;
}

#roles-focus-areas .column-card p {
  color: var(--text-color);
  line-height: 1.6;
  opacity: 0.9;
}

#roles-focus-areas .column-card .title {
  font-weight: bold;
  color: var(--text-color);
  margin-bottom: 15px;
  font-size: 1.1rem;
  opacity: 0.9;
}

#roles-focus-areas .column-card ul {
  list-style: none;
  padding-left: 0;
}

#roles-focus-areas .column-card li {
  padding: 5px 0;
  color: var(--text-color);
  position: relative;
  padding-left: 20px;
  opacity: 0.9;
}

#roles-focus-areas .column-card li:before {
  content: "•";
  color: var(--primary);
  position: absolute;
  left: 0;
}

.full-width-card {
  background: var(--card-bg);
  border-radius: 10px;
  padding: 30px;
  margin: 40px 0;
  box-shadow: 0 4px 6px var(--shadow-color);
  border: 1px solid var(--border-color);
}

.full-width-card h2 {
  color: var(--primary);
  margin-bottom: 20px;
}

.full-width-card ul {
  list-style: none;
  padding-left: 0;
}

.full-width-card li {
  padding: 8px 0;
  color: var(--text-color);
  position: relative;
  padding-left: 25px;
  opacity: 0.9;
}

.full-width-card li:before {
  content: "✓";
  color: var(--primary);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.palkeeper-section {
  margin-top: 5px;
  padding-top: 5px;
}

.stage-card {
  background: var(--card-bg);
  border-radius: 10px;
  padding: 30px;
  margin: 30px 0;
  box-shadow: 0 4px 6px var(--shadow-color);
  border-left: 5px solid var(--primary);
}

.current-stage {
  border-left-color: #28a745;
}

.medium-stage {
  border-left-color: #007bff;
}

.future-stage {
  border-left-color: #6f42c1;
}

.role-highlight {
  background: var(--hover-bg);
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
  border: 1px solid var(--border-color);
}

.role-highlight h4 {
  color: var(--primary);
  margin-bottom: 10px;
}

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

.role-item {
  background: var(--hover-bg);
  padding: 15px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.role-item h4 {
  color: var(--primary);
  margin-bottom: 5px;
}

.role-item p {
  color: var(--text-color);
  opacity: 0.8;
  font-size: 0.9rem;
}

.priority-card {
  background: rgba(76, 175, 80, 0.1);
  padding: 25px;
  border-radius: 10px;
  margin: 30px 0;
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.dark-mode .priority-card {
  background: rgba(76, 175, 80, 0.15);
}

.light-mode .priority-card {
  background: rgba(76, 175, 80, 0.08);
}

.priority-card h2 {
  color: var(--primary);
  margin-bottom: 15px;
}

.priority-card ol {
  padding-left: 20px;
  color: var(--text-color);
}

.priority-card li {
  padding: 5px 0;
  opacity: 0.9;
}

.principles-card {
  background: rgba(111, 66, 193, 0.1);
  padding: 25px;
  border-radius: 10px;
  margin: 30px 0;
  border: 1px solid rgba(111, 66, 193, 0.3);
}

.dark-mode .principles-card {
  background: rgba(111, 66, 193, 0.15);
}

.light-mode .principles-card {
  background: rgba(111, 66, 193, 0.08);
}

.principles-card h2 {
  color: #6f42c1;
  margin-bottom: 15px;
}

.principles-card ul {
  list-style: none;
  padding-left: 0;
}

.principles-card li {
  padding: 8px 0;
  color: var(--text-color);
  position: relative;
  padding-left: 25px;
  opacity: 0.9;
}

.principles-card li:before {
  content: "→";
  color: #6f42c1;
  position: absolute;
  left: 0;
  font-weight: bold;
}

.final-note {
  background: rgba(255, 193, 7, 0.1);
  padding: 25px;
  border-radius: 10px;
  margin: 30px 0;
  border-left: 5px solid #ffc107;
  border: 1px solid rgba(255, 193, 7, 0.3);
}

.dark-mode .final-note {
  background: rgba(255, 193, 7, 0.15);
}

.light-mode .final-note {
  background: rgba(255, 193, 7, 0.08);
}

.final-note h2 {
  color: #ffc107;
  margin-bottom: 15px;
}

.final-note p {
  color: var(--text-color);
  line-height: 1.6;
  opacity: 0.9;
}

.column-card .title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-color);
}

.column-card ul {
  font-size: 1rem;
  text-align: left;
  margin-top: 1rem;
  padding-left: 1rem;
}

.column-card li {
  font-size: 0.9rem;
  text-align: left;
  margin-top: 0.5rem;
  padding-left: 1rem;
}

#roles-focus-areas .three-columns-container {
  margin-top: 2rem;
}

#roles-focus-areas .section-title {
  margin-left: 0;
}

/* Also including the global .three-columns-container and .column-card styles that are referenced */

.three-columns-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin: 2rem auto 2rem;
  width: 100%;
  max-width: 1200px;
  padding: 0 1rem;
}

.column-card {
  flex: 1;
  min-width: 300px;
  max-width: 350px;
  background-color: var(--card-bg);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 5px 20px var(--shadow-color);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(76, 175, 80, 0.1);
}

.column-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(76, 175, 80, 0.2);
  border-color: rgba(76, 175, 80, 0.3);
}

.icon-container {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.1) 0%, rgba(76, 175, 80, 0.2) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.icon-container i {
  font-size: 2.5rem;
  color: var(--primary);
  transition: var(--transition);
  z-index: 2;
  position: relative;
}

.column-card:hover .icon-container {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  transform: scale(1.1) rotate(5deg);
}

.column-card:hover .icon-container i {
  color: white;
  transform: scale(1.1);
}

.column-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
  transition: var(--transition);
}

.column-card:hover h3 {
  color: var(--primary-dark);
  transform: translateY(-2px);
}

.column-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-color);
  opacity: 0.9;
  margin-top: 0.5rem;
  transition: var(--transition);
}

.column-card:hover p {
  opacity: 1;
}

.column-card li {
  font-size: 0.9rem;
  text-align: left;
  margin-top: 1rem;
  padding-left: 1rem;
  color: var(--text-color);
}

/* Responsive styles for Roles & Focus Areas */
@media (max-width: 768px) {
  .roles-container {
    padding: 20px 15px;
  }

  .main-title {
    font-size: 2rem;
  }

  #roles-focus-areas .three-columns-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .full-width-card {
    padding: 20px;
  }

  .stage-card {
    padding: 20px;
  }
}

@media (max-width: 576px) {
  .main-title {
    font-size: 1.8rem;
  }

  #roles-focus-areas .section-title {
    font-size: 1.5rem;
  }

  .roles-container {
    padding: 15px 10px;
  }

  #roles-focus-areas .column-card {
    padding: 20px;
  }

  .priority-card,
  .principles-card,
  .final-note {
    padding: 20px;
  }
}


/* Manifesto Screen Specific Styles */
.card-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 10px;
  padding: 15px;
  background-color: rgba(10, 75, 12, 0.15);
  border-radius: 8px;
  margin-bottom: 20px;
}

.card-footer .menu-item {
  padding: 10px 20px;
  border: 1px solid #4CAF50;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

/* Menu item hover states */
.card-footer .menu-item:hover {
  background-color: rgba(76, 175, 80, 0.1);
  border-color: #4CAF50;
}

.card-footer .menu-item.active {
  background-color: #4CAF50 !important;
  color: white !important;
  border-color: #4CAF50 !important;
  font-weight: 600;
}

.card-footer .menu-item.active:hover {
  background-color: #388E3C !important;
  border-color: #000000 !important;
}

/* Eye icon button styling */
.btn-view i.fa-eye {
  font-size: 1rem;
  color: white;
}

/* User Data Screen Styles */
#user-data .user-data-container {
  background-color: white;
  border-radius: var(--card-radius);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  padding: 30px;
  margin-top: 20px;
}

.user-data-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.user-data-item {
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid var(--primary);
}

.user-data-item label {
  font-weight: 600;
  color: var(--gray);
  font-size: 0.9rem;
  display: block;
  margin-bottom: 5px;
}

.user-data-item .value {
  font-size: 1.1rem;
  color: var(--dark);
  font-weight: 500;
}

/* Back button styling */
#back-to-accounts {
  background-color: var(--gray);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

#back-to-accounts:hover {
  background-color: #5a6268;
}

/* User-specific Overview Styles */
.user-overview-container {
  background-color: white;
  border-radius: var(--card-radius);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  padding: 25px;
  margin-bottom: 30px;
}

.user-overview-container .page-title {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e0e0e0;
}

.user-overview-container .page-title h2 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 5px;
}

.user-overview-container .page-title p {
  color: var(--gray);
  font-size: 0.95rem;
}

.user-overview-container .card-subtitle {
  font-size: 0.85rem;
  color: var(--gray);
  margin-top: 5px;
}

.user-overview-container .no-data {
  text-align: center;
  padding: 30px;
  color: var(--gray);
  font-style: italic;
}

.user-overview-container .activity-list {
  max-height: 300px;
  overflow-y: auto;
}

/* User table tabs */
.user-overview-container .table-tabs {
  margin-bottom: 20px;
}

.user-overview-container .table-tab {
  font-size: 0.9rem;
  padding: 8px 16px;
}

/* Ensure the user overview doesn't affect existing overview */
#overview {
  /* Existing overview remains unchanged */
}

#user-data .user-overview-container {
  /* This is scoped to user-data only */
}

/* Dropdown button styling */
/* Status display in page-title */
#user-acct-status {
  font-size: 0.9rem;
  font-weight: 600;
  padding: 6px 12px;
  margin-right: 10px;
}

/* Dropdown button styling */
#user-data-dropdown-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
}

#user-data-dropdown-btn:hover {
  background-color: var(--secondary);
}

#user-data-dropdown-btn.active {
  background-color: var(--secondary);
}

#user-data-dropdown-btn.active i {
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}

/* Dropdown styling */
#user-data-dropdown {
  display: none;
  position: fixed;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  min-width: 180px;
  z-index: 10001;
  overflow: hidden;
  border: 1px solid #e0e0e0;
  animation: dropdownFadeIn 0.2s ease;
}

#user-data-dropdown.show {
  display: block;
}

#user-data-dropdown::before {
  content: '';
  position: absolute;
  top: -8px;
  right: 15px;
  width: 16px;
  height: 16px;
  background: white;
  transform: rotate(45deg);
  border-left: 1px solid #e0e0e0;
  border-top: 1px solid #e0e0e0;
  z-index: -1;
}

/* Status filter buttons */
#user-data-dropdown .status-filter {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 12px 16px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-size: 14px;
  color: var(--dark);
  transition: var(--transition);
  border-bottom: 1px solid #f0f0f0;
}

#user-data-dropdown .status-filter:last-child {
  border-bottom: none;
}

#user-data-dropdown .status-filter:hover {
  background-color: #f8f9fa;
}

#user-data-dropdown .status-filter.selected {
  background-color: rgba(76, 175, 80, 0.1);
  color: var(--primary);
  font-weight: 600;
}

#user-data-dropdown .status-filter.selected::before {
  content: "✓";
  margin-right: 8px;
  font-weight: bold;
}

/* Animation */
@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Profile Image Hover Effects */
.profile-image-square:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.profile-image-square:hover img {
  transform: scale(1.1);
}

.profile-image-square:hover .profile-image-overlay {
  opacity: 1;
}

/* Modal Animation */
#profile-image-modal {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Status colors */
.acct-status-cell {
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 6px;
  text-align: center;
}

.status-active {
  background-color: rgba(76, 175, 80, 0.1);
  color: #28a745;
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.status-suspended {
  background-color: rgba(255, 193, 7, 0.1);
  color: #ffc107;
  border: 1px solid rgba(255, 193, 7, 0.3);
}

.status-banned {
  background-color: rgba(220, 53, 69, 0.1);
  color: #dc3545;
  border: 1px solid rgba(220, 53, 69, 0.3);
}

.status-deleted {
  background-color: rgba(108, 117, 125, 0.1);
  color: #6c757d;
  text-decoration: line-through;
  border: 1px solid rgba(108, 117, 125, 0.3);
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .page-title {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .page-title>div:first-child {
    width: 100%;
    margin-bottom: 20px;
  }

  .page-title>div:last-child {
    width: 100%;
    justify-content: flex-start !important;
  }
}

@media (max-width: 768px) {
  .user-profile-image-container {
    display: none;
    /* Hide profile image on very small screens */
  }
}