/**
 * HUCAA Alumni Forum - Unified Sidebar Styles
 * Consistent sidebar styling for all modules
 */

/* Sidebar Badge Standardization */
.sidebar-nav .count-badge,
.sidebar-list .count-badge {
  background-color: #6c757d;
  color: white;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-weight: 600;
  min-width: 20px;
  text-align: center;
  display: inline-block;
}

.sidebar-nav .urgent-badge,
.sidebar-list .urgent-badge {
  background-color: #dc3545;
  color: white;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-weight: 600;
  min-width: 20px;
  text-align: center;
  display: inline-block;
}

.sidebar-nav .success-badge,
.sidebar-list .success-badge {
  background-color: #28a745;
  color: white;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-weight: 600;
  min-width: 20px;
  text-align: center;
  display: inline-block;
}

.sidebar-nav .info-badge,
.sidebar-list .info-badge {
  background-color: #17a2b8;
  color: white;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-weight: 600;
  min-width: 20px;
  text-align: center;
  display: inline-block;
}

/* Sidebar Navigation Links - Reduced Padding */
.sidebar-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0.75rem; /* Reduced from 0.75rem to 0.4rem */
  color: #6b7280;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-size: 0.875rem;
  font-weight: 500;
}

.sidebar-nav-link:hover {
  background-color: rgba(102, 126, 234, 0.1);
  color: #667eea;
  text-decoration: none;
}

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

.sidebar-nav-link .nav-icon {
  margin-right: 0.5rem;
  width: 16px;
  text-align: center;
  font-size: 0.875rem;
}

/* Sidebar List Links - Reduced Padding */
.sidebar-list-link {
  display: block;
  padding: 0.4rem 0.75rem; /* Reduced from 0.75rem to 0.4rem */
  color: #6b7280;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-size: 0.875rem;
}

.sidebar-list-link:hover {
  background-color: rgba(102, 126, 234, 0.1);
  color: #667eea;
  text-decoration: none;
}

.sidebar-list-link.active {
  background-color: rgba(102, 126, 234, 0.15);
  color: #667eea;
  font-weight: 600;
}

/* Sidebar List Improvements */
.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-list-item {
  margin-bottom: 0.5rem;
}

/* Sidebar Section Improvements */
.sidebar-section {
  margin-bottom: 1.5rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.sidebar-header {
  background: #f8f9fa;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e9ecef;
}

.sidebar-title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #495057;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sidebar-title i {
  color: #6c757d;
  font-size: 0.875rem;
}

.sidebar-content {
  padding: 0.75rem 1rem;
}

.sidebar-content.p-0 {
  padding: 0;
}

/* Sidebar Stats Improvements */
.sidebar-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 0.75rem;
  padding: 0.75rem 1rem;
}

.sidebar-stat {
  text-align: center;
  padding: 0.5rem;
  background: #f8f9fa;
  border-radius: 6px;
  border: 1px solid #e9ecef;
}

.sidebar-stat-number {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: #495057;
  line-height: 1.2;
}

.sidebar-stat-label {
  display: block;
  font-size: 0.75rem;
  color: #6c757d;
  margin-top: 0.25rem;
  font-weight: 500;
}

/* Sidebar Quick Actions */
.sidebar-actions {
  padding: 1rem;
  border-top: 1px solid #f0f0f0;
  background: #f8fafc;
}

.sidebar-actions .btn {
  width: 100%;
  margin-bottom: 0.5rem;
}

.sidebar-actions .btn:last-child {
  margin-bottom: 0;
}

/* Responsive improvements */
@media (max-width: 768px) {
  .sidebar-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .sidebar-list-link {
    padding: 0.5rem;
  }

  .sidebar-content {
    padding: 0.5rem 0.75rem;
  }

  .sidebar-header {
    padding: 0.5rem 0.75rem;
  }
}

/* ============================================================================
   MODULE-SPECIFIC VARIANTS
   ============================================================================ */

/* Messages Module */
.sidebar-section.messages-sidebar .sidebar-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.sidebar-section.messages-sidebar .sidebar-title {
  color: white;
}

.sidebar-section.messages-sidebar .sidebar-title i {
  color: rgba(255, 255, 255, 0.8);
}

/* Events Module */
.sidebar-section.events-sidebar .sidebar-header {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
}

.sidebar-section.events-sidebar .sidebar-title {
  color: white;
}

.sidebar-section.events-sidebar .sidebar-title i {
  color: rgba(255, 255, 255, 0.8);
}

/* Admin Module */
.sidebar-section.admin-sidebar .sidebar-header {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  color: white;
}

.sidebar-section.admin-sidebar .sidebar-title {
  color: white;
}

.sidebar-section.admin-sidebar .sidebar-title i {
  color: rgba(255, 255, 255, 0.8);
}

/* Users Module */
.sidebar-section.users-sidebar .sidebar-header {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  color: white;
}

.sidebar-section.users-sidebar .sidebar-title {
  color: white;
}

.sidebar-section.users-sidebar .sidebar-title i {
  color: rgba(255, 255, 255, 0.8);
}
