/* Custom CSS - Social Seeding Tracker (Premium Dark Glassmorphism) */

:root {
  --bg-primary: #080c14;
  --bg-secondary: rgba(15, 22, 36, 0.7);
  --bg-sidebar: rgba(11, 16, 27, 0.9);
  --glass-bg: rgba(22, 31, 52, 0.55);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-highlight: rgba(255, 255, 255, 0.03);
  
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dark: #4b5563;

  --color-primary: #6366f1;
  --color-primary-glow: rgba(99, 102, 241, 0.25);
  --color-secondary: #a855f7;
  --color-success: #10b981;
  --color-success-glow: rgba(16, 185, 129, 0.2);
  --color-warning: #f59e0b;
  --color-warning-glow: rgba(245, 158, 11, 0.2);
  --color-danger: #ef4444;

  --font-display: 'Outfit', 'Sarabun', sans-serif;
  --font-body: 'Sarabun', 'Outfit', sans-serif;
  
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;

  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: rgba(99, 102, 241, 0.3) rgba(0, 0, 0, 0);
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Background Gradients & Glow Elements */
body::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -10%;
  width: 50%;
  height: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
  z-index: -1;
  pointer-events: none;
}

body::after {
  content: '';
  position: absolute;
  bottom: -10%;
  right: -10%;
  width: 50%;
  height: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
  z-index: -1;
  pointer-events: none;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.25);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(99, 102, 241, 0.45);
}

/* Layout */
.app-container {
  display: flex;
  min-height: 100vh;
}

/* Sidebar Styling */
.sidebar {
  width: 280px;
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--glass-border);
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  backdrop-filter: blur(20px);
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
  padding-left: 8px;
}

.brand-logo {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.logo-icon {
  width: 22px;
  height: 22px;
  color: white;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.5px;
  background: linear-gradient(to right, #ffffff, #c7d2fe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: transparent;
  border: none;
  border-radius: 12px;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: var(--transition-smooth);
}

.nav-item i {
  width: 20px;
  height: 20px;
}

.nav-item:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
}

.nav-item.active {
  color: white;
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.2) 0%, rgba(99, 102, 241, 0.05) 100%);
  border-left: 3px solid var(--color-primary);
  padding-left: 15px;
}

.sidebar-footer {
  padding-top: 20px;
  border-top: 1px solid var(--glass-border);
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-family: var(--font-display);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.user-info {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-main);
}

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

/* Main Content Styling */
.main-content {
  flex-grow: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
}

/* Header Top Bar */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--glass-border);
}

.page-title-area h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  background: linear-gradient(to right, #ffffff, #93c5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
}

.subtitle {
  font-size: 14px;
}

.text-muted {
  color: var(--text-muted);
}

/* Glass Panels */
.glass-panel {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-md);
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.glass-panel:hover {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.panel-header {
  margin-bottom: 20px;
}

.panel-header h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: white;
}

/* Stats Cards Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.stat-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-md);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
  cursor: default;
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.15);
}

.stat-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
}

.stat-icon-wrapper i {
  width: 26px;
  height: 26px;
}

.total-posts .stat-icon-wrapper i { color: var(--color-primary); }
.pending-posts .stat-icon-wrapper i { color: var(--color-warning); }
.seeded-posts .stat-icon-wrapper i { color: var(--color-success); }
.success-rate .stat-icon-wrapper i { color: var(--color-secondary); }

.stat-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
}

.stat-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  line-height: 1;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}

/* Glowing background in stats cards */
.card-glow {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  filter: blur(30px);
  opacity: 0.15;
  transition: var(--transition-smooth);
  z-index: 1;
}

.total-posts:hover .card-glow { background: var(--color-primary); opacity: 0.3; }
.pending-posts:hover .card-glow { background: var(--color-warning); opacity: 0.3; }
.seeded-posts:hover .card-glow { background: var(--color-success); opacity: 0.3; }
.success-rate:hover .card-glow { background: var(--color-secondary); opacity: 0.3; }

/* Dashboard Columns Layout */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
}

.chart-panel {
  min-height: 380px;
  display: flex;
  flex-direction: column;
}

.chart-container {
  flex-grow: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}

/* Activity Log Timeline */
.activity-panel {
  display: flex;
  flex-direction: column;
  max-height: 400px;
}

.activity-feed {
  flex-grow: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-right: 6px;
}

.activity-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--border-radius-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: var(--transition-smooth);
}

.activity-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.activity-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.activity-actor {
  font-weight: 700;
  color: var(--text-main);
}

.activity-time {
  color: var(--text-muted);
}

.activity-action {
  font-size: 13.5px;
  line-height: 1.4;
  color: #d1d5db;
}

.activity-post-ref {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
}

.activity-post-ref:hover {
  text-decoration: underline;
}

.feed-empty-state, .table-empty-state, .timeline-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 40px;
  color: var(--text-muted);
  text-align: center;
}

.feed-empty-state i, .table-empty-state i, .timeline-empty i {
  width: 48px;
  height: 48px;
  stroke-width: 1.5;
  opacity: 0.6;
}

/* Tables Styling */
.table-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14.5px;
}

.data-table th {
  padding: 16px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid var(--glass-border);
  font-family: var(--font-display);
}

.data-table td {
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #d1d5db;
  vertical-align: middle;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.02);
  color: white;
}

/* Tab Management */
.tab-content {
  display: none;
  animation: fadeIn 0.4s ease-out;
}

.tab-content.active-tab {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.badge-pending {
  background-color: var(--color-warning-glow);
  color: var(--color-warning);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-seeded {
  background-color: var(--color-success-glow);
  color: var(--color-success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-warning {
  background-color: var(--color-warning-glow);
  color: var(--color-warning);
}

/* Platform Badge (Dynamic colors) */
.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  color: white;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14.5px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: white;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
  transform: translateY(-2px);
}

.btn-success {
  background: var(--color-success);
  color: white;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.5);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--glass-border);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-danger-outline {
  background: transparent;
  border-color: rgba(239, 68, 68, 0.3);
  color: var(--color-danger);
}

.btn-danger-outline:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: var(--color-danger);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
  border-radius: 8px;
}

.btn-block {
  width: 100%;
}

.btn:active {
  transform: scale(0.98);
}

/* Filters UI */
.filters-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 20px;
  align-items: center;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box input {
  width: 100%;
  padding: 12px 16px 12px 48px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: white;
  font-family: var(--font-body);
  transition: var(--transition-smooth);
}

.search-box input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px var(--color-primary-glow);
  outline: none;
}

.search-icon {
  position: absolute;
  left: 16px;
  color: var(--text-muted);
  pointer-events: none;
  width: 20px;
  height: 20px;
}

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

.filter-select-wrapper label {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
}

.filter-select-wrapper select, .form-group select, .form-group input, .form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: white;
  font-family: var(--font-body);
  font-size: 14.5px;
  transition: var(--transition-smooth);
}

.filter-select-wrapper select:focus, .form-group select:focus, .form-group input:focus, .form-group textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px var(--color-primary-glow);
  outline: none;
}

/* Forms styling */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

.form-group label .required {
  color: var(--color-danger);
}

.color-picker-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
}

.color-picker-wrapper input[type="color"] {
  width: 48px;
  height: 48px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 8px;
}

.color-picker-wrapper input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

.color-picker-wrapper input[type="color"]::-webkit-color-swatch {
  border: 1px solid var(--glass-border);
  border-radius: 8px;
}

.color-value-text {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
}

/* Social Media Platforms Layout */
.platforms-layout-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 24px;
}

.platforms-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.platform-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-sm);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  position: relative;
  transition: var(--transition-smooth);
}

.platform-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.platform-icon-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.platform-card-name {
  font-size: 16px;
  font-weight: 700;
}

.platform-card-actions {
  width: 100%;
  margin-top: 4px;
}

/* Modals Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 8, 15, 0.85);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.3s ease-out;
}

.modal-overlay.active-modal {
  display: flex;
}

.modal-card {
  background: #0f1626;
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-md);
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.modal-card.modal-lg {
  max-width: 960px;
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
}

.post-title-subtitle {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-top: 4px;
  display: block;
}

.btn-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.btn-close:hover {
  background: rgba(255, 255, 255, 0.05);
  color: white;
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  max-height: 70vh;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--glass-border);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background: rgba(0, 0, 0, 0.1);
}

/* Modal Grid Layout */
.grid-layout-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

/* Seeding History timeline */
.seeding-history-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-right: 1px solid var(--glass-border);
  padding-right: 24px;
}

.seeding-history-section h4, .seeding-form-section h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: white;
  border-left: 3px solid var(--color-primary);
  padding-left: 10px;
}

.seeding-history-timeline {
  flex-grow: 1;
  overflow-y: auto;
  max-height: 480px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-right: 8px;
}

.timeline-item {
  border-left: 2px solid var(--color-primary);
  padding-left: 16px;
  position: relative;
  padding-bottom: 8px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--color-primary);
  box-shadow: 0 0 8px var(--color-primary);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  margin-bottom: 6px;
}

.timeline-employee {
  font-weight: 700;
  color: white;
}

.timeline-time {
  color: var(--text-muted);
}

.timeline-body {
  font-size: 13.5px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  padding: 10px;
  color: #d1d5db;
}

.timeline-account {
  font-size: 12px;
  color: var(--color-secondary);
  font-weight: 600;
  margin-bottom: 4px;
}

.timeline-comment-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--color-success);
  text-decoration: none;
  margin-top: 8px;
}

.timeline-comment-link:hover {
  text-decoration: underline;
}

/* Toast Notification */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  background: rgba(15, 22, 38, 0.95);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 16px 20px;
  color: white;
  min-width: 320px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  gap: 12px;
  backdrop-filter: blur(10px);
  animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transition: var(--transition-smooth);
}

.toast-success { border-left: 4px solid var(--color-success); }
.toast-error { border-left: 4px solid var(--color-danger); }
.toast-info { border-left: 4px solid var(--color-primary); }

.toast-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.toast-success .toast-icon { color: var(--color-success); }
.toast-error .toast-icon { color: var(--color-danger); }
.toast-info .toast-icon { color: var(--color-primary); }

.toast-message {
  font-size: 14px;
  font-weight: 500;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

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

/* Responsive */
@media (max-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  
  .grid-layout-2 {
    grid-template-columns: 1fr;
  }
  
  .seeding-history-section {
    border-right: none;
    border-bottom: 1px solid var(--glass-border);
    padding-right: 0;
    padding-bottom: 24px;
  }
  
  .platforms-layout-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .app-container {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--glass-border);
    padding: 16px 24px;
  }
  
  .brand {
    margin-bottom: 16px;
  }
  
  .nav-menu {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 8px;
  }
  
  .nav-item {
    padding: 10px 14px;
    white-space: nowrap;
  }
  
  .nav-item.active {
    border-left: none;
    border-bottom: 3px solid var(--color-primary);
    padding-left: 14px;
    padding-bottom: 7px;
  }
  
  .sidebar-footer {
    display: none;
  }
  
  .main-content {
    padding: 20px;
  }
  
  .top-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .top-bar-actions {
    width: 100%;
  }
  
  .top-bar-actions .btn {
    width: 100%;
  }
  
  .filters-grid {
    grid-template-columns: 1fr;
  }
}
