/* Global Styles */
:root {
  --primary-color: #2ECC71;
  --primary-light: #2ECC71;
  --primary-dark: #27AE60;
  --secondary-color: #1d3557;
  --accent-color: #457b9d;
  --success-color: #2ecc71;
  --warning-color: #f39c12;
  --error-color: #e74c3c;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;
  --font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --border-radius: 8px;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

/* Theme Variables */
body.light-theme {
  --bg-color: #f8f9fa;
  --card-bg: #ffffff;
  --text-color: #212529;
  --text-muted: #6c757d;
  --border-color: #dee2e6;
  --sidebar-bg: #ffffff;
  --header-bg: #ffffff;
  --hover-bg: #f8f9fa;

  
}

body.light-theme  .logo-white{
     display: none !important;
  }
body.dark-theme  .logo-green{
     display: none !important;
  }
body.dark-theme {
  --bg-color: #1a1d21;
  --card-bg: #2c2f33;
  --text-color: #f8f9fa;
  --text-muted: #adb5bd;
  --border-color: #4e5052;
  --sidebar-bg: #2c2f33;
  --header-bg: #2c2f33;
  --hover-bg: #383b3f;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: var(--transition);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

/* Theme Toggle */
.theme-toggle {
  width: 40px;
  height: 40px;
  background-color: var(--card-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  margin-left: 0.5rem;
}

.theme-toggle:hover {
  transform: scale(1.1);
}

.theme-toggle i {
  font-size: 1.25rem;
  color: var(--text-color);
}

/* Layout Components */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--header-bg);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 100;
  padding: 0;
  transition: var(--transition);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.25rem;
}

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

.sidebar-toggle {
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 1.25rem;
  cursor: pointer;
  margin-right: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: var(--transition);
}

.sidebar-toggle:hover {
  background-color: var(--hover-bg);
}

.search-container {
  position: relative;
  margin-left: 0.5rem;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-500);
  font-size: 0.875rem;
}

.search-input {
  padding: 0.5rem 0.75rem 0.5rem 2.25rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background-color: var(--bg-color);
  color: var(--text-color);
  width: 240px;
  transition: var(--transition);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-color);
  width: 280px;
}

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

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

.header-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--text-color);
  margin-left: 0.5rem;
  transition: var(--transition);
}

.header-icon:hover {
  background-color: var(--hover-bg);
}

.badge {
  position: absolute;
  top: 0;
  right: 0;
  background-color: var(--primary-color);
  color: white;
  font-size: 0.7rem;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

.profile-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.verification-banner {
  background-color: var(--primary-color);
  color: white;
  padding: 0.5rem 1.25rem;
  text-align: center;
  font-weight: 500;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 250px;
  height: 100%;
  background-color: var(--sidebar-bg);
  border-right: 1px solid var(--border-color);
  z-index: 90;
  transition: var(--transition);
  overflow-y: auto;
  padding-top: 70px;
}

.sidebar-header {
  display: flex;
  align-items: center;
  padding:0.2rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-logo {
  height: 65px;
  margin-right: 0.75rem;
}

.sidebar-brand {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-color);
  margin: 0;
}

.sidebar-menu {
  list-style: none;
  padding: 1rem 0;
}

.sidebar-item {
  margin-bottom: 0.25rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  padding: 0.75rem 1.25rem;
  color: var(--text-color);
  transition: var(--transition);
  border-left: 3px solid transparent;
}

.sidebar-link:hover, .sidebar-item.active .sidebar-link {
  background-color: var(--hover-bg);
  color: var(--primary-color);
  border-left-color: var(--primary-color);
}

.sidebar-link i {
  font-size: 1.125rem;
  min-width: 24px;
  margin-right: 0.75rem;
}

.dropdown-icon {
  margin-left: auto;
  font-size: 0.75rem;
  transition: var(--transition);
}

.sidebar-item.active .dropdown-icon {
  transform: rotate(90deg);
}

.sidebar-dropdown {
  list-style: none;
  padding-left: 3.5rem;
  max-height: 0;
  overflow: hidden;
  transition: var(--transition);
}

.sidebar-item.active .sidebar-dropdown {
  max-height: 200px;
}

.sidebar-dropdown a {
  display: block;
  padding: 0.5rem 0;
  color: var(--text-color);
  font-size: 0.9rem;
  transition: var(--transition);
}

.sidebar-dropdown a:hover {
  color: var(--primary-color);
}

.sidebar-badge {
  margin-left: auto;
}

.main-content {
  margin-left: 250px;
  padding-top: 65px;
  transition: var(--transition);
  min-height: 100vh;
}

.sidebar-collapsed .sidebar {
  transform: translateX(-250px);
}

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

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.profile-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  width: 260px;
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  z-index: 200;
  display: none;
  transition: var(--transition);
}

.dropdown-header {
  display: flex;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.dropdown-profile-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 0.75rem;
}

.dropdown-name {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.dropdown-email {
  font-size: 0.825rem;
  color: var(--text-muted);
  margin: 0;
}

.dropdown-divider {
  height: 1px;
  background-color: var(--border-color);
  margin: 0.5rem 0;
}

.dropdown-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  color: var(--text-color);
  transition: var(--transition);
}

.dropdown-item:hover {
  background-color: var(--hover-bg);
  color: var(--primary-color);
}

.dropdown-item i {
  font-size: 1rem;
  min-width: 24px;
  margin-right: 0.75rem;
}

/* Page Content */
.content-page {
  padding: 1.5rem;
}

.page-header {
  margin-bottom: 1.5rem;
}

.page-header h1 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.page-header p {
  color: var(--text-muted);
  margin: 0;
}

.section {
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.view-all {
  font-size: 0.875rem;
  color: var(--primary-color);
}

/* Stats Cards */
.stats-row {
  margin-bottom: 2rem;
}

.stats-card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  box-shadow: var(--box-shadow);
  margin-bottom: 1rem;
  transition: var(--transition);
}

.stats-card:hover {
  transform: translateY(-5px);
}

.stats-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  font-size: 1.5rem;
  color: white;
}

.wallet-icon {
  background-color: #2ecc71;
}

.ongoing-icon {
  background-color: #3498db;
}

.completed-icon {
  background-color: #9b59b6;
}

.withdraw-icon {
  background-color: #f39c12;
}

.stats-info h3 {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.stats-value {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

/* Quick Access */
.quick-access {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.quick-access-item {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 120px;
  text-align: center;
  box-shadow: var(--box-shadow);
  color: var(--text-color);
  transition: var(--transition);
}

.quick-access-item:hover {
  transform: translateY(-5px);
  color: var(--primary-color);
}

.quick-access-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--bg-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--primary-color);
}

/* Jobs */
.jobs-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.job-card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.job-card:hover {
  transform: translateY(-5px);
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.job-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0;
}

.job-price {
  font-weight: 600;
  color: var(--primary-color);
}

.job-description {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.job-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.job-time {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Verification */
.verification-container {
  max-width: 800px;
  margin: 0 auto;
}

.verification-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.step {
  display: flex;
  align-items: flex-start;
  flex: 1;
  position: relative;
}

.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 25px;
  right: 0;
  width: calc(100% - 50px);
  height: 2px;
  background-color: var(--border-color);
  transform: translateX(25px);
}

.step.active:not(:last-child)::after {
  background-color: var(--primary-color);
}

.step-number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-color);
  margin-right: 1rem;
  flex-shrink: 0;
}

.step.active .step-number {
  background-color: var(--primary-color);
  color: white;
}

.step-content h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.step-content p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

.verification-card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--box-shadow);
}

.payment-info {
  margin-top: 1.5rem;
}

.payment-method {
  display: flex;
  align-items: center;
  background-color: var(--bg-color);
  border-radius: var(--border-radius);
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.payment-logo {
  width: 60px;
  margin-right: 1rem;
}

.payment-details p {
  margin-bottom: 0.5rem;
}

.payment-instructions {
  background-color: var(--bg-color);
  border-radius: var(--border-radius);
  padding: 1rem;
}

.payment-instructions h4 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.payment-instructions ol {
  padding-left: 1.5rem;
}

.payment-instructions li {
  margin-bottom: 0.5rem;
}

.verification-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .sidebar {
    transform: translateX(-250px);
  }
  
  .main-content {
    margin-left: 0;
  }
  
  .sidebar-toggle.active + .sidebar {
    transform: translateX(0);
  }
  
  .search-input {
    width: 180px;
  }
  
  .search-input:focus {
    width: 220px;
  }
  
  .verification-steps {
    flex-direction: column;
  }
  
  .step {
    margin-bottom: 1rem;
  }
  
  .step:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: 0.75rem;
  }
  
  .search-container {
    display: none;
  }
  
  .quick-access {
    flex-wrap: wrap;
  }
  
  .quick-access-item {
    min-width: calc(50% - 0.5rem);
  }
  
  .stats-row {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
  }
  
  .stats-row > div {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

@media (max-width: 576px) {
  .content-page {
    padding: 1rem;
  }
  
  .jobs-container {
    grid-template-columns: 1fr;
  }
  
  .quick-access-item {
    min-width: 100%;
  }
}






/* 🌿 Simplebar Customization */
.simplebar-track.simplebar-vertical {
  width: 6px !important; /* Thin vertical */
}

.simplebar-track.simplebar-horizontal {
  height: 6px !important; /* Thin horizontal */
}

.simplebar-scrollbar {
  background-color: #888 !important; /* Default scrollbar color */
  border-radius: 4px !important;
  transition: background-color 0.3s ease;
}

.simplebar-scrollbar:hover {
  background-color: #555 !important; /* Hover effect */
}

/* 🌿 Webkit Scrollbar (Chrome, Safari, Edge) */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-thumb {
  background-color: #888;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #555;
}

::-webkit-scrollbar-track {
  background: transparent;
}

/* 🌿 Firefox Scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: #888 transparent; /* thumb color + track color */
}

*::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

*::-webkit-scrollbar-thumb {
  background-color: #888;
  border-radius: 4px;
}

*::-webkit-scrollbar-thumb:hover {
  background-color: #555;
}




@media (max-width: 992px) {
  .sidebar {
    transform: translateX(-250px);
  }
  .sidebar.active{
  transform: translateX(0) !important;
}

}


/* Profile image container with status dot */
.profile-img-container {
    position: relative;
    display: inline-block;
}

/* Status dot styling */
.status-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
}

.dropdown-profile-container {
    position: relative;
    display: inline-block;
    margin-right: 15px;
}

.dropdown-status-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #fff;
}

/* Status colors */
.status-dot.active,
.dropdown-status-dot.active,
.status-badge.active {
    background-color: #28a745; /* Green for active */
}

.status-dot.inactive,
.dropdown-status-dot.inactive,
.status-badge.inactive {
    background-color: #dc3545; /* Red for inactive */
}

/* Status badge in dropdown */
.status-badge {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    color: white;
    font-weight: bold;
}

.dropdown-status {
    margin-top: 5px;
    font-size: 13px;
    color: #6c757d;
}