/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

/* ===== BODY ===== */
body {
  display: flex;
  background: #000000; /* Pure Black */
  color: #e6edf3;
  height: 100vh;
  overflow: hidden;
}
/* ===== SIDEBAR ===== */
.sidebar {
  width: 220px;
  min-width: 220px;
  background: #060913; /* Slightly lighter than pitch black */
  height: 100vh;
  border-right: 1px solid rgba(255,255,255,0.1); /* Stronger separator line */
  display: flex;
  flex-direction: column;
  padding: 24px 12px;
}

.logo {
  font-size: 18px;
  font-weight: bold;
  color: #4da3ff;
  padding: 0 10px;
  margin-bottom: 28px;
}

.sidebar button {
  width: 100%;
  padding: 11px 14px;
  background: transparent;
  border: none;
  color: #8b949e;
  text-align: left;
  cursor: pointer;
  font-size: 14px;
  border-radius: 10px;
  margin-bottom: 4px;
  transition: 0.2s;
}

.sidebar button:hover,
.sidebar button.active {
  background: rgba(77,163,255,0.12);
  color: #4da3ff;
}

/* ===== MAIN ===== */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0; /* FIX: Allows Chart.js to shrink back down */
}

/* ===== TOPBAR ===== */
.topbar {
  height: 58px;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: #060913; /* Slightly lighter than pitch black */
  border-bottom: 1px solid rgba(255,255,255,0.1); /* Stronger separator line */
}

.topbar-title {
  font-size: 16px;
  font-weight: 600;
  color: #e6edf3;
}

.topbar input {
  background: #0b1425;
  border: 1px solid rgba(255,255,255,0.08);
  padding: 8px 14px;
  border-radius: 8px;
  color: white;
  width: 220px;
  font-size: 13px;
  outline: none;
  transition: 0.2s;
}

.topbar input:focus {
  border-color: rgba(77,163,255,0.4);
}

/* ===== CONTENT ===== */
.content {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  background: #000000;
  min-width: 0; /* FIX: Allows Chart.js to shrink back down */
}

.content::-webkit-scrollbar { width: 5px; }
.content::-webkit-scrollbar-thumb {
  background: #1c2e4a;
  border-radius: 10px;
}

/* ===== STAT CARDS ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.stat-card {
  background: #0b1425;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 18px 20px;
  transition: 0.2s;
}

.stat-card:hover {
  border-color: rgba(77,163,255,0.25);
}

.stat-title {
  font-size: 12px;
  color: #8b949e;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
  color: #4da3ff;
}

/* ===== CHARTS ROW ===== */
.charts-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
  min-width: 0; /* FIX: Allows the grid to shrink */
  width: 100%;
}

/* ===== CARD ===== */
.card {
  background: #0b1425;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 20px;
  transition: 0.2s;
  min-width: 0; /* FIX: Forces the card to shrink and crush the chart */
  width: 100%;
}

/* FIX: Forces the wrapper around the canvas to respect boundaries */
.card > div[style*="height"] {
  position: relative;
  width: 100%;
}

/* ===== CALENDAR ===== */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.day-box {
  background: #0f1c30;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 6px 8px;
  min-height: 52px;
  font-size: 11px;
}

.day-box small {
  color: #8b949e;
  display: block;
  margin-bottom: 4px;
}

/* ===== TRADES GRID ===== */
.trades-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.trade-card {
  background: #0b1425;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 16px;
  cursor: pointer;
  transition: 0.2s;
  font-size: 14px;
}

.trade-card:hover {
  border-color: rgba(77,163,255,0.3);
  transform: translateY(-2px);
}

.trade-card .symbol {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #e6edf3;
}

/* ===== PROFIT / LOSS ===== */
.profit { color: #3dd68c; }
.loss   { color: #ff5c5c; }

/* ===== SIDE PANEL ===== */
#panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 400px;
  height: 100%;
  background: #0b1425;
  border-left: 1px solid rgba(255,255,255,0.07);
  padding: 24px;
  overflow-y: auto;
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

#panel::-webkit-scrollbar { width: 4px; }
#panel::-webkit-scrollbar-thumb {
  background: #1c2e4a;
  border-radius: 10px;
}

#panel h2 {
  font-size: 18px;
  margin-bottom: 16px;
  color: #e6edf3;
}

#panel p {
  font-size: 14px;
  color: #8b949e;
  margin-bottom: 8px;
}

#panel textarea {
  width: 100%;
  background: #060d1a;
  border: 1px solid rgba(255,255,255,0.08);
  color: #e6edf3;
  padding: 10px;
  border-radius: 8px;
  font-size: 13px;
  resize: vertical;
  min-height: 90px;
  margin-top: 6px;
  outline: none;
}

#panel input[type="file"] {
  margin-top: 10px;
  font-size: 13px;
  color: #8b949e;
}

/* ===== PANEL BUTTONS ===== */
#panel button,
.btn {
  background: linear-gradient(135deg, #1a6fd4, #0a4fa8);
  color: white;
  border: none;
  padding: 9px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  margin-top: 10px;
  margin-right: 8px;
  transition: 0.2s;
}

#panel button:hover,
.btn:hover {
  opacity: 0.85;
}

/* ===== SCREENSHOTS ===== */
.screenshot-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.thumb-wrapper {
  position: relative;
  width: 110px;
  height: 75px;
}

.thumb-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s;
}

.thumb-wrapper img:hover {
  opacity: 0.8;
}

.delete-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  background: #2a1111; /* Deep dark red background */
  border: 1px solid rgba(255, 92, 92, 0.15);
  border-radius: 8px; /* Smooth rounded corners */
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.2s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

/* The REAL Bulletproof Delete Button */
#panel button.delete-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  background: rgba(20, 5, 5, 0.9);
  border: 1px solid rgba(255, 92, 92, 0.3);
  border-radius: 6px;
  padding: 0;
  margin: 0;
  display: none; /* Hidden until hover */
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}

#panel button.delete-btn svg {
  width: 14px;
  height: 14px;
  stroke: #ff5c5c;
  fill: none;
  transition: all 0.2s ease;
}

#panel button.delete-btn:hover {
  background: rgba(255, 92, 92, 0.2);
  border-color: #ff5c5c;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

#panel button.delete-btn:hover svg {
  filter: drop-shadow(0 0 5px rgba(255, 92, 92, 1));
  transform: scale(1.1);
}

/* THE FIX: Correct order so it actually shows up on hover */
#panel .thumb-wrapper:hover button.delete-btn {
  display: flex;
}
/* ===== LIGHTBOX ===== */
#lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.92);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

#lightbox img {
  max-width: 88%;
  max-height: 78%;
  border-radius: 10px;
}

.lightbox-actions {
  margin-top: 16px;
  display: flex;
  gap: 12px;
}

.lightbox-actions button {
  background: #1a2a45;
  color: white;
  border: none;
  padding: 9px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: 0.2s;
}

.lightbox-actions button:hover {
  background: #243a5e;
}
/* Make the calendar icon visible on dark backgrounds */
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    filter: invert(0.8);
    cursor: pointer;
}
/* ============================================================
   PREMIUM UI ANIMATIONS (Path A)
   ============================================================ */

/* 1. The Smooth Panel Slide */
#panel {
    /* If you already have transition properties on #panel, this overrides them */
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: -15px 0 40px rgba(0, 0, 0, 0.6);
}

/* 2. The Trade Card Lift & Transition */
.trade-card {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.trade-card:hover {
    transform: translateY(-6px);
    background: #0d182b;
}

/* 3. The Dynamic Glow (Uses modern :has() selector) */
/* If the card contains a profit class, glow green */
.trade-card:has(.profit):hover {
    border-color: rgba(61, 214, 140, 0.4);
    box-shadow: 0 12px 24px rgba(61, 214, 140, 0.08);
}

/* If the card contains a loss class, glow red */
.trade-card:has(.loss):hover {
    border-color: rgba(255, 92, 92, 0.4);
    box-shadow: 0 12px 24px rgba(255, 92, 92, 0.08);
}

/* 4. Modal Pop-in Animation */
#addModal {
    animation: fadeInBackground 0.3s ease;
}

#addModal .card {
    animation: popInModal 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInBackground {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes popInModal {
    from { transform: translateY(20px) scale(0.95); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}
/* 5. Lightbox Smooth Open/Close */
#lightbox {
    opacity: 0;
    transition: opacity 0.3s ease;
}

#lightbox-img {
    transform: scale(0.85); /* Start slightly smaller */
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================================
   PREMIUM UI ANIMATIONS UPGRADE (Intensified)
   ============================================================ */

/* 1. Stat Cards (Top 4) - Popup & Glow */
.stat-card {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(77,163,255,0.4) !important;
    box-shadow: 0 8px 24px rgba(77,163,255,0.08);
}

/* 2. All Dashboard Cards (Charts & Calendar) - Outline Only */
.card {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.card:hover {
    border-color: rgba(77,163,255,0.3) !important;
}

/* 3. Trade Cards - Intensified Neon Glow */
.trade-card:has(.profit):hover {
    border-color: rgba(61, 214, 140, 0.8) !important;
    box-shadow: 0 12px 32px rgba(61, 214, 140, 0.2) !important;
}
.trade-card:has(.loss):hover {
    border-color: rgba(255, 92, 92, 0.8) !important;
    box-shadow: 0 12px 32px rgba(255, 92, 92, 0.2) !important;
}

/* 4. Calendar Dates - Popup & Dynamic Glow */
.day-box {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    cursor: pointer;
}

/* Default hover for empty days */
.day-box:hover {
    transform: translateY(-4px);
    border-color: rgba(77,163,255,0.3) !important;
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

/* Magic Hover: If the day has a Profit (green text), glow green */
.day-box:has(span[style*="#3dd68c"]):hover {
    border-color: rgba(61, 214, 140, 0.8) !important;
    box-shadow: 0 8px 24px rgba(61, 214, 140, 0.2) !important;
}

/* Magic Hover: If the day has a Loss (red text), glow red */
.day-box:has(span[style*="#ff5c5c"]):hover {
    border-color: rgba(255, 92, 92, 0.8) !important;
    box-shadow: 0 8px 24px rgba(255, 92, 92, 0.2) !important;
}
/* ===== SCREENSHOTS GRID FIX ===== */
.screenshot-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  margin-bottom: 20px; /* Pushes the Save button down */
  width: 100%;
}

.thumb-wrapper {
  position: relative;
  width: 110px;
  height: 75px;
  flex-shrink: 0; /* Stops the images from squishing */
}

.thumb-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Crops them into perfect little rectangles */
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.1);
  transition: 0.2s;
}

.thumb-wrapper img:hover {
  opacity: 0.8;
}
/* ============================================================
   MOBILE RESPONSIVENESS (SLIDE-OUT DRAWER & TOPBAR)
   ============================================================ */
@media (max-width: 800px) {
  body { flex-direction: column; overflow-x: hidden; }

  /* 1. MAKE TOPBAR SCROLL AWAY */
  .main { 
    display: block !important; /* Forces normal vertical scrolling */
    overflow-y: auto !important; 
    height: 100vh;
  }
  .content { overflow-y: visible !important; }

  /* 2. TOPBAR ROW 1: Hamburger & Centered Branding */
  .topbar { 
    display: flex !important;
    height: auto !important; 
    min-height: unset !important;
    flex-direction: column !important; 
    padding: 16px !important; 
    gap: 16px !important; 
  }
  .topbar-title { display: none !important; }
  
  .topbar > div:first-child { 
    display: grid !important;
    grid-template-columns: 1fr auto 1fr !important;
    align-items: center !important;
    width: 100% !important;
  }
  
  .hamburger { 
    display: flex !important; 
    justify-self: start !important; 
    margin: 0 0 0 -8px !important; /* Perfect left alignment */
    padding: 0 !important;
    position: static !important; 
    transform: none !important;
  }

  .topbar-brand { 
    display: block !important; 
    justify-self: center !important; 
    margin: 0 !important;
    transform: none !important;
  }

  /* 3. TOPBAR ROW 2: 50/50 Filters & 100% Add Button */
  .topbar > div:last-child { 
    display: flex !important; 
    flex-direction: row !important; 
    flex-wrap: wrap !important; 
    gap: 10px !important;
    width: 100% !important;
  }
  #filterDirection, #search { 
    width: calc(50% - 5px) !important; 
    padding: 0 8px !important; 
    font-size: 12px !important; 
  }
  .topbar button.btn { 
    width: 100% !important; 
    margin: 0 !important; 
  }

  /* 4. SIDEBAR & GRID FIXES */
  .sidebar {
    position: fixed; top: 0; left: -280px; height: 100vh; width: 250px !important;
    z-index: 9999; box-shadow: 10px 0 30px rgba(0,0,0,0.8); background: #060913;
    align-items: stretch !important; transition: left 0.3s ease;
  }
  .sidebar.mobile-open { left: 0; }
  .sidebar button:not(.desktop-toggle) { margin-bottom: 4px !important; width: 100% !important; font-size: 14px !important; padding: 11px 14px !important; justify-content: flex-start !important; }
  .sidebar button:not(.desktop-toggle) svg { margin-right: 10px !important; }
  .sidebar .logo-text, .sidebar div[style*="font-size: 11px"] { display: block !important; }
  .sidebar div[style*="font-size: 11px"] { margin: 24px 0 8px 10px !important; text-align: left !important; width: 100% !important; }
  .desktop-toggle { display: none !important; }
  
  /* 5. ANALYTICS GRIDS */
  div[style*="grid-template-columns: repeat(3, 1fr)"] { grid-template-columns: repeat(2, 1fr) !important; }
  .charts-row[style*="grid-template-columns: 1fr 1fr;"] { grid-template-columns: 1fr !important; }
  #panel { width: 100%; }
}
/* ============================================================
   COLLAPSIBLE SIDEBAR (DESKTOP)
   ============================================================ */
.sidebar {
  transition: width 0.3s ease, left 0.3s ease;
  overflow-x: hidden;
  white-space: nowrap; /* Stops text from wrapping */
}

.sidebar.collapsed {
  width: 76px;
  min-width: 76px;
}

/* Hide text when collapsed */
.sidebar.collapsed .logo-text,
.sidebar.collapsed div[style*="font-size: 11px"] {
  display: none;
}

/* 1. FIX: Keep the arrow visible and flip it */
.sidebar.collapsed .desktop-toggle {
  transform: rotate(180deg);
  margin: 0 auto;
}

/* 2. FIX: Hide text on menu buttons, but keep SVG. Fix the "blue faint" width */
.sidebar.collapsed button:not(.desktop-toggle) {
  font-size: 0;
  padding: 12px 0; /* Makes the hover highlight a neat square */
  justify-content: center;
}
.sidebar.collapsed button:not(.desktop-toggle) svg {
  margin: 0 !important;
}

.hamburger {
  display: none !important;
}

/* ============================================================
   MOBILE RESPONSIVENESS (SLIDE-OUT DRAWER)
   ============================================================ */
@media (max-width: 800px) {
  body { flex-direction: column; overflow-y: auto; overflow-x: hidden; }

  /* 3. FIX: Perfect Mobile Slide-out Drawer */
  .sidebar {
    position: fixed;
    top: 0;
    left: -280px; 
    height: 100vh;
    width: 250px !important; /* Force normal width */
    z-index: 9999;
    box-shadow: 10px 0 30px rgba(0,0,0,0.8);
    background: #060913; 
  }

  .sidebar.mobile-open {
    left: 0;
  }

  /* Force text and normal buttons to show inside the mobile drawer */
  .sidebar button:not(.desktop-toggle) {
    font-size: 14px !important;
    padding: 11px 14px !important;
    justify-content: flex-start !important;
  }
  .sidebar button:not(.desktop-toggle) svg {
    margin-right: 10px !important;
  }
  .sidebar .logo-text,
  .sidebar div[style*="font-size: 11px"] {
    display: block !important;
  }

  .desktop-toggle { display: none !important; }
  
  /* 4. FIX: Small Hamburger on the left */
  .hamburger { 
    display: flex !important; 
    align-items: center; 
    justify-content: center;
    width: auto;
    padding: 0;
    margin-right: 12px;
  }

  /* Fix Topbar layout */
  .topbar { 
    height: auto; 
    flex-direction: column; 
    padding: 16px; 
    gap: 16px; 
    align-items: flex-start; 
  }
  
  /* Keep Hamburger and Title side-by-side */
  .topbar > div:first-child { 
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
  }

  /* Stack the inputs and buttons */
  .topbar > div:last-child { 
    width: 100%; 
    flex-direction: column; 
    gap: 10px;
  }
  .topbar input, .topbar select, .topbar button { 
    width: 100%; 
  }
  
  .stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .charts-row { grid-template-columns: 1fr; }
  #panel { width: 100%; }
}
/* ============================================================
   UI POLISH FIXES (ARROW, SPACING, MOBILE TOPBAR)
   ============================================================ */

/* 1. FIX DESKTOP ARROW: Stack logo and arrow vertically so it doesn't get pushed off screen */
.sidebar.collapsed > div:first-child {
  flex-direction: column !important;
  gap: 24px;
}
.sidebar.collapsed .logo {
  margin: 0 !important;
  justify-content: center;
}
.sidebar.collapsed .logo svg {
  margin-right: 0 !important;
}

@media (max-width: 800px) {
  /* Hide 'Dashboard', Show 'VaultFX' */
  .topbar-title { display: none !important; }
  .topbar-brand { display: block !important; }
  
  /* Sidebar Alignment */
  .sidebar { align-items: stretch !important; }
  .sidebar button:not(.desktop-toggle) { margin-bottom: 4px !important; width: 100% !important; }
  .sidebar div[style*="font-size: 11px"] { margin: 24px 0 8px 10px !important; text-align: left !important; width: 100% !important; }

  /* FIX #2: Topbar Search & Filter Layout */
  .topbar > div:last-child { 
    flex-direction: row !important; 
    flex-wrap: wrap !important; 
    gap: 10px !important;
  }
  #filterDirection { width: calc(50% - 5px) !important; padding: 0 8px !important; font-size: 12px !important; }
  #search { width: calc(50% - 5px) !important; padding: 0 8px !important; font-size: 12px !important; }
  .topbar button.btn { width: 100% !important; margin: 0 !important; }

  /* FIX #3: Analytics Hardcoded Grids */
  /* Overrides the inline HTML style for the 6 Quick Stats */
  div[style*="grid-template-columns: repeat(3, 1fr)"] {
      grid-template-columns: repeat(2, 1fr) !important;
  }
  /* Overrides the inline HTML style for the Analytics Charts */
  .charts-row[style*="grid-template-columns: 1fr 1fr;"] {
      grid-template-columns: 1fr !important;
  }
}
/* ===== CUSTOM SYMBOL DROPDOWN ===== */
.custom-dropdown {
  position: absolute;
  top: calc(100% + 4px); /* Puts it perfectly below the input box */
  left: 0;
  width: 100%;
  background: #0b1425;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 4000;
  box-shadow: 0 8px 24px rgba(0,0,0,0.8);
}
.custom-dropdown::-webkit-scrollbar { width: 4px; }
.custom-dropdown::-webkit-scrollbar-thumb { background: #1c2e4a; border-radius: 10px; }

.dropdown-item {
  padding: 10px 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.2s;
}
.dropdown-item:last-child { border-bottom: none; }
.dropdown-item:hover { background: rgba(77,163,255,0.1); }
/* ===== PROFILE CARD ===== */
.profile-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 12px;
}
.profile-card:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(77,163,255,0.3);
}
.profile-avatar {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #1a6fd4, #0a4fa8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
  color: white;
  flex-shrink: 0;
}
.profile-info {
  flex-grow: 1;
  overflow: hidden;
}
.profile-name {
  font-size: 14px;
  font-weight: 600;
  color: #e6edf3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.profile-email {
  font-size: 11px;
  color: #8b949e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.settings-icon {
  color: #8b949e;
  transition: transform 0.3s ease, color 0.2s ease;
}
.profile-card:hover .settings-icon {
  color: #4da3ff;
  transform: rotate(45deg); /* Cool spinning gear effect */
}

@media (max-width: 800px) {
  .profile-card { width: 100%; margin-top: 10px; }
}
/* ===== SKELETON LOADER ===== */
.skeleton {
  background: linear-gradient(90deg, #0b1425 25%, #152745 50%, #0b1425 75%);
  background-size: 200% 100%;
  animation: skeletonLoading 1.5s infinite ease-in-out;
  border-color: transparent !important;
  pointer-events: none;
}

.skeleton * {
  visibility: hidden; /* Hides any text inside the ghost cards */
}

@keyframes skeletonLoading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
