/* Hub Management System Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background: #0a0a0a;
  color: #fff;
  overflow-x: hidden;
}

.hub-container {
  display: flex;
  height: 100vh;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
}

/* Sidebar Styles */
.sidebar {
  width: 280px;
  background: rgba(10, 10, 10, 0.95);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  z-index: 1000;
  transition: transform 0.3s ease;
}

.sidebar-header {
  padding: 2rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h2 {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.ai-text {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sidebar-subtitle {
  color: #666;
  font-size: 0.9rem;
}

.sidebar-nav {
  flex: 1;
  padding: 1.5rem 0;
}

.nav-list {
  list-style: none;
}

.nav-item {
  margin-bottom: 0.5rem;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  color: #b8b8b8;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: #fff;
  background: rgba(102, 126, 234, 0.1);
}

.nav-link.active {
  color: #667eea;
  background: rgba(102, 126, 234, 0.15);
}

.nav-link.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.nav-link i {
  width: 20px;
  margin-right: 1rem;
  font-size: 1.1rem;
}

.sidebar-footer {
  padding: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.user-profile {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.user-avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
}

.user-avatar i {
  color: #fff;
  font-size: 1rem;
}

.user-info {
  flex: 1;
}

.user-name {
  color: #fff;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.user-role {
  color: #666;
  font-size: 0.8rem;
}

.back-to-site {
  display: flex;
  align-items: center;
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #b8b8b8;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.back-to-site:hover {
  color: #667eea;
  background: rgba(102, 126, 234, 0.1);
}

.back-to-site i {
  margin-right: 0.5rem;
}

.logout-btn {
  display: flex;
  align-items: center;
  padding: 0.8rem 1rem;
  background: rgba(245, 101, 101, 0.1);
  border: 1px solid rgba(245, 101, 101, 0.3);
  border-radius: 8px;
  color: #f56565;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  margin-top: 1rem;
  cursor: pointer;
  border: none;
  width: 100%;
  justify-content: center;
}

.logout-btn:hover {
  background: rgba(245, 101, 101, 0.2);
}

.logout-btn i {
  margin-right: 0.5rem;
}

.logout-btn:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.logout-btn .fa-spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Logout animation styles */
.logging-out {
  position: relative;
}

.logging-out::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.9);
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.logging-out.active::before {
  opacity: 1;
}

.logout-overlay {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 2rem 3rem;
  border-radius: 15px;
  text-align: center;
  z-index: 10000;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
  transition: all 0.3s ease;
}

.logout-overlay.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.logout-overlay i {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.logout-overlay h3 {
  margin-bottom: 0.5rem;
  font-weight: 600;
}

/* Main Content Area */
.main-content {
  flex: 1;
  margin-left: 280px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

/* Top Bar */
.top-bar {
  height: 70px;
  background: rgba(10, 10, 10, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.top-bar-left {
  display: flex;
  align-items: center;
}

.sidebar-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  margin-right: 1rem;
  cursor: pointer;
}

.page-title {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 600;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.date-time {
  color: #b8b8b8;
  font-size: 0.9rem;
}

.notification-btn {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.5rem 0.8rem;
  color: #b8b8b8;
  cursor: pointer;
  transition: all 0.3s ease;
}

.notification-btn:hover {
  color: #667eea;
  background: rgba(102, 126, 234, 0.1);
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #f56565;
  color: #fff;
  font-size: 0.7rem;
  padding: 0.2rem 0.4rem;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

/* Page Content */
.page-content {
  padding: 2rem;
  flex: 1;
}

.page-content.hidden {
  display: none;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.page-header-left h2 {
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.page-header-left p {
  color: #b8b8b8;
}

.btn {
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-size: 0.9rem;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

/* Dashboard Styles */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.stat-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon i {
  color: #fff;
  font-size: 1.2rem;
}

.stat-content {
  flex: 1;
}

.stat-number {
  color: #fff;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.stat-label {
  color: #b8b8b8;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.stat-change {
  font-size: 0.8rem;
  font-weight: 500;
}

.stat-change.positive {
  color: #48bb78;
}

.stat-change.negative {
  color: #f56565;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.dashboard-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 1.5rem;
}

.dashboard-card h3 {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.dashboard-card.full-width {
  grid-column: span 2;
}

/* Recent Projects */
.recent-projects {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.project-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.project-info h4 {
  color: #fff;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.project-client {
  color: #b8b8b8;
  font-size: 0.9rem;
}

.project-status {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.status-badge {
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.status-badge.in-progress {
  background: rgba(102, 126, 234, 0.2);
  color: #667eea;
}

.status-badge.review {
  background: rgba(246, 194, 62, 0.2);
  color: #f6c23e;
}

.status-badge.completed {
  background: rgba(72, 187, 120, 0.2);
  color: #48bb78;
}

.status-badge.active {
  background: rgba(72, 187, 120, 0.2);
  color: #48bb78;
}

.project-value {
  color: #48bb78;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Revenue Chart */
.revenue-chart {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chart-container {
  height: 200px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
}

.revenue-legend {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #b8b8b8;
}

.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.legend-color.ai-secretary {
  background: #667eea;
}

.legend-color.ai-content {
  background: #48bb78;
}

.legend-color.ai-analytics {
  background: #f6c23e;
}

.legend-color.other {
  background: #f56565;
}

/* Deadlines Timeline */
.deadlines-timeline {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.deadline-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.deadline-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.deadline-date {
  min-width: 80px;
  text-align: center;
}

.date {
  display: block;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
}

.time {
  display: block;
  color: #666;
  font-size: 0.8rem;
}

.deadline-content {
  flex: 1;
}

.deadline-content h4 {
  color: #fff;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.deadline-content p {
  color: #b8b8b8;
  font-size: 0.9rem;
}

.deadline-priority {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.deadline-priority.high {
  background: rgba(245, 101, 101, 0.2);
  color: #f56565;
}

.deadline-priority.medium {
  background: rgba(246, 194, 62, 0.2);
  color: #f6c23e;
}

.deadline-priority.low {
  background: rgba(72, 187, 120, 0.2);
  color: #48bb78;
}

/* Projects Page */
.projects-filters {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.filter-group {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.filter-select {
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #fff;
  font-size: 0.9rem;
  min-width: 150px;
}

.search-box {
  position: relative;
  flex: 1;
  max-width: 300px;
}

.search-box i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
}

.search-box input {
  width: 100%;
  padding: 0.8rem 1rem 0.8rem 2.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #fff;
  font-size: 0.9rem;
}

.projects-table {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  overflow: hidden;
}

.projects-table table {
  width: 100%;
  border-collapse: collapse;
}

.projects-table th {
  background: rgba(255, 255, 255, 0.03);
  padding: 1rem;
  text-align: left;
  color: #b8b8b8;
  font-weight: 600;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.projects-table td {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.project-name h4 {
  color: #fff;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.project-name p {
  color: #666;
  font-size: 0.8rem;
}

.venture-tag {
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.venture-tag.secretary {
  background: rgba(102, 126, 234, 0.2);
  color: #667eea;
}

.venture-tag.content {
  background: rgba(72, 187, 120, 0.2);
  color: #48bb78;
}

.venture-tag.analytics {
  background: rgba(246, 194, 62, 0.2);
  color: #f6c23e;
}

.venture-tag.support {
  background: rgba(237, 100, 166, 0.2);
  color: #ed64a6;
}

.venture-tag.marketing {
  background: rgba(245, 101, 101, 0.2);
  color: #f56565;
}

.venture-tag.security {
  background: rgba(159, 122, 234, 0.2);
  color: #9f7aea;
}

.action-buttons {
  display: flex;
  gap: 0.5rem;
}

.action-btn {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #b8b8b8;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.action-btn:hover {
  color: #667eea;
  background: rgba(102, 126, 234, 0.1);
}

/* Pipeline Kanban Board */
.pipeline-stats {
  display: flex;
  gap: 2rem;
}

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

.pipeline-stat .stat-value {
  display: block;
  color: #667eea;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.pipeline-stat .stat-label {
  color: #b8b8b8;
  font-size: 0.8rem;
}

.kanban-board {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  overflow-x: auto;
}

.kanban-column {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1rem;
  min-height: 400px;
}

.column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.column-header h3 {
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
}

.column-count {
  background: rgba(102, 126, 234, 0.2);
  color: #667eea;
  padding: 0.2rem 0.5rem;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
}

.kanban-cards {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.kanban-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.kanban-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.card-header h4 {
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.3;
}

.card-value {
  color: #48bb78;
  font-weight: 600;
  font-size: 0.8rem;
}

.card-client {
  color: #b8b8b8;
  font-size: 0.8rem;
  margin-bottom: 0.8rem;
}

.card-footer {
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.card-date {
  color: #666;
  font-size: 0.7rem;
}

/* Clients Page */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.client-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.client-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.client-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.client-avatar {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.client-avatar i {
  color: #fff;
  font-size: 1.2rem;
}

.client-info {
  flex: 1;
}

.client-info h3 {
  color: #fff;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.client-industry {
  color: #b8b8b8;
  font-size: 0.8rem;
}

.client-details {
  margin-bottom: 1.5rem;
}

.client-contact p {
  color: #b8b8b8;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.client-contact i {
  color: #667eea;
  width: 15px;
}

.client-projects {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.projects-count {
  color: #fff;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.project-value {
  color: #48bb78;
  font-size: 0.9rem;
}

.client-actions {
  display: flex;
  gap: 1rem;
}

.client-actions .action-btn {
  flex: 1;
  padding: 0.8rem;
  background: rgba(102, 126, 234, 0.1);
  border: 1px solid rgba(102, 126, 234, 0.3);
  border-radius: 8px;
  color: #667eea;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.client-actions .action-btn:hover {
  background: rgba(102, 126, 234, 0.2);
}

/* Settings Page */
.settings-sections {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.settings-section {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 1.5rem;
}

.settings-section h3 {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.settings-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  color: #b8b8b8;
  font-size: 0.9rem;
  font-weight: 500;
}

.form-group input {
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #fff;
  font-size: 0.9rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #b8b8b8;
  font-size: 0.9rem;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
}

.venture-settings {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.venture-setting-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
}

.venture-info h4 {
  color: #fff;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.venture-info p {
  color: #b8b8b8;
  font-size: 0.8rem;
}

/* Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #333;
  transition: 0.4s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

input:checked + .slider:before {
  transform: translateX(26px);
}

/* User Management Styles */
.users-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.user-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.user-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.user-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.user-card-avatar {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
}

.user-card-info {
  flex: 1;
}

.user-card-info h3 {
  color: #fff;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.user-card-email {
  color: #b8b8b8;
  font-size: 0.8rem;
}

.user-card-details {
  margin-bottom: 1.5rem;
}

.user-card-role {
  margin-bottom: 1rem;
}

.role-badge {
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.role-badge.admin {
  background: rgba(245, 101, 101, 0.2);
  color: #f56565;
}

.role-badge.manager {
  background: rgba(102, 126, 234, 0.2);
  color: #667eea;
}

.role-badge.viewer {
  background: rgba(72, 187, 120, 0.2);
  color: #48bb78;
}

.permissions-title {
  color: #b8b8b8;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.permissions-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.permission-tag {
  background: rgba(255, 255, 255, 0.1);
  color: #b8b8b8;
  padding: 0.2rem 0.6rem;
  border-radius: 15px;
  font-size: 0.7rem;
}

.user-card-actions {
  display: flex;
  gap: 1rem;
}

.edit-user {
  flex: 1;
  padding: 0.8rem;
  background: rgba(102, 126, 234, 0.1);
  border: 1px solid rgba(102, 126, 234, 0.3);
  border-radius: 8px;
  color: #667eea;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.edit-user:hover {
  background: rgba(102, 126, 234, 0.2);
}

/* Role-based UI hiding */
.hidden-by-role {
  display: none !important;
}

.disabled-by-role {
  opacity: 0.5;
  pointer-events: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .kanban-board {
    grid-template-columns: repeat(3, 1fr);
  }

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

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
  }

  .sidebar-toggle {
    display: block;
  }

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

  .kanban-board {
    grid-template-columns: 1fr;
  }

  .filter-group {
    flex-direction: column;
    align-items: stretch;
  }

  .search-box {
    max-width: none;
  }

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

  .pipeline-stats {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .page-content {
    padding: 1rem;
  }

  .page-header {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .top-bar {
    padding: 0 1rem;
  }

  .date-time {
    display: none;
  }
}
