/* c:\xampp\htdocs\Pulsetribe_04_05_2025 (2)\assets\css\user\user.css */
/* ==========================================================================
   user.css — GLOBAL User Styles (Layout, Base, Common Elements)
   Imports page-specific styles.
   ========================================================================== */

/* 1) Font Import */
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap");

/* 2) Import Component/Layout Styles */
@import url("user/header.css");
/* Import header styles */
@import url("user/whatsapp.css");
/* Import floating button styles */

/* 3) Import Page-Specific Styles */
@import url("user/pages/dashboard.css");
@import url("user/pages/profile.css");
@import url("user/pages/earnings.css");
@import url("user/pages/referrals.css");
@import url("user/pages/faq.css");
@import url("user/pages/policy-pages.css");
/* Privacy Policy & Terms of Service */
/* Add imports for any other page-specific CSS files here */

/* Global Reset */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 4) Root Variables for User Side */
:root {
  /* Header heights for fixed header offset */
  --header-height: 80px;
  /* Default/desktop */

  /* Glassmorphism Design System */
  --color-primary: #00f0b5;
  --color-secondary: #7877C6;
  --gradient-primary: linear-gradient(135deg, #00f0b5, #7877C6);
  --gradient-accent: linear-gradient(135deg, rgba(0, 240, 181, 0.2), rgba(120, 119, 198, 0.2));

  /* Glass Effects */
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-bg-strong: rgba(255, 255, 255, 0.08);
  --glass-blur: blur(30px);
  --glass-border: 1px solid rgba(255, 255, 255, 0.1);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
  --shadow-glow: 0 0 30px rgba(0, 240, 181, 0.15);

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 50%;
}

@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }

  /* Tablet */
}

@media (max-width: 480px) {
  :root {
    --header-height: 50px;
  }

  /* Mobile */
}

/* 5) Base Body Styles for User Side */
body.user {
  /* Apply only to user pages */
  font-family: "Inter", "Roboto", Arial, sans-serif;
  line-height: 1.6;
  color: #fff;
  background: linear-gradient(135deg,
      rgba(17, 22, 128, 1) 0%,
      rgba(30, 35, 150, 1) 50%,
      rgba(10, 15, 80, 1) 100%);
  background-attachment: fixed;
  padding-top: var(--header-height);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Animated background particles */
body.user::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(0, 240, 181, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(120, 119, 198, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(0, 240, 181, 0.03) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
  animation: particleFloat 20s ease-in-out infinite;
}

@keyframes particleFloat {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(20px, -20px) scale(1.05);
  }

  66% {
    transform: translate(-20px, 20px) scale(0.95);
  }
}

/* Set base font on body, most elements will inherit */
body.user,
body.user button,
body.user input,
body.user select,
body.user textarea {
  font-family: "Roboto", Arial, sans-serif;
}

/* 6) Glassmorphic Sidebar - Modern Card-Based Design */
.sidebar {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 280px;
  height: calc(100vh - var(--header-height));
  padding: var(--spacing-lg);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-right: var(--glass-border);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  z-index: 1001;
  overflow-y: auto;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom Scrollbar for Sidebar */
.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(0, 240, 181, 0.3);
  border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 240, 181, 0.5);
}

/* Sidebar Logo/Branding */
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  background: var(--glass-bg-strong);
  border-radius: var(--radius-lg);
  border: var(--glass-border);
  margin-bottom: var(--spacing-md);
}

.logo-img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  object-fit: contain;
  background: var(--gradient-primary);
  padding: 8px;
}

.sidebar-logo h2 {
  font-size: 1.5rem;
  margin: 0;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  line-height: 1;
}

/* Sidebar Navigation - Card Style */
.sidebar .sidebar-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.sidebar .sidebar-nav li {
  margin: 0;
}

.sidebar .sidebar-nav a {
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md) var(--spacing-lg);
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  background: var(--glass-bg);
  border: var(--glass-border);
  border-radius: var(--radius-md);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.sidebar .sidebar-nav a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--gradient-primary);
  transform: scaleY(0);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar .sidebar-nav a:hover {
  background: var(--glass-bg-strong);
  color: #fff;
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.sidebar .sidebar-nav a:hover::before {
  transform: scaleY(1);
}

.sidebar .sidebar-nav a i {
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
  transition: transform 0.3s ease;
}

.sidebar .sidebar-nav a:hover i {
  transform: scale(1.15);
}

/* Active State */
.sidebar .sidebar-nav li.active>a {
  background: var(--glass-bg-strong);
  color: #fff;
  font-weight: 600;
  box-shadow: var(--shadow-md), var(--shadow-glow);
  border-left: 3px solid var(--color-primary);
}

.sidebar .sidebar-nav li.active>a::before {
  transform: scaleY(1);
}

.sidebar .sidebar-nav li.active>a i {
  color: var(--color-primary);
  transform: scale(1.1);
}

/* 7) Main content wrapper - Glassmorphic Container */
.main-content {
  margin-left: 280px;
  width: calc(100% - 280px);
  min-height: calc(100vh - var(--header-height));
  padding: var(--spacing-xl);
  background: transparent;
  box-sizing: border-box;
  transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
}

/* 8) Common Elements (Buttons, Alerts, etc.) */
/* Note: Page-specific styles like dashboard, profile, etc., are now imported */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  text-align: center;
  margin-top: 0.5rem;
  margin-right: 0.5rem;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--color-primary, #00f0b5);
  color: #111;
}

.btn--primary:hover {
  background: #00d8a3;
}

.btn--success {
  background: #28a745;
  color: #fff;
}

.btn--success:hover {
  background: #218838;
}

.alert {
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  text-align: center;
}

.alert--error {
  background: rgba(255, 0, 0, 0.2);
  color: #ffdddd;
  border: 1px solid rgba(255, 0, 0, 0.4);
}

.alert--success {
  background: rgba(0, 255, 0, 0.15);
  color: #ddffdd;
  border: 1px solid rgba(0, 255, 0, 0.3);
}

/* ==========================================================================
   9. GLOBAL Responsive Breakpoint (Affects Layout)
   ========================================================================== */
@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }

  /* Hide sidebar by default on mobile */
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
    z-index: 2000;
  }

  .main-content {
    margin-left: 0;
    width: 100%;
    padding: var(--spacing-lg);
  }
}

@media (max-width: 480px) {
  :root {
    --header-height: 50px;
  }

  .sidebar {
    width: 260px;
  }

  .main-content {
    padding: var(--spacing-md);
  }
}

/* ==========================================================================
   USER HEADER STYLES - Glassmorphic Header with Branding
   ========================================================================== */

.user-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 1000;
  background: var(--glass-bg-strong);
  backdrop-filter: var(--glass-blur);
  border-bottom: var(--glass-border);
  box-shadow: var(--shadow-md);
  padding: 0 var(--spacing-xl);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Branding */
.header-brand {
  display: flex;
  align-items: center;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  text-decoration: none;
  color: #fff;
  transition: all 0.3s ease;
}

.brand-link:hover {
  transform: translateY(-2px);
}

.brand-logo-wrapper {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 240, 181, 0.1);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 4px 15px rgba(0, 240, 181, 0.2);
  transition: all 0.3s ease;
}

.brand-logo-wrapper:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 240, 181, 0.3);
}

.brand-logo-icon {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.brand-title {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* User Section */
.header-user-section {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
}

.user-greeting {
  display: flex;
  align-items: center;
}

.greeting-text {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
}

.greeting-text strong {
  color: var(--color-primary);
  font-weight: 600;
}

/* User Menu */
.user-menu {
  position: relative;
}

.user-menu-toggle {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--glass-bg);
  border: var(--glass-border);
  color: var(--color-primary);
  font-size: 1.3rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-menu-toggle:hover {
  background: var(--glass-bg-strong);
  transform: scale(1.05);
  box-shadow: var(--shadow-glow);
}

/* User Dropdown */
.user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 200px;
  background: var(--glass-bg-strong);
  backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--spacing-sm);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.user-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.dropdown-item:hover {
  background: var(--glass-bg);
  color: var(--color-primary);
}

.dropdown-item i {
  width: 20px;
  text-align: center;
  font-size: 1.1rem;
}

.dropdown-item.logout {
  color: #ff6b6b;
}

.dropdown-item.logout:hover {
  background: rgba(255, 107, 107, 0.1);
  color: #ff6b6b;
}

.dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: var(--spacing-sm) 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .user-header {
    padding: 0 var(--spacing-lg);
  }

  .brand-title {
    font-size: 1.25rem;
  }

  .brand-logo-wrapper {
    width: 42px;
    height: 42px;
    padding: 6px;
  }

  .user-greeting {
    display: none;
  }
}

@media (max-width: 480px) {
  .user-header {
    padding: 0 var(--spacing-md);
  }

  .brand-title {
    font-size: 1.1rem;
  }

  .brand-logo-wrapper {
    width: 36px;
    height: 36px;
    padding: 5px;
  }

  .user-menu-toggle {
    width: 35px;
    height: 35px;
    font-size: 1.1rem;
  }

  .user-dropdown {
    right: -10px;
  }
}