:root {
  --primary: #5A2A9B;
  --secondary: #c69fff;
  --accent: #ff00e1;
  --text: #333;
  --light-text: #777;
  --bg: #f9f9f9;
  --white: #ffffff;
  --dark-purple: #3a1a6a;
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
}

.desktop-container {
  display: flex;
  min-height: 100vh;
  padding-bottom: 70px;
}

/* Sidebar Styles */
.sidebar {
  width: 280px;
  background: var(--white);
  padding: 20px 0;
  box-shadow: 2px 0 10px rgba(0,0,0,0.1);
  display: none;
  flex-direction: column;
  height: 100vh;
  position: sticky;
  top: 0;
}

.logo-container {
  padding: 0 20px 20px;
  border-bottom: 1px solid #eee;
}

.logo img {
  width: 120px;
}

.logo-icon {
  font-size: 28px;
  color: var(--accent);
}

.user-profile {
  padding: 20px;
  border-bottom: 1px solid #eee;
}

.profile-container {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(45deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 18px;
}

.user-info h3 {
  margin: 0;
  font-size: 16px;
  color: var(--text);
}

.user-info p {
  margin: 3px 0 0;
  font-size: 13px;
  color: var(--light-text);
}

.stats {
  display: flex;
  gap: 15px;
  margin-top: 5px;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-weight: bold;
  color: var(--primary);
  font-size: 14px;
}

.stat-label {
  font-size: 11px;
  color: var(--light-text);
  margin-top: 3px;
}

.nav-menu {
  padding: 15px 0;
  flex: 1;
  overflow-y: auto;
}

.menu-section {
  margin-bottom: 20px;
}

.section-title {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--light-text);
  letter-spacing: 1px;
}

.nav-item {
  padding: 12px 20px;
  border-radius: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}

.nav-item:hover {
  background: rgba(90, 42, 155, 0.05);
}

.nav-item.active {
  background: rgba(90, 42, 155, 0.1);
  color: var(--primary);
  border-left: 3px solid var(--primary);
  font-weight: 500;
}

.nav-item i {
  width: 20px;
  text-align: center;
  font-size: 18px;
}

.sidebar-footer {
  padding: 5px 20px;
  border-top: 1px solid #eee;
}

.download-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: rgba(90, 42, 155, 0.1);
  color: var(--primary);
  border-radius: 8px;
  margin: 0 20px;
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s;
}

.download-btn:hover {
  background: rgba(90, 42, 155, 0.2);
}

/* Main Content Styles */
.main-content {
  flex: 1;
  padding: 20px;
  width: 100%;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 15px;
  flex-wrap: wrap;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
  min-width: 0;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 20px;
  color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}

.page-title {
  font-size: 14px;
  line-height: 0.9rem;
  font-weight: bold;
  color: var(--primary);
  white-space: nowrap;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
}

.profile-btn img {
width: 45px;
}


/* Alert Message Styles */
.alert-card {
  background-image: linear-gradient(to right, var(--primary, #5A2A9B), var(--accent, #ff00e1));
  color: white;
  height: 100px;
  margin-bottom: 10px;
  border: none;
  border-radius: 20px;
  padding: 15px 20px;
}

.alert-content {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.alert-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.alert-link {
    background-color: var(--dark-purple);
  color: white;
  padding: 3px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s ease;
}

.alert-link:hover {
  background-color: var(--accent);
}
/* Balance Card */
.card {
  background: var(--white);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  position: relative;
  padding-bottom: 15px;
}

.card-title {
  font-size: 13px;
  color: var(--light-text);
}

.card-value {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary);
}

.action-buttons {
  display: flex;
  gap: 15px;
  margin-bottom: 5px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.action-buttons a {
  text-decoration: none;
}

.action-btn {
  flex: 1;
  min-width: 150px;
  padding: 15px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  transition: all 0.2s;
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.primary-btn {
  background: var(--primary);
  color: var(--white);
}

.secondary-btn {
  background: var(--secondary);
  color: var(--text);
}

/* Compact Stats Section */
.compact-stats {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid rgba(0,0,0,0.05);
}

.compact-stats .stat-item {
  text-align: center;
  padding: 0 5px;
}

.compact-stats .stat-title {
  font-size: 11px;
  color: var(--light-text);
  margin-bottom: 5px;
}

.compact-stats .stat-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

/* Quick Actions */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
  margin-top: 20px;
}

.quick-action {
  background: var(--white);
  padding: 10px;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  text-decoration: none;
  color: var(--text);
}

.quick-action:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.quick-action i {
  color: var(--primary);
  font-size: 24px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(90, 42, 155, 0.1);
  border-radius: 50%;
}

.quick-action-text {
  font-weight: 500;
  font-size: 14px;
}

/* Welcome Section */
.welcome-section {
  background: var(--white);
  padding: 19px;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.welcome-section .section-title {
  font-weight: bold;
  color: var(--primary);
  font-size: 18px;
}

.welcome-section .section-text {
  color: var(--light-text);
  font-size: 14px;
  line-height: 1.3;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.feature-card {
  background: rgba(90, 42, 155, 0.05);
  padding: 15px;
  border-radius: 10px;
  border: 1px solid rgba(90, 42, 155, 0.1);
}

.feature-card a {
  text-decoration: none;
  background-color: var(--dark-purple);
  color: white;
  font-weight: 550;
  font-size: 1rem;
  border-radius: 10px;
  padding: 5px 30px;
  transition: 0.4s ease;
}

.feature-card a:hover {
  background-color: var(--accent);
}

.feature-title {
  font-weight: bold;
  color: var(--primary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-title img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: solid 2px var(--accent);
}

.feature-desc {
  color: black;
  font-size: 13px;
  line-height: 1.3;
}

/* Tasks Section */
.tasks-section {
  margin-top: 30px;
}

.tasks-section .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.tasks-section .section-title {
  font-weight: bold;
  color: var(--primary);
  font-size: 18px;
}

.view-more {
  text-align: center;
  color: var(--accent);
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.task-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
}

.task-card {
  background: var(--white);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  transition: all 0.3s;
  border: 1px solid #eee;
}

.task-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.task-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 5px;
}

.task-title {
  font-weight: bold;
  font-size: 16px;
  color: var(--primary);
}

.task-badge {
  background: var(--accent);
  color: white;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: bold;
}

.task-earnings {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 3px;
  font-size: 14px;
}

.task-earnings i {
  color: var(--primary);
}

.task-desc {
  color: var(--light-text);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 15px;
}

.task-platforms {
  display: flex;
  gap: 5px;
  margin-bottom: px;
}

.platform-icon {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.task-availability {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--light-text);
}

.task-count {
  font-weight: bold;
  color: var(--primary);
}

.task-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.task-btn:hover {
  background: var(--dark-purple);
}

/* Reseller Banner */
.reseller-banner {
  background: linear-gradient(to right, var(--primary), var(--dark-purple));
  color: white;
  margin-top: 30px;
  text-align: center;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.reseller-title {
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 15px;
}

.reseller-btn {
  background: white;
  color: var(--primary);
  border: none;
  padding: 10px 25px;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
}

.reseller-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

/* Activities Section */
.activities-section {
  background: var(--white);
  padding: 25px;
  border-radius: 12px;
  margin-top: 30px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.activities-section .section-title {
  font-weight: bold;
  color: var(--primary);
  font-size: 18px;
}

.activities-section .section-text {
  color: var(--light-text);
  font-size: 14px;
  margin-bottom: 20px;
}

.activity-item {
  padding: 15px 0;
  border-bottom: 1px solid #eee;
  display: flex;
  gap: 15px;
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(45deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  flex-shrink: 0;
}

.activity-content {
  flex: 1;
  min-width: 0;
}

.activity-user {
  font-weight: bold;
  color: var(--primary);
  margin-bottom: 5px;
  display: flex;
  justify-content: space-between;
}

.activity-earning {
  color: var(--accent);
  font-size: 13px;
}

.activity-action {
  color: var(--light-text);
  font-size: 13px;
}

/* Mobile Footer Navigation */
.mobile-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  display: flex;
  justify-content: space-around;
  padding: 10px 5px;
  box-shadow: 0 -5px 15px rgba(0,0,0,0.1);
  z-index: 1000;
  display: none;
}

.footer-item-wrapper {
  position: relative;
}

.footer-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--light-text);
  font-size: 10px;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 10px;
  transition: all 0.2s;
  flex: 1;
  max-width: 80px;
}

.footer-item:hover, .footer-item.active {
  color: var(--primary);
  background: rgba(90, 42, 155, 0.05);
  transform: translateY(-5px);
}

.footer-item i {
  font-size: 20px;
}

.footer-item.active i {
  color: var(--primary);
}

.footer-item .badge {
  position: absolute;
  top: -5px;
  right: 5px;
  background: var(--accent);
  color: white;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

/* Responsive Design */
@media (min-width: 992px) {
  .desktop-container {
    padding-bottom: 0;
  }
  
  .sidebar {
    display: flex;
  }
  
  .mobile-footer {
    display: none;
  }
}

@media (max-width: 991px) {
  .main-content {
    padding: 15px;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .mobile-footer {
    display: flex;
  }
  
  .header {
    flex-wrap: wrap;
  }
  
  .search-bar {
    order: 3;
    width: 100%;
    margin-top: 10px;
  }
}

@media (max-width: 576px) {
  .dashboard-cards {
    grid-template-columns: 1fr;
  }
  
  .task-cards {
    grid-template-columns: 1fr;
  }
  
  .quick-actions {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.card, .quick-action, .task-card, .activity-item {
  animation: fadeIn 0.5s ease-out forwards;
}

.task-card:nth-child(1) { animation-delay: 0.1s; }
.task-card:nth-child(2) { animation-delay: 0.2s; }
.task-card:nth-child(3) { animation-delay: 0.3s; }
.task-card:nth-child(4) { animation-delay: 0.4s; }
.task-card:nth-child(5) { animation-delay: 0.5s; }
.task-card:nth-child(6) { animation-delay: 0.6s; }




