/**
 * Dashboard CSS - Modern Alumni Forum Dashboard
 * Enhanced UX with modern design patterns
 */

/*==============================================================================
  DASHBOARD VARIABLES
==============================================================================*/
:root {
  --dashboard-bg: #ffffff !important;
  --dashboard-card-bg: #f8f9fb !important;
  --dashboard-border: #e3e6f0 !important;
  --dashboard-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15) !important;
  --dashboard-shadow-hover: 0 0.25rem 2rem 0 rgba(58, 59, 69, 0.25) !important;
  --dashboard-primary: var(--accent-color) !important;
  --dashboard-text: #5a5c69 !important;
  --dashboard-text-light: #858796 !important;
  --dashboard-radius: 0.35rem !important;
  --dashboard-spacing: 1.5rem !important;
}

/*==============================================================================
  DASHBOARD LAYOUT
==============================================================================*/
.dashboard-section {
  background-color: white;
  min-height: 100vh;
  padding: 2rem 0;
}

.dashboard-header {
  margin-bottom: 2rem;
}

.dashboard-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 0.5rem;
}

.dashboard-subtitle {
  color: var(--dashboard-text-light);
  font-size: 1.1rem;
  margin-bottom: 0;
}

.dashboard-date {
  color: var(--dashboard-text);
  font-weight: 500;
  background: white;
  padding: 0.75rem 1rem;
  border-radius: var(--dashboard-radius);
  box-shadow: var(--dashboard-shadow);
}

/*==============================================================================
  DASHBOARD CARDS
==============================================================================*/
.dashboard-card {
  background: var(--dashboard-card-bg);
  border: 1px solid var(--dashboard-border);
  border-radius: 25px;
  box-shadow: var(--dashboard-shadow);
  transition: all 0.3s ease;
  opacity: 1;
  transform: translateY(0);
}

.dashboard-card.fade-in {
  animation: fadeInUp 0.6s ease forwards;
}

.dashboard-card:hover {
  box-shadow: var(--dashboard-shadow-hover);
  transform: translateY(-2px);
}

.dashboard-card-header {
  padding: 1rem 1rem 1rem;
  border-bottom: 1px solid var(--dashboard-border);
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.dashboard-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--heading-color);
  margin: 0;
  display: flex;
  align-items: center;
}

.dashboard-card-body {
  padding: 1.5rem;
}

/*==============================================================================
  STATS CARDS
==============================================================================*/
.stats-card {
  background: var(--dashboard-card-bg);
  border-radius: var(--dashboard-radius);
  box-shadow: var(--dashboard-shadow);
  overflow: hidden;
  transition: all 0.3s ease;
  opacity: 1;
  transform: translateY(0);
  position: relative;
}

.stats-card.fade-in {
  animation: fadeInUp 0.6s ease forwards;
}

.stats-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--dashboard-shadow-hover);
}

.stats-card-body {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
}

.stats-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  font-size: 1.5rem;
  color: white;
  flex-shrink: 0;
}

.stats-content {
  flex: 1;
}

.stats-number {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stats-label {
  font-size: 0.875rem;
  color: var(--dashboard-text-light);
  font-weight: 500;
}

/* Stats Card Variants */
.stats-primary {
  border-left: 4px solid var(--accent-color);
}

.stats-primary .stats-icon {
  background: linear-gradient(135deg, var(--accent-color), var(--accent-color-light));
}

.stats-primary .stats-number {
  color: var(--accent-color);
}

.stats-info {
  border-left: 4px solid #36b9cc;
}

.stats-info .stats-icon {
  background: linear-gradient(135deg, #36b9cc, #5bc0de);
}

.stats-info .stats-number {
  color: #36b9cc;
}

.stats-success {
  border-left: 4px solid #1cc88a;
}

.stats-success .stats-icon {
  background: linear-gradient(135deg, #1cc88a, #17a673);
}

.stats-success .stats-number {
  color: #1cc88a;
}

.stats-warning {
  border-left: 4px solid #f6c23e;
}

.stats-warning .stats-icon {
  background: linear-gradient(135deg, #f6c23e, #dda20a);
}

.stats-warning .stats-number {
  color: #f6c23e;
}

/*==============================================================================
  QUICK ACTIONS
==============================================================================*/
.quick-action-card {
  display: block;
  min-height: 140px;
  border: 2px solid var(--dashboard-border);
  border-radius: 25px;
  background: var(--dashboard-card-bg);
  box-shadow: var(--dashboard-shadow);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
  transition: all 0.5s ease;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.quick-action-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.quick-action-card:hover::before {
  opacity: 1;
}

.quick-action-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--dashboard-shadow-hover);
  text-decoration: none;
  color: inherit;
}

.quick-action-icon {
  max-width: 70px;
  width: 70px;
  height: 70px;
  aspect-ratio: 1/1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.quick-action-card:hover .quick-action-icon {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.quick-action-content h6 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-top: 0.25rem;
  line-height: 1.2;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  color: var(--heading-color);
  white-space: wrap;
  overflow: hidden;
  text-overflow: ellipsis;
  position: relative;
  z-index: 2;
}

.quick-action-content small {
  color: var(--dashboard-text-light);
  font-size: 0.8rem;
  letter-spacing: -0.3px;
  line-height: 1.2;
  text-align: center;
  position: relative;
  z-index: 2;
  font-weight: 500;
}

/*==============================================================================
  PROFILE CARD
==============================================================================*/
.profile-card .dashboard-card-body {
  padding: 2rem 1.5rem;
}

.profile-avatar-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}

.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid white;
  box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.1);
}

.profile-badge {
  position: absolute;
  bottom: 5px;
  right: 5px;
}

.profile-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--heading-color);
}

.profile-username {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.profile-info {
  text-align: left;
  margin-bottom: 1.5rem;
}

.profile-info-item {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
  color: var(--dashboard-text);
  font-size: 0.9rem;
}

.profile-info-item i {
  color: var(--accent-color);
  width: 20px;
  flex-shrink: 0;
}

.profile-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/*==============================================================================
  EVENTS LIST
==============================================================================*/
.events-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.event-item {
  display: flex;
  align-items: flex-start;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: var(--dashboard-radius);
  border: 1px solid var(--dashboard-border);
  transition: all 0.3s ease;
}

.event-item:hover {
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.event-date-badge {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: var(--accent-color);
  color: white;
  border-radius: var(--dashboard-radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  text-align: center;
}

.event-day {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
}

.event-month {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.event-title {
  margin-bottom: 0.5rem;
}

.event-title a {
  color: var(--heading-color);
  text-decoration: none;
  font-weight: 600;
}

.event-title a:hover {
  color: var(--accent-color);
}

.event-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: var(--dashboard-text-light);
}

.event-description {
  font-size: 0.9rem;
  color: var(--dashboard-text);
  margin: 0;
  line-height: 1.4;
}

.event-actions {
  flex-shrink: 0;
  margin-left: 1rem;
}

/*==============================================================================
  MESSAGES LIST
==============================================================================*/
.messages-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.message-item {
  display: flex;
  align-items: flex-start;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: var(--dashboard-radius);
  border: 1px solid var(--dashboard-border);
  transition: all 0.3s ease;
}

.message-item:hover {
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.message-avatar {
  flex-shrink: 0;
  margin-right: 1rem;
}

.avatar-sm {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.message-header {
  display: flex;
  justify-content: between;
  align-items: center;
  margin-bottom: 0.25rem;
}

.message-sender {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--heading-color);
  margin: 0;
  flex: 1;
}

.message-time {
  font-size: 0.8rem;
  color: var(--dashboard-text-light);
  margin-left: 1rem;
}

.message-subject {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent-color);
  margin-bottom: 0.25rem;
}

.message-preview {
  font-size: 0.875rem;
  color: var(--dashboard-text);
  line-height: 1.4;
  margin: 0;
}

.message-actions {
  flex-shrink: 0;
  margin-left: 1rem;
}

/*==============================================================================
  ACTIVITY FEED
==============================================================================*/
.activity-feed {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.activity-item {
  display: flex;
  align-items: flex-start;
}

.activity-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  color: white;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.activity-content {
  flex: 1;
}

.activity-message {
  font-size: 0.9rem;
  color: var(--dashboard-text);
  margin-bottom: 0.25rem;
  line-height: 1.4;
}

.activity-time {
  font-size: 0.8rem;
  color: var(--dashboard-text-light);
}

/*==============================================================================
  EMPTY STATES
==============================================================================*/
.empty-state {
  text-align: center;
  padding: 2rem 1rem;
}

.empty-state-icon {
  font-size: 3rem;
  color: var(--dashboard-text-light);
  margin-bottom: 1rem;
}

.empty-state h6 {
  color: var(--heading-color);
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: var(--dashboard-text-light);
  margin-bottom: 1.5rem;
}

/*==============================================================================
  BADGES AND UTILITIES
==============================================================================*/
.hucaa-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-official {
  background: linear-gradient(135deg, #0d6efd, #0b5ed7);
}

.badge-member {
  background: linear-gradient(135deg, #dc3545, #b02a37);
}

/*==============================================================================
  ANIMATIONS
==============================================================================*/
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.stats-card:hover .stats-icon {
  animation: pulse 0.6s ease;
}

/*==============================================================================
  RESPONSIVE DESIGN
==============================================================================*/
@media (max-width: 1200px) {
  .dashboard-title {
    font-size: 1.75rem;
  }

  .stats-number {
    font-size: 1.75rem;
  }
}

@media (max-width: 992px) {
  .dashboard-section {
    padding: 1.5rem 0;
  }

  .dashboard-header {
    text-align: center;
    margin-bottom: 1.5rem;
  }

  .dashboard-date {
    margin-top: 1rem;
    display: inline-block;
  }

  .event-item,
  .message-item {
    flex-direction: column;
    text-align: center;
  }

  .event-date-badge,
  .message-avatar {
    margin-right: 0;
    margin-bottom: 1rem;
    align-self: center;
  }

  .event-actions,
  .message-actions {
    margin-left: 0;
    margin-top: 1rem;
  }

  .event-meta {
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .dashboard-card-body {
    padding: 1rem;
  }

  .dashboard-card-header {
    padding: 1rem;
  }

  .stats-card-body {
    padding: 1rem;
  }

  .stats-icon {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }

  .stats-number {
    font-size: 1.5rem;
  }

  .quick-action-card {
    padding: 1rem;
    text-align: center;
    min-height: 120px;
  }

  .quick-action-icon {
    margin: 0 auto 0.5rem;
    width: 60px;
    height: 60px;
    font-size: 1.2rem;
  }

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

@media (max-width: 576px) {
  .dashboard-section {
    padding: 1rem 0;
  }

  .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .dashboard-title {
    font-size: 1.5rem;
  }

  .dashboard-subtitle {
    font-size: 1rem;
  }

  .stats-card {
    margin-bottom: 1rem;
  }

  .event-date-badge {
    width: 50px;
    height: 50px;
  }

  .event-day {
    font-size: 1rem;
  }

  .avatar-sm {
    width: 40px;
    height: 40px;
  }

  .activity-icon {
    width: 35px;
    height: 35px;
    font-size: 0.8rem;
  }

  .quick-action-card {
    min-height: 100px;
    padding: 0.75rem;
  }

  .quick-action-icon {
    width: 50px;
    height: 50px;
    font-size: 1rem;
    margin-bottom: 0.25rem;
  }

  .quick-action-content h6 {
    font-size: 0.85rem;
  }

  .quick-action-content small {
    font-size: 0.7rem;
  }
}

/*==============================================================================
  FORCE LIGHT MODE (Override system dark mode preference)
==============================================================================*/
/* Force light theme regardless of system preference */
.dashboard-section {
  background-color: #ffffff !important;
  color: #495057 !important;
}

.dashboard-card {
  background: #f8f9fb !important;
  border: 1px solid #e3e6f0 !important;
  color: #495057 !important;
}

.dashboard-card-header {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%) !important;
  border-bottom: 1px solid #e3e6f0 !important;
  color: #495057 !important;
}

.dashboard-card-title {
  color: #495057 !important;
}

.dashboard-text {
  color: #5a5c69 !important;
}

.event-item,
.message-item {
  background: #ffffff !important;
  border: 1px solid #e3e6f0 !important;
  color: #495057 !important;
}

.event-item:hover,
.message-item:hover {
  background: #f8f9fa !important;
}

.activity-item {
  color: #495057 !important;
}

.stats-card {
  background: #f8f9fb !important;
  color: #495057 !important;
}

.quick-action-card {
  background: #ffffff !important;
  border: 1px solid #e3e6f0 !important;
  color: #495057 !important;
}

.profile-card .dashboard-card-body {
  background: #ffffff !important;
}
