:root {
  --bg-main: #f5f6fa;
  --sidebar-bg: #110e1a;
  --sidebar-active: rgba(124, 58, 237, 0.15);
  --sidebar-active-text: #a78bfa;
  --text-main: #1f2937;
  --text-muted: #6b7280;
  --accent-purple: #7c3aed;
  --accent-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --card-bg: #ffffff;
  --border-color: #e5e7eb;
}

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

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  overflow-x: hidden;
  height: 100vh;
}

.dashboard-wrapper {
  display: flex;
  height: 100vh;
  width: 100vw;
}

/* --- Sidebar Styling --- */
.sidebar {
  width: 280px;
  background: var(--sidebar-bg);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  padding: 24px;
  flex-shrink: 0;
  justify-content: space-between;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
}

.brand-logo {
  width: 38px;
  height: 38px;
  background: var(--accent-gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.brand-logo svg {
  width: 22px;
  height: 22px;
}

.brand-name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.brand-light {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex-grow: 1;
  overflow-y: auto;
  padding-right: 4px;
}

/* Custom Scrollbar for Sidebar */
.nav-menu::-webkit-scrollbar {
  width: 4px;
}
.nav-menu::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.nav-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-section-title {
  font-size: 10px;
  font-weight: 800;
  color: #4b5563;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 6px;
  padding-left: 12px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #9ca3af;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  padding: 12px 16px;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.03);
}

.nav-link.active {
  background: var(--sidebar-active);
  color: var(--sidebar-active-text);
  box-shadow: inset 0 0 10px rgba(124, 58, 237, 0.05);
}

.nav-icon {
  font-size: 16px;
}

/* User Widget on Sidebar Bottom */
.user-profile-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: auto;
}

.user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  color: #ffffff;
}

.user-details {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.user-name {
  font-size: 13.5px;
  font-weight: 700;
}

.user-email {
  font-size: 11px;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* --- Main Content Layout --- */
.main-content {
  flex-grow: 1;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow-y: auto;
  height: 100vh;
}

/* Top welcome bar */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--card-bg);
  padding: 16px 24px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.topbar h2 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
}

.topbar .subtext {
  font-size: 12px;
  color: var(--text-muted);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-whatsapp {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-whatsapp:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  transform: translateY(-1px);
}

.user-avatar-circle {
  width: 36px;
  height: 36px;
  background: var(--accent-purple);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}


/* --- Hero Banner Card --- */
.hero-banner {
  background: var(--accent-gradient);
  border-radius: 20px;
  padding: 35px;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  box-shadow: 0 10px 25px -5px rgba(79, 70, 229, 0.25);
  position: relative;
  overflow: hidden;
}

.hero-banner::after {
  content: '';
  position: absolute;
  right: -5%;
  bottom: -20%;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 50%;
  pointer-events: none;
}

.hero-text-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 70%;
}

.hero-text-content h1 {
  font-size: 26px;
  font-weight: 800;
}

.hero-text-content p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  margin-bottom: 15px;
}

/* Translucent action buttons */
.hero-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.hero-action-item {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 12px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hero-action-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.action-icon {
  font-size: 18px;
}

.action-title {
  font-size: 12px;
  font-weight: 800;
}

.action-desc {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
}

/* Clock Widget on Hero */
.clock-widget {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.clock-icon {
  font-size: 20px;
}

.clock-content {
  display: flex;
  flex-direction: column;
}

.clock-date {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
}

.clock-time {
  font-size: 18px;
  font-weight: 800;
}


/* --- Status Cards Row --- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.stat-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stat-icon-wrapper {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.purple-bg {
  background: rgba(124, 58, 237, 0.1);
  color: var(--accent-purple);
}

.blue-bg {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.orange-bg {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.stat-header h3 {
  font-size: 14.5px;
  font-weight: 800;
}

.stat-body {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.5;
}

.accent-link {
  color: var(--accent-purple);
  text-decoration: none;
  font-weight: 700;
}

.accent-link:hover {
  text-decoration: underline;
}

.stat-number {
  font-size: 38px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
  margin-bottom: 6px;
}

/* Notices List */
.notice-item {
  margin-bottom: 12px;
}

.notice-item:last-child {
  margin-bottom: 0;
}

.notice-title {
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.notice-msg {
  font-size: 11.5px;
  color: var(--text-muted);
}


/* --- Active Resources Section --- */
.resources-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.resource-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
  transition: all 0.2s ease;
}

.resource-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px -2px rgba(0,0,0,0.05);
  border-color: #d1d5db;
}

.resource-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.resource-logo {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--accent-gradient);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
}

.resource-info {
  display: flex;
  flex-direction: column;
}

.resource-name {
  font-size: 14px;
  font-weight: 800;
}

.resource-status {
  font-size: 10px;
  font-weight: 700;
  color: #10b981;
}

.resource-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  height: 38px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.btn-resource-access {
  width: 100%;
  padding: 10px;
  background: #1f2937;
  border: none;
  color: #ffffff;
  font-weight: 700;
  font-size: 12.5px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  text-decoration: none;
}

.btn-resource-access:hover {
  background: var(--accent-purple);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2);
}
