@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
   
}

:root {
  --primary-color: #667eea;
  --secondary-color: #764ba2;
  --accent-color: #4c9aff;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --bg-glass: rgba(255, 255, 255, 0.1);
  --border-glass: rgba(255, 255, 255, 0.2);
  --shadow-light: 0 8px 32px rgba(31, 38, 135, 0.37);
  --shadow-dark: 0 8px 32px rgba(0, 0, 0, 0.37);
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  color: var(--text-primary);
  transition: all 0.3s ease;
  min-height: 100vh;
  overflow-x: hidden;
}

body::-webkit-scrollbar {
  width: 6px;
}

body::-webkit-scrollbar-track {
  background: #f1f1f1; 
}

body::-webkit-scrollbar-thumb {
  background-color: #fafa6d;  
  border-radius: 10px;
  border: 3px solid transparent;
}

body::-webkit-scrollbar-thumb:hover {
  background-color: #555;
}

/* Glassmorphism utility classes */
.glass {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-light);
}

/* Header Styles */
.header {
  display: flex;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  color: white;
  padding: 15px 30px;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: all 0.3s ease;
}

.header:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.logo i {
  font-size: 28px;
  margin-right: 12px;
  color: #ffd700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
  }
  to {
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8),
      0 0 30px rgba(255, 215, 0, 0.6);
  }
}

.logo h1 {
  font-weight: 700;
  font-size: 24px;
  background: linear-gradient(45deg, #ffd700, #ffa500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav {
  margin-left: 40px;
  display: flex;
  gap: 10px;
}

.nav-link {
  padding: 8px 16px;
  color: white;
  text-decoration: none;
  border-radius: 25px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nav-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.nav-link:hover::before {
  left: 100%;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.header-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
}

.weather-widget {
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.weather-widget:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.user-profile {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  padding: 6px 16px 6px 6px;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

.profile-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-right: 8px;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Main Content */
.main-content {
  padding: 30px;
  max-width: 1400px;
  margin: 0 auto;
}

.welcome-banner {
  background: linear-gradient(
    135deg,
    rgba(76, 154, 255, 0.9),
    rgba(102, 126, 234, 0.9)
  );
  backdrop-filter: blur(20px);
  border-radius: 20px;
  color: white;
  display: flex;
  justify-content: space-between;
  padding: 30px;
  margin-bottom: 30px;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.welcome-banner::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

.welcome-content h2 {
  margin: 0 0 10px 0;
  font-size: 28px;
  font-weight: 600;
}

.welcome-content p {
  opacity: 0.9;
  font-size: 16px;
}

.quick-actions {
  display: flex;
  gap: 12px;
}

.quick-btn {
  background: rgba(255, 255, 255, 0.9);
  color: var(--accent-color);
  border: none;
  padding: 12px 20px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.quick-btn:hover {
  background: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.quick-btn:active {
  transform: translateY(-1px);
}

/* Dashboard Grid */
.dashboard-grid {
  display: grid;
  gap: 25px;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
}

.widget {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  padding: 25px;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.widget::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: left 0.5s;
}

.widget:hover::before {
  left: 100%;
}

.widget:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(76, 154, 255, 0.1);
}

.widget-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--accent-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

.widget-action {
  background: rgba(76, 154, 255, 0.1);
  border: none;
  padding: 8px;
  border-radius: 50%;
  cursor: pointer;
  color: var(--accent-color);
  font-size: 16px;
  transition: all 0.3s ease;
}

.widget-action:hover {
  background: var(--accent-color);
  color: white;
  transform: scale(1.1);
}

/* Event Items */
.event-item,
.spotlight-member,
.announcement-item,
.celebration-item {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  padding: 12px;
  border-radius: 12px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.event-item:hover,
.announcement-item:hover,
.celebration-item:hover {
  background: rgba(76, 154, 255, 0.05);
  transform: translateX(5px);
}

.event-date,
.celebration-type {
  background: linear-gradient(
    135deg,
    var(--accent-color),
    var(--primary-color)
  );
  color: white;
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  min-width: 60px;
  box-shadow: 0 4px 15px rgba(76, 154, 255, 0.3);
}

.event-date .day {
  display: block;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.event-date .month {
  display: block;
  font-size: 12px;
  opacity: 0.8;
  margin-top: 2px;
}

.event-details h4 {
  margin: 0 0 6px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.event-details p {
  margin: 4px 0;
  font-size: 14px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.event-details,
.spotlight-info,
.celebration-details {
  margin-left: 16px;
  flex-grow: 1;
}

/* Spotlight Widget */
.spotlight-member {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0;
  padding: 0;
  border-radius: 0;
  background: none;
  cursor: default;
}

.spotlight-member:hover {
  background: none;
  transform: none;
}

.spotlight-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--accent-color);
  object-fit: cover;
  flex-shrink: 0;
  margin-right: 16px;
}

.spotlight-info {
  flex: 1;
  margin-left: 0;
}

.spotlight-info h4 {
  margin: 0 0 6px 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
}

.spotlight-info .role {
  margin: 0 0 10px 0;
  font-size: 14px;
  color: var(--accent-color);
  font-weight: 500;
  line-height: 1.2;
}

.spotlight-info .achievement {
  margin: 0 0 12px 0;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.spotlight-stats {
  display: flex;
  gap: 20px;
  margin-top: 8px;
}

.spotlight-stats span {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  background: rgba(76, 154, 255, 0.05);
  padding: 4px 8px;
  border-radius: 12px;
}

.spotlight-stats span i {
  font-size: 12px;
  color: var(--accent-color);
}

/* Stats Widget */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.stat-item {
  text-align: center;
  padding: 16px;
  background: rgba(76, 154, 255, 0.05);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.stat-item:hover {
  background: rgba(76, 154, 255, 0.1);
  transform: scale(1.05);
}

.stat-number {
  font-size: 32px;
  font-weight: 700;
  color: var(--accent-color);
  display: block;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.stat-change {
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
}

.stat-change.positive {
  color: var(--success-color);
  background: rgba(16, 185, 129, 0.1);
}

.stat-change.neutral {
  color: var(--text-secondary);
  background: rgba(107, 114, 128, 0.1);
}

/* Announcements */
.announcement-item {
  display: block;
  align-items: stretch;
  margin-bottom: 16px;
  padding: 16px;
  border-radius: 12px;
  transition: all 0.3s ease;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(76, 154, 255, 0.1);
}

.announcement-item:hover {
  background: rgba(76, 154, 255, 0.05);
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.announcement-badge {
  background: linear-gradient(135deg, var(--warning-color), #f97316);
  color: white;
  border-radius: 15px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 12px;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.announcement-item.priority-high {
  border-left: 4px solid var(--warning-color);
  animation: pulse-border 2s ease-in-out infinite;
  background: rgba(245, 158, 11, 0.05);
}

@keyframes pulse-border {
  0%,
  100% {
    border-left-color: var(--warning-color);
  }
  50% {
    border-left-color: var(--danger-color);
  }
}

.announcement-content {
  width: 100%;
}

.announcement-meta {
  display: flex;
  gap: 20px;
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid rgba(76, 154, 255, 0.1);
}

.announcement-meta span {
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

/* Resources */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.resource-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
  text-decoration: none;
  background: rgba(76, 154, 255, 0.05);
  padding: 16px;
  border-radius: 12px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.resource-link:hover {
  background: rgba(76, 154, 255, 0.1);
  border-color: var(--accent-color);
  transform: translateY(-2px);
}

.resource-link i {
  font-size: 20px;
  color: var(--accent-color);
}

/* Celebrations */
.celebration-type {
  font-size: 24px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ff6b6b, #ff8e53);
  border-radius: 50%;
  margin-right: 16px;
}

/* Footer */
.footer {
  background: rgba(44, 62, 80, 0.9);
  backdrop-filter: blur(20px);
  color: white;
  padding: 20px 30px;
  margin-top: 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: white;
  transform: translateY(-1px);
}

.footer-info p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

/* Professional Text Alignment Improvements */
.announcement-item h4 {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.announcement-item p {
  margin: 0 0 8px 0;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.celebration-details h4 {
  margin: 0 0 4px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.celebration-details p {
  margin: 0 0 2px 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.celebration-details small {
  font-size: 12px;
  color: var(--text-secondary);
  opacity: 0.8;
}

.spotlight-info h4 {
  margin: 0 0 4px 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.spotlight-info .role {
  margin: 0 0 8px 0;
  font-size: 14px;
  color: var(--accent-color);
  font-weight: 500;
}

.spotlight-info .achievement {
  margin: 0 0 12px 0;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Better widget content spacing */
.widget-content {
  line-height: 1.6;
}

.widget-content h4 {
  margin-bottom: 8px;
  font-weight: 600;
}

.widget-content p {
  margin-bottom: 6px;
}

/* Improved resource link text alignment */
.resource-link span {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

/* Responsive Design */
@media (max-width: 768px) {
  .header {
    padding: 12px 20px;
    flex-direction: column;
    gap: 16px;
  }

  .nav {
    margin-left: 0;
  }

  .welcome-banner {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

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

  .main-content {
    padding: 20px;
  }
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(76, 154, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--accent-color);
  animation: spin 1s ease-in-out infinite;
}

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

/* Notification Styles */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  color: var(--text-primary);
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 1001;
  transform: translateX(400px);
  transition: transform 0.4s ease;
}

.notification.show {
  transform: translateX(0);
}

.notification.success {
  border-left: 4px solid var(--success-color);
}

.notification.warning {
  border-left: 4px solid var(--warning-color);
}

.notification.error {
  border-left: 4px solid var(--danger-color);
}
