:root {
  /* Colors */
  --primary: #4F46E5;
  --primary-hover: #4338ca;
  --secondary: #64748b;
  --bg-body: #f3f4f6;
  --bg-card: #ffffff;
  --text-main: #1f2937;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --accent-blue: #3b82f6;
  --accent-green: #10b981;
  --accent-purple: #8b5cf6;
  
  /* Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  
  /* Borders */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
  
  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-family);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
}

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

/* Sidebar */
.sidebar {
  width: 260px;
  background-color: var(--bg-card);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  flex-shrink: 0;
}

.sidebar-header {
  padding: var(--spacing-lg);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  border-bottom: 1px solid var(--border);
}

.logo-img {
  height: 32px;
  width: auto;
  border-radius: var(--radius-sm);
}

.brand-name {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-main);
}

.nav-menu {
  flex: 1;
  padding: var(--spacing-md);
  list-style: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
}

.nav-item:hover, .nav-item.active {
  background-color: #EEF2FF;
  color: var(--primary);
}

.nav-icon {
  width: 20px;
  height: 20px;
  background-color: currentColor;
  mask-size: contain;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-position: center;
}

/* Icon Masks */
.icon-dashboard { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7'/%3E%3Crect x='14' y='3' width='7' height='7'/%3E%3Crect x='14' y='14' width='7' height='7'/%3E%3Crect x='3' y='14' width='7' height='7'/%3E%3C/svg%3E"); }
.icon-profile { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E"); }
.icon-messages { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E"); }
.icon-jobs { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='7' width='20' height='14' rx='2' ry='2'/%3E%3Cpath d='M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16'/%3E%3C/svg%3E"); }
.icon-settings { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z'/%3E%3C/svg%3E"); }
.icon-notification { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9'/%3E%3Cpath d='M13.73 21a2 2 0 0 1-3.46 0'/%3E%3C/svg%3E"); }
.icon-search { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E"); }
.icon-like { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 9V5a3 3 0 0 0-3-3l-4 9v11h11.28a2 2 0 0 0 2-1.7l1.38-9a2 2 0 0 0-2-2.3zM7 22H4a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h3'/%3E%3C/svg%3E"); }
.icon-comment { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z'/%3E%3C/svg%3E"); }
.icon-share { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='18' cy='5' r='3'/%3E%3Ccircle cx='6' cy='12' r='3'/%3E%3Ccircle cx='18' cy='19' r='3'/%3E%3Cline x1='8.59' y1='13.51' x2='15.42' y2='17.49'/%3E%3Cline x1='15.41' y1='6.51' x2='8.59' y2='10.49'/%3E%3C/svg%3E"); }

/* Main Content */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Header */
.top-bar {
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: var(--spacing-md) var(--spacing-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 10;
}

.search-bar {
  display: flex;
  align-items: center;
  background-color: var(--bg-body);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  width: 300px;
  border: 1px solid transparent;
  transition: all 0.2s;
}

.search-bar:focus-within {
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.search-input {
  border: none;
  background: transparent;
  margin-left: var(--spacing-sm);
  outline: none;
  width: 100%;
  color: var(--text-main);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
}

.icon-btn {
  background: none;
  border: none;
  padding: 8px;
  border-radius: 50%;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
}

.icon-btn:hover {
  background-color: var(--bg-body);
  color: var(--primary);
}

.badge-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background-color: #ef4444;
  border-radius: 50%;
  border: 2px solid white;
}

/* Dashboard Grid */
.content-grid {
  padding: var(--spacing-xl);
  display: grid;
  grid-template-columns: 340px 1fr; /* Fixed 2-column layout matching wireframe */
  gap: var(--spacing-xl);
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

@media (max-width: 1024px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
  .company-posts-column {
    grid-column: span 1;
  }
  .sidebar {
    display: none; /* In real app, toggle with hamburger */
  }
}

/* Cards */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: var(--spacing-lg);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  box-shadow: var(--shadow-md);
}

/* Profile Section */
.profile-card {
  text-align: center;
  padding: 0;
}

.profile-banner {
  height: 100px;
  background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
}

.profile-avatar-container {
  margin-top: -50px;
  margin-bottom: var(--spacing-md);
  display: inline-block;
  position: relative;
}

.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 4px solid white;
  object-fit: cover;
  background-color: #ddd;
}

.profile-info {
  padding: 0 var(--spacing-lg) var(--spacing-lg);
}

.profile-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.profile-role {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: 4px;
}

.profile-stats {
  display: flex;
  justify-content: space-around;
  padding: var(--spacing-md) 0;
  border-top: 1px solid var(--border);
  margin-top: var(--spacing-md);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text-main);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.profile-bio {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: var(--spacing-md);
  line-height: 1.6;
}

.btn-primary {
  background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
  width: 100%;
}

.btn-primary:hover {
  opacity: 0.9;
}

/* Posts Styles */
.section-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.post-card {
  padding: var(--spacing-lg);
}

.post-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.post-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.post-meta h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.post-meta span {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.post-content {
  color: var(--text-main);
  margin-bottom: var(--spacing-md);
  line-height: 1.6;
}

.post-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-md);
}

.post-actions {
  display: flex;
  gap: var(--spacing-lg);
  border-top: 1px solid var(--border);
  padding-top: var(--spacing-md);
  color: var(--text-muted);
}

.action-item {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.action-item:hover {
  color: var(--primary);
}

/* Company Post Specifics */
.company-badge {
  background-color: #EEF2FF;
  color: var(--primary);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: auto;
}

.job-tags {
  display: flex;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

.tag {
  background: var(--bg-body);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Utilities */
.w-full { width: 100%; }
.h-full { height: 100%; }
.mt-auto { margin-top: auto; }
.mb-md { margin-bottom: var(--spacing-md); }
.text-center { text-align: center; }
.font-bold { font-weight: 700; }
.text-green { color: var(--accent-green); }
.bg-green-light { background-color: #ECFDF5; }
.bg-gray-light { background-color: #F3F4F6; }

.avatar-xs { width: 36px; height: 36px; }
.rounded-md { border-radius: 8px; }

/* Placeholders */
.placeholder-avatar {
  background-color: #ddd;
  width: 100%;
  height: 100%;
}
.placeholder-image {
  background-color: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  border-radius: var(--radius-md);
}

/* Mobile Responsive Styles */
@media (max-width: 767px) {
  /* Layout */
  .dashboard-container {
    flex-direction: column;
  }

  /* Transform Sidebar to Bottom Navigation */
  .sidebar {
    display: flex !important; /* Override 900px hide rule */
    position: fixed;
    bottom: 0;
    top: auto;
    left: 0;
    width: 100%;
    height: auto;
    border-right: none;
    border-top: 1px solid var(--border);
    z-index: 1000;
    padding: 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
  }

  .sidebar-header {
    display: none;
  }

  .nav-menu {
    flex-direction: row;
    width: 100%;
    justify-content: space-around;
    padding: 8px 4px;
    gap: 0;
  }

  .nav-item {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px;
    gap: 4px;
    font-size: 10px;
    text-align: center;
    border-radius: 8px;
    color: var(--text-muted);
    min-width: 60px;
  }

  .nav-icon {
    width: 24px;
    height: 24px;
    margin: 0;
  }
  
  /* Reset auto margins for horizontal layout */
  .mt-auto {
    margin-top: 0;
  }

  /* Main Content */
  .main-content {
    padding-bottom: 80px; /* Space for bottom nav */
    width: 100%;
  }

  /* Header */
  .top-bar {
    padding: 12px 16px;
    gap: 12px;
  }

  .search-bar {
    width: auto;
    flex: 1;
    padding: 6px 12px;
  }
  
  .search-input {
    font-size: 14px;
  }

  .header-actions {
    gap: 8px;
  }
  
  .header-actions .icon-btn {
    display: none; /* Simplify header: hide icons, keep profile */
  }
  
  .header-actions .post-avatar {
    margin-left: 0;
    width: 32px;
    height: 32px;
  }

  /* Grid & Cards */
  .content-grid {
    display: flex;
    flex-direction: column;
    padding: 16px;
    gap: 24px;
  }

  .card {
    border-radius: 12px;
    margin-bottom: 0; /* Reset */
  }

  /* Profile adjustments */
  .profile-banner {
    height: 80px;
  }

  .profile-avatar-container {
    margin-top: -40px;
  }

  .profile-avatar {
    width: 80px;
    height: 80px;
    border-width: 3px;
  }

  .profile-name {
    font-size: 1.125rem;
  }

  .profile-stats {
    padding: 12px 0;
    margin-top: 12px;
  }
  
  .stat-value {
    font-size: 1rem;
  }
  
  .stat-label {
    font-size: 0.7rem;
  }

  /* Post adjustments */
  .post-card {
    padding: 16px;
  }

  .post-actions {
    justify-content: space-between;
    padding-top: 12px;
  }

  .action-item {
    padding: 8px 12px;
    border-radius: 8px;
    background-color: var(--bg-body);
    font-size: 0.85rem;
  }
  
  /* Touch Targets */
  button, .btn-primary, .nav-item {
    min-height: 44px; /* Ensure touch friendliness */
  }
}

