/* Minimal clean theme and feed styles */
:root{--bg:#0a0a0a;--fg:#fff;--muted:#888;--accent:#ff3b5c}
*{box-sizing:border-box}
body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Helvetica,Arial,sans-serif;background:var(--bg);color:var(--fg)}
.container{max-width:1100px;margin:0 auto;padding:16px}
button,.btn{background:var(--accent);border:none;color:#fff;padding:10px 14px;border-radius:8px;cursor:pointer}
input,textarea,select{background:#111;border:1px solid #222;color:#fff;border-radius:8px;padding:10px;width:100%}
.card{background:#121212;border:1px solid #1f1f1f;border-radius:12px;padding:16px;margin:12px 0}
.grid{display:grid;gap:12px}
.grid.cols-3{grid-template-columns:repeat(3,1fr)}
.grid.cols-2{grid-template-columns:repeat(2,1fr)}

/* Feed - Mobile-first design */
.feed{height:100vh;overflow-y:scroll;scroll-snap-type:y mandatory}
.feed-item{position:relative;height:100vh;width:100%;scroll-snap-align:start;display:flex;align-items:center;justify-content:center;background:#000}
.feed-item video,.feed-item img{max-height:100vh;max-width:100vw;object-fit:cover;width:100%;height:100%}
.overlay-actions{position:absolute;right:12px;bottom:20%;display:flex;flex-direction:column;gap:14px;z-index:3}
.action{width:48px;height:48px;border-radius:50%;background:#1b1b1b;display:flex;align-items:center;justify-content:center;border:1px solid #2a2a2a}
.action span{font-size:22px;line-height:1}
.action.active{background:#2a2a2a;border-color:#3a3a3a}
.tap-overlay{position:absolute;inset:0;z-index:2;background:transparent}
.header{position:fixed;top:0;left:0;right:0;height:50px;display:flex;align-items:center;justify-content:center;background:linear-gradient(#0008,#0000);z-index:5}
.notice{padding:40px;text-align:center}

/* Play button overlay */
.play-button-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  backdrop-filter: blur(2px);
}

.play-button-overlay:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: translate(-50%, -50%) scale(1.05);
}

.play-button-overlay.hidden {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
}

.play-button-overlay.visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Always show play button - override any hiding */
.play-button-overlay.always-visible {
  opacity: 1 !important;
  transform: translate(-50%, -50%) scale(1) !important;
}

.play-button-overlay::before {
  content: '';
  width: 0;
  height: 0;
  border-left: 20px solid white;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  margin-left: 4px;
}

/* Always show play button on all media types */
.feed-item .play-button-overlay.always-visible {
  opacity: 1 !important;
  transform: translate(-50%, -50%) scale(1) !important;
  display: flex !important;
}

/* Ensure play button is visible on both images and videos */
.feed-item img + .play-button-overlay,
.feed-item video + .play-button-overlay {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Desktop: Mobile-like viewport */
@media (min-width: 768px) {
  body.feed-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a1a 0%, #000 100%);
    padding: 20px;
    margin: 0;
  }
  .mobile-viewport {
    width: 375px;
    height: 90vh;
    max-height: 812px;
    min-height: 600px;
    background: #000;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.1);
  }
  .mobile-viewport .feed {
    height: 100%;
    border-radius: 24px;
    /* Hide scrollbar while keeping scroll functionality */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
  }
  .mobile-viewport .feed::-webkit-scrollbar {
    display: none; /* WebKit browsers (Chrome, Safari, Edge) */
  }
  .mobile-viewport .feed-item {
    height: 100%;
    border-radius: 24px;
  }
  .mobile-viewport .feed-item:first-child {
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
  }
  .mobile-viewport .feed-item video,
  .mobile-viewport .feed-item img {
    max-height: 100%;
    max-width: 100%;
    border-radius: 24px;
  }
  .mobile-viewport .header {
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    backdrop-filter: blur(10px);
    background: rgba(0,0,0,0.7);
  }
  /* Desktop branding */
  body.feed-page::before {
    content: "Web Version";
    position: fixed;
    top: 20px;
    left: 20px;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    z-index: 1000;
    border: 1px solid rgba(255,255,255,0.1);
  }
}

/* Tablet: Slightly larger mobile viewport */
@media (min-width: 768px) and (max-width: 1024px) {
  .mobile-viewport {
    width: 400px;
    height: 85vh;
  }
}

/* Mobile: Full screen (original behavior) */
@media (max-width: 767px) {
  body.feed-page {
    padding: 0;
    background: #000;
  }
  .mobile-viewport {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    box-shadow: none;
    border: none;
  }
  .mobile-viewport .feed {
    border-radius: 0;
  }
  .mobile-viewport .feed-item {
    border-radius: 0;
  }
  .mobile-viewport .feed-item video,
  .mobile-viewport .feed-item img {
    border-radius: 0;
  }
  .mobile-viewport .header {
    border-radius: 0;
  }
}

/* Professional Admin Header */
.admin-layout {
  min-height: 100vh;
  background: #0a0a0a;
}

.admin-header {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  border-bottom: 1px solid #333;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.admin-header-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 70px;
}

/* Brand Section */
.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 200px;
}

.brand-icon {
  font-size: 32px;
  background: linear-gradient(135deg, #ff3b5c, #ff6b8a);
  border-radius: 12px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(255, 59, 92, 0.3);
}

.brand-info {
  line-height: 1.2;
}

.brand-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.brand-subtitle {
  font-size: 12px;
  color: #999;
  margin: 0;
  font-weight: 500;
}

/* Main Navigation */
.admin-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: center;
  max-width: 600px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  color: #ccc;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.nav-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.nav-item:hover::before {
  left: 100%;
}

.nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.nav-item.active {
  color: #fff;
  background: linear-gradient(135deg, #007bff, #0056b3);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.nav-item.active:hover {
  background: linear-gradient(135deg, #0056b3, #004085);
}

.nav-icon {
  font-size: 16px;
  min-width: 20px;
  text-align: center;
}

.nav-label {
  font-size: 14px;
  white-space: nowrap;
}

/* Admin Actions */
.admin-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 200px;
  justify-content: flex-end;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  color: #ccc;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-size: 13px;
  font-weight: 500;
}

.action-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.view-site:hover {
  background: rgba(40, 167, 69, 0.2);
  color: #28a745;
}

.action-icon {
  font-size: 14px;
}

.action-label {
  font-size: 12px;
}

/* User Menu */
.user-menu {
  position: relative;
}

.user-menu-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
}

.user-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.user-avatar {
  font-size: 16px;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #007bff, #0056b3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.user-name {
  font-weight: 500;
}

.dropdown-arrow {
  font-size: 10px;
  transition: transform 0.2s ease;
}

.user-menu-toggle:hover .dropdown-arrow {
  transform: rotate(180deg);
}

/* User Dropdown */
.user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 1001;
}

.user-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  color: #ccc;
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 14px;
}

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

.dropdown-item.logout:hover {
  background: rgba(220, 53, 69, 0.2);
  color: #dc3545;
}

.dropdown-icon {
  font-size: 14px;
  min-width: 16px;
}

.dropdown-divider {
  height: 1px;
  background: #333;
  margin: 4px 0;
}

/* Main Content Area */
.admin-main {
  flex: 1;
}

.admin-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
}

/* Responsive Admin Header */
@media (max-width: 1024px) {
  .admin-header-content {
    padding: 0 16px;
  }

  .admin-brand {
    min-width: 160px;
  }

  .brand-title {
    font-size: 16px;
  }

  .admin-nav {
    gap: 4px;
  }

  .nav-item {
    padding: 10px 12px;
  }

  .nav-label {
    font-size: 13px;
  }

  .admin-actions {
    min-width: 160px;
  }
}

@media (max-width: 768px) {
  .admin-header-content {
    height: auto;
    min-height: 60px;
    flex-wrap: wrap;
    padding: 12px 16px;
    gap: 12px;
  }

  .admin-brand {
    min-width: auto;
  }

  .brand-icon {
    width: 40px;
    height: 40px;
    font-size: 24px;
  }

  .brand-title {
    font-size: 14px;
  }

  .brand-subtitle {
    font-size: 11px;
  }

  .admin-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    gap: 6px;
    margin-top: 8px;
  }

  .nav-item {
    padding: 8px 10px;
    flex: 1;
    justify-content: center;
  }

  .nav-icon {
    font-size: 14px;
  }

  .nav-label {
    font-size: 12px;
  }

  .admin-actions {
    min-width: auto;
    gap: 8px;
  }

  .action-btn {
    padding: 6px 8px;
  }

  .action-label {
    display: none;
  }

  .user-menu-toggle {
    padding: 6px 8px;
    font-size: 12px;
  }

  .user-name {
    display: none;
  }
}

@media (max-width: 480px) {
  .admin-header-content {
    padding: 8px 12px;
  }

  .admin-brand {
    flex: 1;
  }

  .brand-info {
    display: none;
  }

  .admin-nav {
    gap: 4px;
  }

  .nav-item {
    padding: 6px 8px;
    flex-direction: column;
    gap: 2px;
  }

  .nav-icon {
    font-size: 16px;
  }

  .nav-label {
    font-size: 10px;
  }

  .admin-actions {
    gap: 4px;
  }

  .user-dropdown {
    right: -8px;
    min-width: 160px;
  }
}

/* Campaigns Management Styles */
.campaigns-management-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

.campaigns-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #2a2a2a;
}

.campaigns-header h2 {
  margin: 0;
  color: #fff;
  font-size: 24px;
  font-weight: 600;
}

.campaigns-stats {
  display: flex;
  gap: 24px;
}

.create-campaign-container {
  margin-bottom: 20px;
  text-align: right;
}

.campaigns-table-container {
  background: #1a1a1a;
  border-radius: 8px;
  border: 1px solid #2a2a2a;
  overflow: hidden;
}

.campaigns-table {
  width: 100%;
  border-collapse: collapse;
  background: transparent;
}

.campaigns-table thead {
  background: #1e1e1e;
  border-bottom: 2px solid #2a2a2a;
}

.campaigns-table th {
  padding: 16px 12px;
  text-align: left;
  font-weight: 600;
  color: #fff;
  font-size: 14px;
  border-bottom: none;
}

.campaigns-table tbody tr {
  border-bottom: 1px solid #252525;
  transition: background-color 0.2s ease;
}

.campaigns-table tbody tr:hover {
  background: #222;
}

.campaigns-table tbody tr:last-child {
  border-bottom: none;
}

.campaigns-table td {
  padding: 12px;
  vertical-align: middle;
  border-bottom: none;
}

/* Campaign-specific column styling */
.col-name {
  width: 200px;
}

.col-description {
  width: 250px;
  max-width: 250px;
}

.col-content-count {
  width: 120px;
  text-align: center;
}

.campaign-id {
  font-family: monospace;
  color: #00d4ff;
  font-weight: 500;
}

.campaign-name-container,
.campaign-description-container {
  position: relative;
}

.campaign-name {
  color: #fff;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.campaign-name:hover {
  background: rgba(255, 255, 255, 0.1);
}

.campaign-description {
  color: #ccc;
  font-size: 13px;
  line-height: 1.4;
  max-height: 60px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.campaign-name-edit,
.campaign-description-edit {
  width: 100%;
  background: #333;
  border: 1px solid #555;
  color: #fff;
  padding: 6px 8px;
  border-radius: 4px;
  font-size: 13px;
}

.campaign-description-edit {
  resize: vertical;
  min-height: 60px;
}

/* Content Count Badge */
.content-count-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.count-number {
  font-size: 18px;
  font-weight: bold;
  color: #00d4ff;
  line-height: 1;
}

.count-label {
  font-size: 11px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-help {
  font-size: 12px;
  color: #999;
  margin-top: 4px;
  font-style: italic;
}

/* Status badges for campaigns */
.status-published {
  background: rgba(40, 167, 69, 0.2);
  color: #28a745;
  border: 1px solid #28a745;
}

.status-unpublished {
  background: rgba(255, 193, 7, 0.2);
  color: #ffc107;
  border: 1px solid #ffc107;
}

.btn-view {
  background: rgba(0, 123, 255, 0.2);
  color: #007bff;
  border: 1px solid #007bff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-view:hover {
  background: #007bff;
  color: #fff;
  text-decoration: none;
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.modal-content {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #333;
  background: #1e1e1e;
}

.modal-header h3 {
  margin: 0;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  color: #999;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.modal-body {
  padding: 24px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  color: #fff;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 14px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: #2a2a2a;
  border: 2px solid #444;
  color: #fff;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #007bff;
  background: #333;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.5;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #666;
  opacity: 1;
}

.form-help {
  margin-top: 8px;
  font-size: 12px;
  color: #888;
  line-height: 1.4;
}

/* Upload form specific styles */
.upload-form {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 24px;
}

.upload-form h2 {
  margin-top: 0;
  margin-bottom: 24px;
  color: #fff;
}

/* Tooltip System */
.tooltip {
  position: absolute;
  background: rgba(0, 0, 0, 0.95);
  color: #fff;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.4;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  border: 1px solid #444;
  z-index: 10000;
  pointer-events: none;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  max-width: 300px;
  word-wrap: break-word;
}

.tooltip.show {
  opacity: 1;
  transform: translateY(0);
}

.tooltip-title {
  font-weight: 600;
  margin-bottom: 6px;
  color: #fff;
  border-bottom: 1px solid #444;
  padding-bottom: 4px;
}

.tooltip-content {
  color: #ccc;
}

.tooltip-stat {
  display: flex;
  justify-content: space-between;
  margin: 4px 0;
}

.tooltip-stat-label {
  color: #aaa;
}

.tooltip-stat-value {
  color: #fff;
  font-weight: 500;
}

.tooltip-arrow {
  position: absolute;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid rgba(0, 0, 0, 0.95);
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
}

/* Hoverable elements */
.metric-card {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.performance-table tr {
  transition: background-color 0.2s ease;
}

.performance-table tr:hover {
  background: rgba(255, 59, 92, 0.08);
}

/* Chart-specific tooltip styling */
.chart-tooltip {
  font-size: 12px;
  max-width: 250px;
}

.chart-tooltip .tooltip-title {
  font-size: 13px;
  margin-bottom: 8px;
}

/* Enhanced hover states for charts */
canvas {
  transition: opacity 0.2s ease;
}

canvas:hover {
  opacity: 0.95;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 20px 24px;
  border-top: 1px solid #333;
  background: #1e1e1e;
}

/* Button Styles */
.btn-primary {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0056b3, #004085);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.btn-edit:hover {
  background: #007bff;
  color: #fff;
}

/* Responsive Campaigns Table */
@media (max-width: 1200px) {
  .campaigns-management-container {
    padding: 16px;
  }

  .campaigns-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .campaigns-stats {
    gap: 16px;
  }

  .col-description {
    width: 200px;
    max-width: 200px;
  }
}

@media (max-width: 768px) {
  .campaigns-table-container {
    overflow-x: auto;
  }

  .campaigns-table {
    min-width: 800px;
  }

  .create-campaign-container {
    text-align: left;
  }

  .bulk-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .bulk-buttons {
    width: 100%;
    flex-direction: column;
  }

  .bulk-buttons button {
    width: 100%;
    justify-content: center;
  }

  .modal-content {
    width: 95%;
    margin: 20px;
  }

  .modal-header,
  .modal-body,
  .modal-footer {
    padding: 16px 20px;
  }
}

@media (max-width: 480px) {
  .campaigns-management-container {
    padding: 12px;
  }

  .campaigns-header h2 {
    font-size: 20px;
  }

  .campaigns-stats {
    flex-direction: column;
    gap: 12px;
  }

  .stat-item {
    text-align: left;
  }

  .campaigns-table {
    min-width: 600px;
  }

  .col-description {
    display: none;
  }

  .campaigns-table th,
  .campaigns-table td {
    padding: 8px 6px;
  }

  .modal-content {
    width: 100%;
    height: 100%;
    border-radius: 0;
    max-height: none;
  }

  .modal-header,
  .modal-body,
  .modal-footer {
    padding: 16px;
  }

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

  .modal-footer button {
    width: 100%;
  }
}
.table{width:100%;border-collapse:collapse}
.table th,.table td{border-bottom:1px solid #222;padding:8px;text-align:left}
.thumb{width:100%;height:140px;object-fit:cover;border-radius:8px;background:#111}
.progress{height:8px;background:#222;border-radius:999px;overflow:hidden}
.progress .bar{height:100%;background:var(--accent);width:0}

/* Enhanced Dashboard Styles */
.dashboard-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  background: var(--bg);
  min-height: 100vh;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding: 20px 0;
  border-bottom: 1px solid #1f1f1f;
}

.dashboard-header h2 {
  margin: 0;
  color: var(--fg);
  font-size: 28px;
  font-weight: 600;
}

.dashboard-header p {
  margin: 5px 0 0 0;
  color: var(--muted);
  font-size: 14px;
}

.dashboard-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.period-selector {
  background: #1b1b1b;
  border: 1px solid #2a2a2a;
  color: var(--fg);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
}

.refresh-btn {
  background: var(--accent);
  border: none;
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.refresh-btn:hover {
  background: #e6345a;
  transform: translateY(-1px);
}

.refresh-btn.refreshing .refresh-icon {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

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

.metric-card {
  background: linear-gradient(135deg, #1a1a1a 0%, #121212 100%);
  border: 1px solid #1f1f1f;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #00d4ff);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.metric-card:hover {
  transform: translateY(-2px);
  border-color: #2a2a2a;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.metric-card:hover::before {
  opacity: 1;
}

.metric-icon {
  font-size: 32px;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 59, 92, 0.1);
  border-radius: 12px;
  flex-shrink: 0;
}

.metric-content {
  flex: 1;
}

.metric-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--fg);
  margin: 0 0 4px 0;
  line-height: 1;
}

.metric-value.loading {
  background: linear-gradient(90deg, #333 25%, #444 50%, #333 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  color: transparent;
  border-radius: 4px;
  height: 32px;
  width: 80px;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.metric-label {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 4px;
  font-weight: 500;
}

.metric-change {
  font-size: 12px;
  color: #00ff88;
  font-weight: 500;
}

/* Charts Grid */
.charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.chart-card {
  background: #121212;
  border: 1px solid #1f1f1f;
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s ease;
}

.chart-card:hover {
  border-color: #2a2a2a;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

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

.chart-header h3 {
  margin: 0;
  color: var(--fg);
  font-size: 18px;
  font-weight: 600;
}

.chart-loading {
  font-size: 12px;
  color: var(--muted);
  display: none;
}

.chart-container {
  position: relative;
  width: 100%;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

/* Extra height for bar charts with labels */
.chart-container.bar-chart {
  height: 350px;
  padding-bottom: 20px;
}

/* Country List Styling */
.chart-container.country-list-container {
  height: 400px;
  padding: 0;
  overflow: hidden;
  position: relative;
}

.country-list-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #1a1a1a;
  border-radius: 8px;
  border: 1px solid #2a2a2a;
  position: relative;
}

.country-list-header {
  padding: 16px 20px;
  border-bottom: 1px solid #2a2a2a;
  background: #1e1e1e;
  border-radius: 8px 8px 0 0;
  flex-shrink: 0;
}

.country-list-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.country-count {
  color: #00d4ff;
  font-weight: bold;
}

.total-visits {
  color: #00ff88;
  font-size: 12px;
}

.scroll-hint {
  font-size: 11px;
  color: #666;
  text-align: center;
  margin-top: 8px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.country-list-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0;
  min-height: 0;
  max-height: calc(400px - 70px);
}

/* Custom scrollbar styling */
.country-list-scroll::-webkit-scrollbar {
  width: 6px;
}

.country-list-scroll::-webkit-scrollbar-track {
  background: #1a1a1a;
}

.country-list-scroll::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 3px;
}

.country-list-scroll::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.country-item {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid #252525;
  transition: all 0.2s ease;
  opacity: 0;
  animation: slideInUp 0.3s ease forwards;
}

.country-item:hover {
  background: #252525;
  transform: translateX(4px);
}

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

.country-flag {
  font-size: 24px;
  margin-right: 16px;
  min-width: 32px;
  text-align: center;
}

.country-info {
  flex: 1;
  min-width: 0;
}

.country-name {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.country-stats {
  display: flex;
  gap: 12px;
  font-size: 12px;
}

.visit-count {
  color: #00d4ff;
  font-weight: 500;
}

.visit-percentage {
  color: #00ff88;
  font-weight: 500;
}

.country-bar {
  width: 60px;
  height: 4px;
  background: #333;
  border-radius: 2px;
  margin-left: 16px;
  overflow: hidden;
}

.country-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #00d4ff, #00ff88);
  border-radius: 2px;
  transition: width 0.5s ease;
}

/* Empty and Error States */
.empty-state, .error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  padding: 40px 20px;
}

.empty-icon, .error-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.empty-title, .error-title {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.empty-subtitle, .error-subtitle {
  font-size: 14px;
  color: #999;
}

.error-state {
  color: #f87171;
}

/* Animations */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .chart-container.country-list-container {
    height: 350px;
  }

  .country-list-scroll {
    max-height: calc(350px - 70px);
  }

  .country-list-header {
    padding: 12px 16px;
  }

  .country-item {
    padding: 10px 16px;
  }

  .country-flag {
    font-size: 20px;
    margin-right: 12px;
    min-width: 28px;
  }

  .country-name {
    font-size: 13px;
  }

  .country-stats {
    font-size: 11px;
    gap: 8px;
  }

  .country-bar {
    width: 50px;
    margin-left: 12px;
  }
}

@media (max-width: 480px) {
  .chart-container.country-list-container {
    height: 300px;
  }

  .country-list-scroll {
    max-height: calc(300px - 70px);
  }

  .country-list-title {
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
  }

  .country-item {
    padding: 8px 12px;
  }

  .country-flag {
    font-size: 18px;
    margin-right: 10px;
    min-width: 24px;
  }

  .country-bar {
    width: 40px;
    margin-left: 8px;
  }
}

/* Content Management Table Styles */
.content-management-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

.content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #2a2a2a;
}

.content-header h2 {
  margin: 0;
  color: #fff;
  font-size: 24px;
  font-weight: 600;
}

.content-stats {
  display: flex;
  gap: 24px;
}

.stat-item {
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 20px;
  font-weight: bold;
  color: #00d4ff;
}

.stat-label {
  display: block;
  font-size: 12px;
  color: #999;
  margin-top: 4px;
}

.content-filters {
  margin-bottom: 20px;
}

.filter-form {
  background: #1a1a1a;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid #2a2a2a;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.filter-group label {
  color: #fff;
  font-weight: 500;
  min-width: 120px;
}

.filter-group select {
  max-width: 300px;
}

.bulk-actions-container {
  margin-bottom: 20px;
}

.bulk-actions {
  background: #1a1a1a;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid #2a2a2a;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.bulk-selection {
  display: flex;
  align-items: center;
  gap: 12px;
}

.selection-count {
  color: #00d4ff;
  font-weight: 500;
  font-size: 14px;
}

.bulk-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn-secondary {
  background: #444;
  color: #fff;
  border: 1px solid #555;
}

.btn-success {
  background: #28a745;
  color: #fff;
}

.btn-warning {
  background: #ffc107;
  color: #000;
}

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

.btn-primary {
  background: #007bff;
  color: #fff;
}

.btn-icon {
  margin-right: 6px;
}

.bulk-message {
  margin-left: auto;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
}

.message-success {
  background: rgba(40, 167, 69, 0.2);
  color: #28a745;
  border: 1px solid #28a745;
}

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

.message-info {
  background: rgba(0, 123, 255, 0.2);
  color: #007bff;
  border: 1px solid #007bff;
}

/* Content Table Styles */
.content-table-container {
  background: #1a1a1a;
  border-radius: 8px;
  border: 1px solid #2a2a2a;
  overflow: hidden;
}

.content-table {
  width: 100%;
  border-collapse: collapse;
  background: transparent;
}

.content-table thead {
  background: #1e1e1e;
  border-bottom: 2px solid #2a2a2a;
}

.content-table th {
  padding: 16px 12px;
  text-align: left;
  font-weight: 600;
  color: #fff;
  font-size: 14px;
  border-bottom: none;
}

.content-table tbody tr {
  border-bottom: 1px solid #252525;
  transition: background-color 0.2s ease;
}

.content-table tbody tr:hover {
  background: #222;
}

.content-table tbody tr:last-child {
  border-bottom: none;
}

.content-table td {
  padding: 12px;
  vertical-align: middle;
  border-bottom: none;
}

/* Column-specific styling */
.col-select {
  width: 40px;
  text-align: center;
}

.col-preview {
  width: 80px;
}

.col-id {
  width: 60px;
}

.col-type {
  width: 100px;
}

.col-batch {
  width: 200px;
}

.col-dimensions {
  width: 100px;
}

.col-status {
  width: 120px;
}

.col-created {
  width: 120px;
}

.col-actions {
  width: 100px;
}

/* Content preview styling */
.content-preview {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  background: #111;
}

.content-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.video-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  pointer-events: none;
}

/* Content info styling */
.content-id {
  font-family: monospace;
  color: #00d4ff;
  font-weight: 500;
}

.type-badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.type-image {
  background: rgba(0, 212, 255, 0.2);
  color: #00d4ff;
  border: 1px solid #00d4ff;
}

.type-video {
  background: rgba(255, 59, 92, 0.2);
  color: #ff3b5c;
  border: 1px solid #ff3b5c;
}

.batch-info {
  line-height: 1.4;
}

.batch-title {
  color: #fff;
  font-weight: 500;
  font-size: 14px;
}

.batch-slug {
  color: #999;
  font-size: 12px;
  font-family: monospace;
}

.dimensions {
  color: #999;
  font-family: monospace;
  font-size: 12px;
}

.dimensions-unknown {
  color: #666;
  font-style: italic;
}

/* Status badges */
.status-badge {
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.status-published {
  background: rgba(40, 167, 69, 0.2);
  color: #28a745;
  border: 1px solid #28a745;
}

.status-unpublished {
  background: rgba(255, 193, 7, 0.2);
  color: #ffc107;
  border: 1px solid #ffc107;
}

.created-date {
  color: #999;
  font-size: 12px;
}

/* Action buttons */
.action-buttons {
  display: flex;
  gap: 4px;
}

.btn-action {
  background: #333;
  border: 1px solid #444;
  color: #fff;
  padding: 6px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

.btn-action:hover {
  background: #444;
  transform: translateY(-1px);
}

.btn-copy {
  background: #007bff !important;
  border-color: #0056b3 !important;
}

.btn-copy:hover {
  background: #0056b3 !important;
  border-color: #004085 !important;
}

.btn-toggle:hover {
  background: #007bff;
}

.btn-delete:hover {
  background: #dc3545;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #666;
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.empty-title {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.empty-subtitle {
  font-size: 14px;
  color: #999;
}

.empty-subtitle a {
  color: #00d4ff;
  text-decoration: none;
}

.empty-subtitle a:hover {
  text-decoration: underline;
}

/* Responsive Content Table */
@media (max-width: 1200px) {
  .content-management-container {
    padding: 16px;
  }

  .content-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .content-stats {
    gap: 16px;
  }

  .bulk-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .bulk-buttons {
    width: 100%;
  }

  .col-batch {
    width: 150px;
  }

  .col-dimensions {
    display: none;
  }
}

@media (max-width: 768px) {
  .content-table-container {
    overflow-x: auto;
  }

  .content-table {
    min-width: 800px;
  }

  .filter-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .filter-group label {
    min-width: auto;
  }

  .bulk-selection {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .bulk-buttons {
    flex-direction: column;
    width: 100%;
  }

  .bulk-buttons button {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .content-management-container {
    padding: 12px;
  }

  .content-header h2 {
    font-size: 20px;
  }

  .content-stats {
    flex-direction: column;
    gap: 12px;
  }

  .stat-item {
    text-align: left;
  }

  .content-table {
    min-width: 600px;
  }

  .col-created,
  .col-dimensions {
    display: none;
  }

  .content-table th,
  .content-table td {
    padding: 8px 6px;
  }

  .content-preview {
    width: 40px;
    height: 40px;
  }
}

/* Ensure chart labels are visible */
.chart-container canvas {
  background: transparent;
}

.chart-container canvas {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
}

/* Tables Grid */
.tables-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.table-card {
  background: #121212;
  border: 1px solid #1f1f1f;
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s ease;
}

.table-card:hover {
  border-color: #2a2a2a;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

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

.table-header h3 {
  margin: 0;
  color: var(--fg);
  font-size: 18px;
  font-weight: 600;
}

.table-loading {
  font-size: 12px;
  color: var(--muted);
  display: none;
}

.table-container {
  overflow-x: auto;
}

.performance-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.performance-table th {
  background: #1a1a1a;
  color: var(--muted);
  font-weight: 600;
  padding: 12px 8px;
  text-align: left;
  border-bottom: 1px solid #2a2a2a;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.performance-table td {
  padding: 12px 8px;
  border-bottom: 1px solid #1f1f1f;
  color: var(--fg);
}

.performance-table tr:hover {
  background: rgba(255, 59, 92, 0.05);
}

.content-preview {
  display: flex;
  align-items: center;
  justify-content: center;
}

.content-thumb {
  width: 50px;
  height: 50px;
  border-radius: 6px;
  object-fit: cover;
  background: #1a1a1a;
  border: 2px solid #333;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.content-thumb img,
.content-thumb video {
  width: 100%;
  height: 100%;
  border-radius: 4px;
  object-fit: cover;
}

.content-thumb-fallback {
  width: 50px;
  height: 50px;
  border-radius: 6px;
  background: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  border: 2px solid #444;
}

.file-thumb {
  background: #2a2a2a;
  color: #999;
}
  flex-shrink: 0;
}

.video-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--muted);
}

.content-name {
  font-size: 13px;
  color: var(--fg);
  font-weight: 500;
}

.batch-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.batch-title {
  font-weight: 500;
  color: var(--fg);
}

.batch-slug {
  font-size: 11px;
  color: var(--muted);
  font-family: monospace;
}

.metric-number {
  font-weight: 600;
  color: var(--accent);
}

.metric-time {
  font-weight: 500;
  color: #00d4ff;
}

.date-text {
  color: var(--muted);
  font-size: 12px;
}

.no-data, .error-message {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
  font-style: italic;
}

.error-message {
  color: #ff6b6b;
}

/* Activity Card */
.activity-card {
  background: #121212;
  border: 1px solid #1f1f1f;
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s ease;
}

.activity-card:hover {
  border-color: #2a2a2a;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

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

.activity-header h3 {
  margin: 0;
  color: var(--fg);
  font-size: 18px;
  font-weight: 600;
}

.activity-loading {
  font-size: 12px;
  color: var(--muted);
  display: none;
}

.activity-feed {
  max-height: 400px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #333 transparent;
}

.activity-feed::-webkit-scrollbar {
  width: 6px;
}

.activity-feed::-webkit-scrollbar-track {
  background: transparent;
}

.activity-feed::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 3px;
}

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #1a1a1a;
  transition: all 0.2s ease;
}

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

.activity-item:hover {
  background: rgba(255, 59, 92, 0.03);
  border-radius: 8px;
  padding-left: 8px;
  padding-right: 8px;
}

.activity-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.activity-icon.visit {
  background: rgba(0, 212, 255, 0.1);
}

.activity-icon.click {
  background: rgba(255, 59, 92, 0.1);
}

.activity-content {
  flex: 1;
  min-width: 0;
}

.activity-text {
  color: var(--fg);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
  line-height: 1.4;
}

.activity-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.activity-time {
  color: var(--muted);
  font-size: 12px;
}

.activity-location {
  color: #00ff88;
  font-size: 11px;
  background: rgba(0, 255, 136, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

.activity-referrer {
  color: #00d4ff;
  font-size: 11px;
  background: rgba(0, 212, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .metrics-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

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

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

@media (max-width: 768px) {
  .dashboard-container {
    padding: 16px;
  }

  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .dashboard-controls {
    width: 100%;
    justify-content: space-between;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .metric-card {
    padding: 20px;
  }

  .chart-card, .table-card, .activity-card {
    padding: 20px;
  }

  .chart-container {
    height: 250px;
  }

  .performance-table {
    font-size: 12px;
  }

  .performance-table th,
  .performance-table td {
    padding: 8px 4px;
  }
}

@media (max-width: 480px) {
  .dashboard-header h2 {
    font-size: 24px;
  }

  .metric-value {
    font-size: 24px;
  }

  .metric-icon {
    font-size: 24px;
    width: 48px;
    height: 48px;
  }

  .chart-container {
    height: 200px;
  }

  .activity-feed {
    max-height: 300px;
  }
}

