* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Cascadia Code", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
}

:root {
  --primary-color: #ff8c00;
  --primary-dark: #ff5100;
  --primary-light: #fffcf6;
  --accent-color: #ff9f5a;
  --card-light: #ffddb8;
  --text-dark: #111111;
  /* Previously #222 */
  --text-medium: #444444;
  /* Previously #666 */
  --text-light: #666666;
  /* Previously #999 */
  --bg-light: #ffffff;
  /* Previously #fafafa */
  --bg-gray: #f5f5f5;
  /* Previously #ffffff */
  --shadow-light: 0 5px 15px rgba(0, 0, 0, 0.05);
  --shadow-medium: 0 10px 30px rgba(0, 0, 0, 0.1);
  --shadow-3d: 0 10px 20px rgba(0, 0, 0, 0.08), 0 5px 10px rgba(0, 0, 0, 0.05);
  --radius-sm: 15px;
  --radius-md: 20px;
  --radius-lg: 25px;
  --radius-full: 50%;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  
  /* Dark mode variables */
  --dark-bg: #222232;
  --dark-card-bg: #26263a;
  --dark-input-bg: #2a2a3a;
  --dark-border: #3a3a4d;
  --dark-hover: #333344;
  --dark-text: #ffffff;
  --dark-text-muted: #aaaaaa;
  --dark-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    transform: translateX(-30px);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes scaleUp {
  from {
    transform: scale(0.8);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes rotateIn {
  from {
    transform: rotateY(-15deg);
    opacity: 0;
  }

  to {
    transform: rotateY(0);
    opacity: 1;
  }
}

@keyframes floatAnimation {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-5px);
  }

  100% {
    transform: translateY(0px);
  }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

body {
  background: url("https://w.wallhaven.cc/full/9o/wallhaven-9oxdqx.png") no-repeat center center fixed;
  background-color: rgba(255, 255, 255, 0.50);
  backdrop-filter: blur(20px);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  color: var(--text-dark);
  perspective: 1000px;
}

.tablet {
  width: 1300px;
  height: 650px;
  background-color: var(--primary-light);
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  display: flex;
  border-radius: var(--radius-lg);
  transform-style: preserve-3d;
  animation: rotateIn 0.8s ease-out forwards;
}


.live-clock {
  text-align: center;
  font-size: 34px;
  font-weight: bold;
  color: var(--text-dark);
  background-color: white;
  padding: 20px 16px;
  border-radius: var(--radius-sm);
  /* box-shadow: var(--shadow-light); */
  margin-top: 10px;
  display: none;
  animation: fadeIn 1.4s ease-out forwards;
  transform-style: preserve-3d;
  transform: translateZ(5px);
}

.sidebar {
  width: 260px;
  padding: 20px;
  background-color: white;
  border-right: 1px solid #f0f0f0;
  position: relative;
  display: flex;
  flex-direction: column;
  border-top-right-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
  box-shadow: 5px 0 15px rgba(0, 0, 0, 0.03);
  transform: translateZ(10px);
  animation: slideIn 0.6s ease-out forwards;
  transition: width 0.3s ease;
}

.sidebar.collapsed {
  width: 80px;
  overflow: hidden;
}

.sidebar.collapsed .logo {
  font-size: 0;
  justify-content: center;
  margin-bottom: 20px;
}

.sidebar.collapsed .logo i {
  margin-right: 0;
  font-size: 24px;
}

.sidebar.collapsed .user-profile,
.sidebar.collapsed .nav-item span,
.sidebar.collapsed .badge {
  display: none;
}

.sidebar.collapsed .nav-item {
  justify-content: center;
  padding: 12px;
}

.sidebar.collapsed .nav-item i {
  margin-right: 0;
}

.logo {
  font-weight: bold;
  font-size: 24px;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  animation: fadeIn 0.8s ease-out forwards;
}

.logo i {
  color: var(--primary-color);
  margin-right: 8px;
  animation: scaleUp 0.8s ease-out forwards;
  transform-origin: center;
}

.user-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 30px;
  animation: fadeIn 1s ease-out forwards;
}

.profile-pic {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  background-color: var(--bg-light);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border: 3px solid var(--primary-color);
  position: relative;
  margin-bottom: 10px;
  box-shadow: 0 5px 15px rgba(138, 181, 117, 0.2);
  animation: scaleUp 1.2s ease-out forwards;
  transform-style: preserve-3d;
}

.profile-pic i {
  transform: translateZ(5px);
}

.online-status {
  position: absolute;
  bottom: 5px;
  right: 5px;
  width: 12px;
  height: 12px;
  background-color: #00ff08;
  border-radius: var(--radius-full);
  border: 2px solid white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  animation: scaleUp 1.5s ease-out forwards;
}

.username {
  margin: 5px 0;
  font-weight: 600;
  font-size: 16px;
}

.user-level {
  color: var(--primary-color);
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 5px;
  animation: fadeIn 1.6s ease-out forwards;
}

.stars {
  color: #ffb800;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  animation: fadeIn 1.8s ease-out forwards;
}

.stars i {
  animation: floatAnimation 3s ease-in-out infinite;
}

.nav-menu {
  margin-top: 20px;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  margin-bottom: 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-medium);
  transition: var(--transition);
  position: relative;
  transform-style: preserve-3d;
  animation: slideIn 1s ease-out forwards;
  animation-fill-mode: both;
}

.nav-item:nth-child(1) {
  animation-delay: 0.2s;
}

.nav-item:nth-child(2) {
  animation-delay: 0.3s;
}

.nav-item:nth-child(3) {
  animation-delay: 0.4s;
}

.nav-item:nth-child(4) {
  animation-delay: 0.5s;
}

.nav-item:nth-child(5) {
  animation-delay: 0.6s;
}

.nav-item:nth-child(6) {
  animation-delay: 0.7s;
}

.nav-item:hover {
  background-color: var(--primary-color);
  color: white; 
  transform: translateZ(5px) translateX(3px);
  box-shadow: -3px 3px 10px rgba(0, 0, 0, 0.05);
}

.nav-item.active {
  color: white;
  background: var(--primary-color);
  box-shadow: -2px 3px 10px rgba(0, 0, 0, 0.05);
  transform: translateZ(8px);
}

.nav-item i {
  margin-right: 12px;
  font-size: 16px;
  width: 20px;
  text-align: center;
  transform: translateZ(5px);
  transition: var(--transition);
}

.nav-item:hover i {
  transform: translateZ(10px) scale(1.1);
}

.badge {
  position: absolute;
  right: 15px;
  background-color: var(--accent-color);
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: 600;
  box-shadow: 0 2px 5px rgba(255, 159, 90, 0.3);
  transform: translateZ(10px);
}

.badge.new {
  background-color: #5ab0ff;
  box-shadow: 0 2px 5px rgba(90, 176, 255, 0.3);
}

.main-content {
  flex: 1;
  padding: 20px 30px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  background-color: var(--primary-light);
  animation: fadeIn 1s ease-out forwards;
  transform-style: preserve-3d;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  animation: fadeIn 1.2s ease-out forwards;
}

.search-bar {
  display: flex;
  align-items: center;
  background-color: var(--bg-gray);
  border-radius: 20px;
  padding: 8px 15px;
  width: 400px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
  transform: translateZ(5px);
}

.search-bar input {
  border: none;
  background: transparent;
  outline: none;
  margin-left: 10px;
  font-size: 14px;
  width: 100%;
  color: var(--text-dark);
}

.search-bar:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 5px 15px rgba(166, 209, 142, 0.2);
  transform: translateZ(10px);
}

.search-bar i {
  color: var(--text-light);
}

.user-actions {
  display: flex;
  align-items: center;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background-color: var(--bg-gray);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: 10px;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
  color: var(--text-medium);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
  transform: translateZ(5px);
}

.icon-btn:hover {
  background-color: var(--primary-light);
  color: var(--text-dark);
  transform: translateZ(10px) scale(1.1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.notification-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  background-color: var(--accent-color);
  border-radius: var(--radius-full);
  border: 2px solid white;
  animation: scaleUp 1.5s ease-out forwards, floatAnimation 2s ease-in-out infinite;
}

.user-avatars {
  display: flex;
  margin-left: 15px;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background-color: #f0f0f0;
  margin-left: -8px;
  border: 2px solid white;
  overflow: hidden;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translateZ(5px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
  transition: var(--transition);
}

.user-avatar:hover {
  transform: translateZ(15px) scale(1.1);
  z-index: 10;
}

.user-avatar:first-child {
  margin-left: 0;
}

.user-avatar i {
  transform: translateZ(5px);
}

.user-count {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  font-size: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 600;
}

body:not(.dark-mode) .greeting h1 {
  color: #111111;
  text-shadow: none;
  /* remove blurry shadow in light mode */
}

body:not(.dark-mode) .greeting p {
  color: #444444;
}

body:not(.dark-mode) .announcement-text {
  color: #555555;
  /* previously too light */
}

body:not(.dark-mode) .announcement-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
}

body:not(.dark-mode) .event-time {
  color: #444444;
  font-weight: 500;
}


body:not(.dark-mode) .legend-color.primary,
.bar {
  background-color: var(--primary-color);
}

body:not(.dark-mode) .day-number.active {
  background-color: var(--primary-color);
  color: white;
}

body:not(.dark-mode) .month-selector i,
.logo i {
  color: var(--primary-color);
}

body:not(.dark-mode) {
  --text-light: #666666;
  --text-medium: #444444;
}

.greeting {
  margin-bottom: 30px;
  animation: fadeIn 1.4s ease-out forwards;
  transform-style: preserve-3d;
  transform: translateZ(5px);
  color: var(--text-dark);
}

.greeting h1 {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
  line-height: 1.2;
  text-shadow: 1px 1px 0 #fff, 2px 2px 0 rgba(0, 0, 0, 0.05);
}

.greeting p {
  color: var(--text-medium);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 15px;
}

.cta-buttons {
  display: flex;
  gap: 15px;
}

.cta-button {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  transform: translateZ(5px);
  box-shadow: var(--shadow-light);
}

.primary-cta {
  background-color: var(--text-dark);
  color: white;
  animation: scaleUp 1.6s ease-out forwards;
}

.primary-cta:hover {
  background-color: black;
  transform: translateZ(10px) translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.secondary-cta {
  background-color: var(--bg-gray);
  color: var(--text-dark);
  border: 1px solid rgba(0, 0, 0, 0.05);
  animation: scaleUp 1.8s ease-out forwards;
}

.secondary-cta:hover {
  background-color: var(--primary-light);
  transform: translateZ(10px) translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.stats-row {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
  animation: fadeIn 1.6s ease-out forwards;
}

.stat-card {
  background-color: white;
  border-radius: var(--radius-md);
  padding: 20px;
  flex: 1;
  box-shadow: var(--shadow-light);
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  transform-style: preserve-3d;
  transform: translateZ(5px);
  animation: scaleUp 2s ease-out forwards;
}

.stat-card:nth-child(1) {
  animation-delay: 0.2s;
}

.stat-card:nth-child(2) {
  animation-delay: 0.4s;
}

.stat-card:nth-child(3) {
  animation-delay: 0.6s;
}

.stat-card:hover {
  transform: translateZ(20px) translateY(-5px);
  box-shadow: var(--shadow-3d);
}

.progress-circle {
  width: 80px;
  height: 80px;
  position: relative;
}

.progress-circle svg {
  transform: rotate(-90deg);
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.1));
}

.progress-circle circle {
  fill: none;
  stroke-width: 8;
  transition: stroke-dashoffset 1s ease;
}

.progress-bg {
  stroke: #f0f0f0;
}

.progress-value {
  stroke: var(--primary-color);
  stroke-linecap: round;
  animation: progress 1.5s ease-out forwards;
}

@keyframes progress {
  from {
    stroke-dashoffset: 226;
  }

  to {
    stroke-dashoffset: 45;
  }
}

.progress-text {
  position: absolute;
  top: 37%;
  left: 30%;
  transform: translate(-50%, -50%);
  font-size: 18px;
  font-weight: 700;
  animation: fadeIn 2.2s ease-out forwards;
}

.stat-label {
  margin-top: 10px;
  font-size: 14px;
  color: var(--text-medium);
  font-weight: 500;
}

.sub-label {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 5px;
}

.view-more {
  margin-top: auto;
  text-align: right;
  color: var(--text-medium);
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  transform: translateZ(5px);
}

.view-more:hover {
  color: var(--primary-color);
  transform: translateZ(15px) translateX(3px);
}

.featured-card {
  /* background: linear-gradient(135deg, #ffe9d6 0%, #ffdfbf 100%); */
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite, scaleUp 2s ease-out forwards;
  animation-delay: 0s, 0.4s;
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.featured-card .icons {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.icon-circle {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background-color: var(--accent-color);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: 10px;
  color: white;
  box-shadow: 0 5px 15px rgba(255, 159, 90, 0.3);
  transform: translateZ(10px);
  animation: floatAnimation 3s ease-in-out infinite;
}

.icon-circle:nth-child(2) {
  animation-delay: 0.5s;
}

.tag {
  display: inline-block;
  background-color: rgba(255, 159, 90, 0.2);
  color: var(--accent-color);
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 10px;
  margin-top: 5px;
  box-shadow: 0 2px 5px rgba(255, 159, 90, 0.1);
  transform: translateZ(5px);
}

.try-button {
  background: linear-gradient(135deg, var(--accent-color) 0%, #ff8b3d 100%);
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  margin-top: auto;
  align-self: flex-start;
  box-shadow: 0 5px 15px rgba(255, 159, 90, 0.3);
  transform: translateZ(10px);
}

.try-button:hover {
  background: linear-gradient(135deg, #ff8b3d 0%, var(--accent-color) 100%);
  transform: translateZ(15px) translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 159, 90, 0.4);
}

.sales-marketing-card {
  /* background: linear-gradient(135deg, var(--primary-light) 0%, #e6f7d9 100%); */
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite, scaleUp 2s ease-out forwards;
  animation-delay: 0s, 0.6s;
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-text {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 5px;
  transform: translateZ(5px);
}

.card-details {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-medium);
  margin-top: 5px;
  transform: translateZ(5px);
}

.card-instructor,
.card-rating {
  display: flex;
  align-items: center;
  gap: 5px;
}

.card-rating i {
  color: #ffb800;
}

.card-image {
  position: absolute;
  right: 0;
  bottom: 0;
  height: 100%;
  overflow: hidden;
  transform: translateZ(2px);
  animation: fadeIn 2.5s ease-out forwards;
}

.next-button {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  background-color: var(--text-dark);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 10px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transform: translateZ(10px);
}

.next-button:hover {
  background-color: var(--primary-dark);
  transform: translateZ(15px) scale(1.2);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.categories {
  margin-bottom: 30px;
  animation: fadeIn 1.8s ease-out forwards;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  transform-style: preserve-3d;
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateZ(5px);
}

.section-title i {
  color: var(--primary-color);
  transform: translateZ(10px);
}

.more-button {
  color: var(--text-medium);
  cursor: pointer;
  transition: var(--transition);
  transform: translateZ(5px);
}

.more-button:hover {
  color: var(--text-dark);
  transform: translateZ(10px) translateX(3px);
}

.category-pills {
  display: flex;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) var(--bg-gray);
  transform-style: preserve-3d;
}

.category-pills::-webkit-scrollbar {
  height: 6px;
}

.category-pills::-webkit-scrollbar-track {
  background: var(--bg-gray);
  border-radius: 3px;
}

.category-pills::-webkit-scrollbar-thumb {
  background-color: var(--primary-color);
  border-radius: 3px;
}

.category-pill {
  min-width: 100px;
  text-align: center;
  padding: 15px 10px;
  background-color: white;
  border-radius: var(--radius-sm);
  margin-right: 10px;
  box-shadow: var(--shadow-light);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transform: translateZ(5px);
  transform-style: preserve-3d;
  animation: scaleUp 2s ease-out forwards;
}

.category-pill:nth-child(1) {
  animation-delay: 0.2s;
}

.category-pill:nth-child(2) {
  animation-delay: 0.3s;
}

.category-pill:nth-child(3) {
  animation-delay: 0.4s;
}

.category-pill:nth-child(4) {
  animation-delay: 0.5s;
}

.category-pill:nth-child(5) {
  animation-delay: 0.6s;
}

.category-pill:nth-child(6) {
  animation-delay: 0.7s;
}

.category-pill:hover {
  transform: translateZ(15px) translateY(-5px);
  box-shadow: var(--shadow-3d);
}

.category-pill.active {
  /* border-color: var(--primary-color); */
  background: var(--card-light);
  box-shadow: 0 5px 15px rgba(166, 209, 142, 0.2);
}

.category-pill i {
  display: block;
  font-size: 18px;
  margin-bottom: 8px;
  transform: translateZ(10px);
  transition: var(--transition);
}

.category-pill:hover i {
  transform: translateZ(20px) scale(1.2);
}

.category-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 3px;
  transform: translateZ(5px);
}

.course-count {
  font-size: 10px;
  color: var(--text-light);
  transform: translateZ(5px);
}

.category-pill.add-category {
  border: 1px dashed var(--text-light);
  background-color: var(--bg-light);
}

.category-pill.add-category:hover {
  border-color: var(--primary-color);
}

.calendar-section {
  margin-bottom: 30px;
  animation: fadeIn 2s ease-out forwards;
  transform-style: preserve-3d;
  background-color: white;
  border-radius: var(--radius-md);
  padding: 20px;
  flex: 1;
  box-shadow: var(--shadow-light);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
  transform: translateZ(5px);
}

.month-selector {
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

.month-selector i {
  color: var(--primary-color);
}

.nav-buttons {
  display: flex;
  gap: 5px;
}

.nav-btn {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-full);
  background-color: var(--bg-gray);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
  transform: translateZ(5px);
}

.nav-btn:hover {
  background-color: var(--primary-light);
  transform: translateZ(10px) scale(1.1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.calendar-days {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  transform-style: preserve-3d;
}

.calendar-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 40px;
  position: relative;
  transform: translateZ(5px);
  animation: fadeIn 2.2s ease-out forwards;
}

.calendar-day:nth-child(1) {
  animation-delay: 0.1s;
}

.calendar-day:nth-child(2) {
  animation-delay: 0.2s;
}

.calendar-day:nth-child(3) {
  animation-delay: 0.3s;
}

.calendar-day:nth-child(4) {
  animation-delay: 0.4s;
}

.calendar-day:nth-child(5) {
  animation-delay: 0.5s;
}

.calendar-day:nth-child(6) {
  animation-delay: 0.6s;
}

.calendar-day:nth-child(7) {
  animation-delay: 0.7s;
}

.day-name {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 8px;
}

.day-number {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
}

.day-number:hover {
  background-color: var(--bg-gray);
}

.day-number.active {
  background-color: var(--primary-color);
  color: white;
  font-weight: 600;
}

.event-dot {
  width: 4px;
  height: 4px;
  border-radius: var(--radius-full);
  background-color: var(--accent-color);
  margin-top: 5px;
}

.today-events {
  margin-top: 15px;
}

.event-item {
  display: flex;
  align-items: center;
  padding: 10px;
  background-color: var(--card-light);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  box-shadow: var(--shadow-light);
  /* border: 1px solid rgba(0, 0, 0, 0.05); */
  transition: var(--transition);
}

.event-item:hover {
  background-color: var(--primary-color);
  color: white;
}

.event-time {
  font-size: 12px;
  color: var(--text-dark);
  width: 70px;
}

.event-title {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
}

.event-action {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-full);
  background-color: var(--bg-gray);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-medium);
  margin-left: 10px;
}

.chart-section {
  margin-bottom: 30px;
  animation: fadeIn 2s ease-out forwards;
  transform-style: preserve-3d;
  background-color: white;
  border-radius: var(--radius-md);
  padding: 20px;
  flex: 1;
  box-shadow: var(--shadow-light);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.chart-legend {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-medium);
}

.legend-color {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.legend-color.primary {
  background-color: var(--primary-color);
}

.legend-color.secondary {
  background-color: var(--primary-light);
}

.chart-container {
  height: 150px;
  display: flex;
  align-items: flex-end;
  margin-bottom: 20px;
}

.chart-bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding: 0 5px;
}

.chart-bar.highlighted {
  background-color: rgba(166, 209, 142, 0.1);
  border-radius: var(--radius-sm);
}

.bar {
  width: 12px;
  background-color: var(--primary-color);
  margin-bottom: 5px;
  border-radius: 3px 3px 0 0;
  transition: var(--transition);
}

.bar.secondary {
  background-color: var(--primary-light);
}

.bar-day {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 5px;
}

.points-display {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  background-color: var(--primary-color);
  color: var(--primary-light);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-light);
  border: 1px solid #0000000d;
}

.points-value {
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: baseline;
  color: var(--primary-light);
}

.point-unit {
  font-size: 12px;
  color: var(--primary-light);
  margin-left: 2px;
  font-weight: normal;
}

.point-label {
  color: var(--primary-light);
  font-size: 12px;
}

.webinars-section {
  margin-bottom: 30px;
}

.webinar-item {
  display: flex;
  align-items: center;
  padding: 10px;
  background-color: white;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  box-shadow: var(--shadow-light);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.webinar-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.webinar-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  background-color: #ffe9d6;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 15px;
  flex-shrink: 0;
}

.webinar-icon i {
  font-size: 18px;
}

.diamond-icon {
  background-color: #e9f5ff;
}

.code-icon {
  background-color: #f5e9ff;
}

.webinar-info {
  flex: 1;
}

.webinar-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 5px;
}

.webinar-time {
  font-size: 12px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 5px;
}

.webinar-details {
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--text-medium);
  font-size: 12px;
  margin-left: 15px;
}

.webinar-participants {
  display: flex;
  align-items: center;
  gap: 5px;
}

.webinar-action {
  margin-left: 10px;
}

.join-webinar-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 5px 15px;
  border-radius: 15px;
  font-size: 12px;
  cursor: pointer;
  transition: var(--transition);
}

.join-webinar-btn:hover {
  background-color: var(--primary-dark);
}

.footer {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--bg-gray);
}

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

.footer-link {
  color: var(--text-medium);
  font-size: 12px;
  text-decoration: none;
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--primary-color);
}

.footer-copyright {
  font-size: 12px;
  color: var(--text-light);
}

/* Assignments Section */
.assignments-section {
  margin-bottom: 30px;
}

.assignment-item {
  display: flex;
  align-items: center;
  padding: 15px;
  background-color: white;
  border-radius: var(--radius-sm);
  margin-bottom: 15px;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
}

.assignment-icon {
  width: 40px;
  height: 40px;
  background-color: var(--primary-light);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
}

.assignment-info {
  flex: 1;
}

.assignment-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
}

.assignment-time {
  font-size: 12px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 5px;
}

.assignment-details {
  text-align: right;
  margin-right: 15px;
}

.assignment-status {
  font-size: 12px;
  color: var(--accent-color);
  margin-bottom: 5px;
}

.assignment-weight {
  font-size: 12px;
  color: var(--text-dark);
  font-weight: bold;
}

.start-assignment-btn,
.continue-assignment-btn,
.view-assignment-btn {
  background-color: var(--primary-color);
  color: white;
  padding: 8px 12px;
  border: none;
  border-radius: 10px;
  font-size: 12px;
  cursor: pointer;
  transition: var(--transition);
}

.start-assignment-btn:hover,
.continue-assignment-btn:hover,
.view-assignment-btn:hover {
  background-color: var(--primary-dark);
}

/* Announcements Section */
.announcements-section {
  margin-bottom: 30px;
}

.announcement-item {
  display: flex;
  align-items: flex-start;
  padding: 15px;
  background-color: white;
  border-radius: var(--radius-sm);
  margin-bottom: 15px;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
}

.announcement-avatar {
  width: 40px;
  height: 40px;
  background-color: var(--primary-light);
  border-radius: var(--radius-full);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 15px;
}

.announcement-content {
  flex: 1;
}

.announcement-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  font-size: 13px;
  color: var(--text-dark);
  font-weight: 600;
}

.announcement-time {
  font-size: 11px;
  color: var(--text-light);
}

.announcement-text {
  font-size: 13px;
  color: var(--text-medium);
}

/* Modal */
.modal {
  animation: fadeIn 0.3s ease-out forwards;
}

.modal input,
.modal select {
  font-family: inherit;
}

/* Tooltip */
.tooltip {
  background-color: var(--text-dark);
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 12px;
  white-space: nowrap;
  z-index: 1000;
  box-shadow: var(--shadow-light);
  pointer-events: none;
  transition: var(--transition);
  position: absolute;
}

/* Notification Toast */
.notification {
  animation: fadeIn 0.3s ease-out;
}

/* Animation Keyframes (extend) */
@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(20px);
  }
}

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(255, 255, 255, 0.50);
  backdrop-filter: blur(20px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  overflow: hidden;
  animation: preloaderFadeOut 0.6s ease forwards;
  overflow-y: hidden;
}

.loader {
  width: 50px;
  height: 50px;
  border: 6px solid #f3f3f3;
  border-top: 6px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

@keyframes preloaderFadeOut {
  0% {
    opacity: 1;
    transform: scale(1);
  }

  00% {
    opacity: 0;
    transform: scale(0.9);
  }
}




/* Desktop only layout: move clock beside greeting */
@media screen and (min-width: 1025px) {
  .greeting {
    justify-content: space-between;
    align-items: center;
    display: grid;
    /* Define the element as a grid container */
    grid-template-columns: repeat(2, 1fr);
    /* Create 3 columns of equal width */
    grid-template-rows: 100px 100px;
    /* Create 3 rows of 100px each */
    margin-bottom: 10px;
  }

  .greeting h1 {
    display: grid;
  }

  .greeting h1,
  .greeting p,
  .cta-buttons {
    margin-bottom: 20px;
  }

  .live-clock {
    display: grid;
    margin-top: -33px;
  }
}

@media screen and (max-width: 1200px) {
  .tablet {
    height: auto;
    flex-direction: column;
    padding: 25px;
    border-radius: 0px;
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px);
  }

  body.dark-mode .tablet {
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
  }

  .sidebar {
    width: 100%;
    padding: 30px;
    border-radius: var(--radius-md);
  }

  .main-content {
    padding: 15px;
    background-color: transparent;
  }

  .stats-row {
    flex-direction: column;
  }

  .stat-card {
    margin-bottom: 15px;
  }
}


@media screen and (max-width: 768px) {

  body.dark-mode .tablet {
    background-color: #00000095 !important;
    backdrop-filter: blur(20px);
  }

  body.dark-mode .main-content {
    background-color: #00000000 !important;
  }

  body.dark-mode .sidebar {
    background-color: rgba(30, 30, 50, 0.8);
    backdrop-filter: blur(12px);
    border-color: rgba(0, 0, 0, 0);
    color: white;
  }

  .tablet {
    padding: 10px;
    border-radius: 0px;
    background-color: #ffffff85;
  }

  .sidebar {
    width: 100%;
    padding: 25px;
    position: static;
    border-radius: var(--radius-md);
    box-shadow: none;
  }

  .main-content {
    background-color: #00000000;
  }

  .header {
    flex-direction: column;
    align-items: flex-start;
  }

  .search-bar {
    width: 100%;
    margin-bottom: 15px;
  }

  .user-actions {
    width: 100%;
    justify-content: space-between;
  }

  .calendar-days {
    overflow-x: auto;
    justify-content: flex-start;
  }

  .calendar-day {
    min-width: 40px;
  }

  .chart-container {
    overflow-x: auto;
  }

  .chart-bar {
    min-width: 40px;
  }
  
  .stats-row {
    flex-direction: column;
  }
  
  .assignment-item, .announcement-item, .webinar-item {
    flex-direction: column;
  }
  
  .assignment-icon, .announcement-avatar, .webinar-icon {
    margin-bottom: 10px;
  }
  
  .assignment-info, .announcement-content, .webinar-info {
    margin-bottom: 10px;
    width: 100%;
  }
  
  .assignment-details, .webinar-details {
    margin-bottom: 10px;
    width: 100%;
    text-align: left;
    margin-right: 0;
  }
  
  .assignment-action, .webinar-action {
    width: 100%;
    display: flex;
    justify-content: center;
  }
  
  .assignment-action button, .webinar-action button {
    width: 100%;
  }
}

@media screen and (max-width: 480px) {
  .greeting h1 {
    font-size: 24px;
  }
  
  .greeting p {
    font-size: 12px;
  }
  
  .cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
  
  .cta-button {
    width: 100%;
    text-align: center;
  }
  
  .footer {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
}

/* -------------------------
   ✅ FULL DARK MODE THEME
------------------------- */
body.dark-mode {
  background: url("https://w.wallhaven.cc/full/ex/wallhaven-exlmew.png") no-repeat center center fixed !important;
  background-color: rgba(0, 0, 0, 0.4) !important;
  backdrop-filter: blur(20px);
  color: var(--dark-text);
}

/* General Containers */
body.dark-mode .tablet {
  background-color: rgba(13, 12, 11, 0.95) !important;
  backdrop-filter: blur(20px);
}

body.dark-mode .main-content {
  background-color: transparent !important;
}

body.dark-mode .sidebar {
  background-color: rgba(30, 30, 50, 0.8);
  backdrop-filter: blur(12px);
  border-color: transparent;
  color: var(--dark-text);
}

/* Cards, Sections */
body.dark-mode .chart-section,
body.dark-mode .calendar-section,
body.dark-mode .webinar-item,
body.dark-mode .stat-card,
body.dark-mode .category-pill,
body.dark-mode .assignment-item,
body.dark-mode .announcement-item {
  background-color: var(--dark-card-bg) !important;
  color: var(--dark-text);
  border-color: var(--dark-border);
  box-shadow: none;
}

body.dark-mode .section-title i,
body.dark-mode .month-selector i,
body.dark-mode .logo i {
  color: var(--card-light);
}

/* Preloader */
body.dark-mode #preloader {
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(60px);
}

/* Text and Nav */
body.dark-mode .nav-item {
  color: var(--dark-text-muted);
}

body.dark-mode .nav-item:hover {
  color: white;
  background-color: var(--primary-color);
}

body.dark-mode .nav-item.active {
  background-color: var(--primary-color);
  color: white;
}

/* Search Bar */
body.dark-mode .search-bar {
  background-color: var(--dark-input-bg);
  border-color: var(--dark-border);
}

body.dark-mode .search-bar input {
  color: var(--dark-text);
}

/* Buttons & Icons */
body.dark-mode .icon-btn {
  background-color: var(--dark-input-bg);
  color: var(--dark-text-muted);
}

body.dark-mode .more-button:hover {
  color: var(--primary-color);
  background-color: var(--dark-hover);
  border-radius: var(--radius-md);
  padding: 10px;
  transform: translateZ(10px) translateX(3px);
}

body.dark-mode .icon-btn:hover {
  background-color: var(--card-light);
  color: var(--text-dark);
}

body.dark-mode .live-clock {
  background-color: var(--dark-input-bg);
  color: var(--dark-text);
  box-shadow: var(--dark-shadow);
}

/* Active Category Pill */
body.dark-mode .category-pill {
  background-color: var(--dark-card-bg);
  color: var(--dark-text);
}

body.dark-mode .category-pill.active {
  background-color: var(--card-light);
  color: var(--text-dark);
}

/* Progress Circles */
body.dark-mode .progress-circle svg .progress-bg {
  stroke: var(--dark-hover);
}

body.dark-mode .progress-circle svg .progress-value {
  stroke: var(--card-light);
}

/* Hovered Items */
body.dark-mode .announcement-item:hover,
body.dark-mode .assignment-item:hover {
  background-color: var(--card-light);
  color: var(--text-dark);
}

body.dark-mode .day-number.active {
  background-color: var(--primary-color);
  color: white;
}

body.dark-mode .legend-color.primary,
body.dark-mode .bar {
  background-color: var(--primary-color);
}

body.dark-mode .event-item {
  background-color: var(--primary-color);
  color: var(--dark-text);
}

body.dark-mode .event-item:hover {
  background-color: var(--dark-hover);
  color: var(--dark-text);
}

body.dark-mode .points-display {
  background-color: var(--card-light);
  color: var(--text-dark);
  box-shadow: none;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Webinars & Buttons */
body.dark-mode .webinar-icon {
  background-color: var(--dark-hover) !important;
}

body.dark-mode .profile-pic {
  border: 3px solid var(--card-light);
  background-color: transparent;
}

body.dark-mode .join-webinar-btn,
body.dark-mode .start-assignment-btn,
body.dark-mode .continue-assignment-btn,
body.dark-mode .view-assignment-btn {
  background-color: var(--card-light);
  color: var(--text-dark);
}

body.dark-mode .join-webinar-btn:hover,
body.dark-mode .start-assignment-btn:hover,
body.dark-mode .continue-assignment-btn:hover,
body.dark-mode .view-assignment-btn:hover {
  background-color: var(--bg-light);
  color: var(--primary-color);
}

body.dark-mode .points-value,
body.dark-mode .point-label,
body.dark-mode .point-unit {
  color: var(--text-dark);
}

body.dark-mode .nav-btn {
  color: var(--text-dark);
}

body.dark-mode .stat-label,
body.dark-mode .greeting h1,
body.dark-mode .greeting p,
body.dark-mode .event-time,
body.dark-mode .more-button,
body.dark-mode .category-name {
  color: var(--dark-text);
}

body.dark-mode .course-count {
  color: var(--dark-text-muted);
}

body.dark-mode .stat-card.featured-card {
  background-color: var(--dark-card-bg);
  color: var(--dark-text);
}

body.dark-mode .sales-marketing-card {
  background-color: var(--dark-card-bg);
  color: var(--dark-text);
}

body.dark-mode .tooltip {
  background-color: var(--dark-hover);
  color: var(--dark-text);
}

body.dark-mode .info-panel {
  background-color: var(--dark-card-bg);
  color: var(--dark-text);
  border-color: var(--dark-border);
}

body.dark-mode .info-panel h4,
body.dark-mode .info-panel li {
  color: var(--dark-text-muted);
}

body.dark-mode .assignment-title,
body.dark-mode .assignment-weight,
body.dark-mode .announcement-title,
body.dark-mode .announcement-text,
body.dark-mode .webinar-title {
  color: var(--dark-text);
}

body.dark-mode .assignment-time,
body.dark-mode .announcement-time,
body.dark-mode .webinar-time {
  color: var(--dark-text-muted);
}

body.dark-mode .webinar-details,
body.dark-mode .webinar-participants {
  color: var(--dark-text-muted);
}

body.dark-mode .category-pill.add-category {
  background-color: var(--dark-bg);
  border-color: var(--dark-border);
}

body.dark-mode .category-pill.add-category:hover {
  border-color: var(--card-light);
}

body.dark-mode .modal {
  background-color: var(--dark-card-bg);
  color: var(--dark-text);
}

body.dark-mode .footer {
  border-top: 1px solid transparent;
}

body.dark-mode .footer-link {
  color: var(--dark-text-muted);
}

body.dark-mode .footer-link:hover {
  color: var(--card-light);
}

body.dark-mode .footer-copyright {
  color: var(--dark-text-muted);
}

/* Panel Styles for Mail, Notifications and Events */
.panel-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0s 0.3s, backdrop-filter 0.3s;
}

.panel-backdrop.active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s, backdrop-filter 0.3s;
}

.side-panel {
  position: fixed;
  top: 20px;
  right: -400px;
  width: 350px;
  max-height: calc(100vh - 40px);
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  z-index: 1001;
  transition: right 0.3s ease, transform 0.3s ease;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  transform: translateY(10px);
  opacity: 0;
}

.side-panel.active {
  right: 20px;
  transform: translateY(0);
  opacity: 1;
}

body.dark-mode .side-panel {
  background-color: rgba(38, 38, 58, 0.85);
  color: var(--dark-text);
  backdrop-filter: blur(10px);
  border: 1px solid var(--dark-border);
}

.panel-header {
  padding: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(5px);
  position: sticky;
  top: 0;
  background-color: rgba(255, 255, 255, 0.9);
  z-index: 2;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

body.dark-mode .panel-header {
  border-bottom: 1px solid var(--dark-border);
  background-color: rgba(38, 38, 58, 0.9);
}

.panel-title {
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel-title i {
  color: var(--primary-color);
}

.panel-close {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  background-color: rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.panel-close:hover {
  background-color: var(--primary-light);
}

body.dark-mode .panel-close {
  background-color: var(--dark-hover);
}

body.dark-mode .panel-close:hover {
  background-color: var(--dark-border);
}

.panel-content {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

.panel-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 200px;
  color: var(--text-light);
  text-align: center;
  padding: 20px;
}

.panel-empty i {
  font-size: 50px;
  margin-bottom: 15px;
  color: var(--text-light);
  opacity: 0.5;
}

body.dark-mode .panel-empty i,
body.dark-mode .panel-empty {
  color: var(--dark-text-muted);
}

.panel-item {
  padding: 15px;
  border-radius: var(--radius-sm);
  background-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(5px);
  margin-bottom: 15px;
  box-shadow: var(--shadow-light);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  display: flex;
  align-items: flex-start;
  cursor: pointer;
}

.panel-item:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-medium);
  background-color: rgba(255, 255, 255, 0.9);
}

body.dark-mode .panel-item {
  background-color: rgba(51, 51, 68, 0.7);
  border-color: var(--dark-border);
}

body.dark-mode .panel-item:hover {
  background-color: rgba(51, 51, 68, 0.9);
}

.panel-tabs {
  display: flex;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 65px;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
  z-index: 1;
}

body.dark-mode .panel-tabs {
  border-bottom: 1px solid var(--dark-border);
  background-color: rgba(38, 38, 58, 0.9);
}

.panel-action {
  text-align: center;
  padding: 15px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
  position: sticky;
  bottom: 0;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

body.dark-mode .panel-action {
  border-top: 1px solid var(--dark-border);
  background-color: rgba(38, 38, 58, 0.9);
}

.panel-action-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 3px 10px rgba(255, 140, 0, 0.2);
}

.panel-action-btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 140, 0, 0.3);
}

.panel-item-unread {
  background-color: rgba(255, 220, 184, 0.5);
  border-left: 3px solid var(--primary-color);
}

body.dark-mode .panel-item-unread {
  background-color: rgba(255, 140, 0, 0.15);
  border-left: 3px solid var(--primary-color);
}

/* Mobile optimizations for the panels */
@media screen and (max-width: 768px) {
  .side-panel {
    width: calc(100% - 40px);
    right: -100%;
    top: 10px;
    max-height: calc(100vh - 20px);
  }
  
  .side-panel.active {
    right: 20px;
  }
  
  .message-preview {
    max-width: 100%;
  }
}

@media screen and (max-width: 480px) {
  .side-panel {
    width: calc(100% - 20px);
    right: -100%;
    top: 10px;
    max-height: calc(100vh - 20px);
    border-radius: var(--radius-sm);
  }
  
  .side-panel.active {
    right: 10px;
  }
  
  .panel-header, 
  .panel-action {
    border-radius: var(--radius-sm);
  }
}

.panel-item-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background-color: var(--primary-light);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 15px;
  flex-shrink: 0;
  backdrop-filter: blur(5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.panel-item-icon i {
  color: var(--primary-color);
}

body.dark-mode .panel-item-icon {
  background-color: var(--dark-border);
}

.panel-item-content {
  flex: 1;
}

.panel-item-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 5px;
}

.panel-item-message {
  font-size: 12px;
  color: var(--text-medium);
  line-height: 1.4;
}

.panel-item-time {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 5px;
}

body.dark-mode .panel-item-title {
  color: var(--dark-text);
}

body.dark-mode .panel-item-message {
  color: var(--dark-text-muted);
}

body.dark-mode .panel-item-time {
  color: var(--dark-text-muted);
}

.panel-tab {
  flex: 1;
  text-align: center;
  padding: 12px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  font-size: 14px;
  color: var(--text-medium);
}

.panel-tab.active {
  color: var(--primary-color);
}

.panel-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 3px 3px 0 0;
}

.panel-indicator {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  background-color: var(--primary-color);
  border-radius: var(--radius-full);
}

body.dark-mode .panel-tab {
  color: var(--dark-text-muted);
}

body.dark-mode .panel-tab.active {
  color: var(--primary-color);
}

.message-preview {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 230px;
}

/* Badge for panel items */
.panel-item-badge {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
  margin-left: 5px;
}

/* Calendar event item specific */
.panel-event-date {
  text-align: center;
  min-width: 40px;
  margin-right: 15px;
}

.panel-event-day {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-color);
}

.panel-event-month {
  font-size: 12px;
  color: var(--text-medium);
}

body.dark-mode .panel-event-month {
  color: var(--dark-text-muted);
}

.panel-event-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--primary-color);
  display: inline-block;
  margin-right: 5px;
}

.panel-event-category {
  display: inline-block;
  background-color: rgba(255, 140, 0, 0.1);
  color: var(--primary-color);
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
  margin-top: 5px;
}

.unread-dot {
  position: absolute;
  top: 0;
  right: 0;
  width: 8px;
  height: 8px;
  background-color: var(--primary-color);
  border-radius: 50%;
}