/* --- Global and Body Styles --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  background: #101622;
  color: #fff;
}

/* --- Dashboard/Announcements Panel Styles --- */
.nepp-root {
  display: flex;
  min-height: 100vh;
  background: #101622;
}
.sidebar {
  width: 320px;
  background: #101b28;
  color: #FFD600;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: 'Inter', Arial, sans-serif;
  padding: 0;
  position: relative;
  transition: width 0.3s ease, transform 0.3s ease;
}

/* Sidebar Toggle Button */
.sidebar-toggle {
  position: fixed;
  top: 20px;
  left: 305px;
  width: 30px;
  height: 30px;
  background: #FFD600;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1001;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.sidebar-toggle:hover {
  background: #ffed4a;
  transform: scale(1.1);
}

.sidebar-toggle-icon {
  width: 16px;
  height: 16px;
  color: #101b28;
}

/* Collapsed Sidebar Styles */
.sidebar.collapsed {
  width: 0;
  overflow: hidden;
  transform: translateX(-100%);
}

.sidebar.collapsed + * .sidebar-toggle,
.sidebar-toggle.collapsed-state {
  left: 15px;
  background: #FFD600;
}

/* Main Content Adjustments */
.main-content {
  flex: 1;
  padding: 40px 48px;
  min-height: 100vh;
  background: #101622;
  transition: margin-left 0.3s ease;
}

.main-content.sidebar-collapsed {
  margin-left: 0;
}

/* Mobile Responsive Toggle */
@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    transform: translateX(-100%);
  }
  
  .sidebar:not(.collapsed) {
    transform: translateX(0);
  }
  
  .sidebar.collapsed {
    transform: translateX(-100%);
  }
  
  .sidebar-toggle {
    position: fixed;
    top: 20px;
    left: 15px;
    z-index: 1001;
  }
  
  .sidebar.collapsed .sidebar-toggle {
    right: auto;
    left: 15px;
  }
  
  .main-content {
    margin-left: 0;
    padding: 40px 20px;
  }
  
  .main-content.sidebar-collapsed {
    margin-left: 0;
  }
}
.sidebar-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 10px 0 0 0;
  padding: 10px 0;
}

.sidebar-logo img {
  width: 150px;
  height: 150px;
  object-fit: contain;
}
.sidebar-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 10px;
  padding: 0 20px;
}
.sidebar-item {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1.40rem;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
  border-radius: 20px;
  padding: 14px 15px;
  transition: background 0.15s, color 0.15s;
  letter-spacing: 0.06em;
}
.sidebar-item .sidebar-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-right: 10px;
}
.sidebar-item .sidebar-icon svg {
  color: #FFD600; /* Makes the SVG gold colored */
  transition: color 0.2s ease;
}
.sidebar-item:hover .sidebar-icon svg {
  color: #FFD600;
}
.sidebar-item.active .sidebar-icon svg {
  color: #FFD600;
}
.sidebar-item.active, .sidebar-item:hover {
  background: #07111d;
  color: #FFD600;
}
.sidebar-user {
  margin-top: auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  color: #fff;
  padding: 32px 0 48px 32px;
  border-top: 1px solid #FFD60022;
}
.sidebar-user-name {
  font-weight: 700;
  font-size: 1.298em;
  display: block;
}
.sidebar-user-verified {
  font-size: 1.1em;
  color: #FFD600;
  opacity: 0.85;
}
.sidebar-user-badge {
  margin-left: 12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  border: 2px solid var(--gold);
}

.sidebar-user-badge img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

/* Notification Badge Styles */
.notification-icon-wrapper {
  position: relative;
  display: inline-block;
}

.notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ff4444;
  color: white;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 0.7rem;
  font-weight: 600;
  min-width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 2px solid #101b28;
}

.page-header {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 32px;
  color: #fff;
  background: linear-gradient(135deg, #FFD600 0%, #FFC107 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.panel h2 {
  color: #FFD600;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.panel.announcements {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
  min-height: 500px;
  background: linear-gradient(145deg, #1a2436 0%, #243447 100%);
}

.panel.forms-section {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  min-height: 220px;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  background: linear-gradient(145deg, #192641 0%, #243657 100%);
}

.panel.calendar {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
  min-height: 260px;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  background: linear-gradient(145deg, #16283c 0%, #1f3449 100%);
}

.empty-state {
  text-align: center;
  color: #9ca3af;
  font-style: italic;
  padding: 40px 20px;
  background: #1a2332;
  border-radius: 8px;
  border: 2px dashed #374151;
}

.empty-state a {
  color: #FFD600;
  text-decoration: none;
  font-weight: 500;
}

.empty-state a:hover {
  text-decoration: underline;
}

.empty-state.error {
  border-color: #ef4444;
  color: #fca5a5;
}
.author {
  display: flex; align-items: center; margin-top: 15px;
}
.author .avatar {
  width: 30px; height: 30px; border-radius: 50%; background: #333; margin-right: 10px;
}
.calendar-widget {
  width: 100%;
  background: #1a2332;
  border-radius: 12px;
  padding: 20px;
  color: #fff;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.calendar-header h2 {
  color: #FFD600;
  font-size: 1.2rem;
  margin: 0;
}

.calendar-nav-btn {
  background: #FFD600;
  border: none;
  color: #101622;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.2s;
}

.calendar-nav-btn:hover {
  background: #e6c100;
}

.calendar-days-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.calendar-days-header span {
  text-align: center;
  font-weight: 600;
  color: #FFD600;
  font-size: 0.9rem;
  padding: 8px 0;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.calendar-grid > div {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: all 0.2s;
  position: relative;
}

.calendar-grid > div:not(.other-month) {
  background: #243447;
  color: #fff;
}

.calendar-grid > div:not(.other-month):hover {
  background: #334a66;
}

.calendar-grid > div.today {
  background: #FFD600;
  color: #101622;
  font-weight: bold;
}

.calendar-grid > div.selected {
  background: #4a9eff;
  color: #fff;
}

.calendar-grid > div.has-events::after {
  content: '';
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 6px;
  height: 6px;
  background: #ff6b6b;
  border-radius: 50%;
}

.calendar-grid > div.other-month {
  color: #666;
  cursor: default;
}

/* --- Auth Forms (Login/Signup/Profile) --- */
.auth-container {
  max-width: 450px;
  margin: 80px auto;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
  background-color: white;
  color: #333;
}
.form-group {
  margin-bottom: 28px;
}
.form-group label {
  display: none;
}
.form-group input {
  width: 100%;
  padding: 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s ease;
  background-color: #fff;
}
.form-group input:focus {
  outline: none;
  border-color: #FFD700;
  box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.2);
}
.form-group input::placeholder {
  color: #aaa;
}
.auth-btn {
  display: block;
  width: 100%;
  padding: 16px;
  background-color: #FFD700;
  color: #0c1930;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  margin: 35px 0 15px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.auth-btn:hover {
  opacity: 0.95;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}
.auth-links {
  text-align: center;
  margin-top: 25px;
}
.auth-links p {
  color: #333;
}
.auth-links a {
  color: #FFD700;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
  font-size: 16px;
}
.auth-links a:hover {
  text-decoration: underline;
}
.auth-message {
  text-align: center;
  margin-top: 15px;
  color: #ff3860;
  display: none;
  padding: 10px;
  border-radius: 6px;
}
nav, .footer {
  display: none;
}
.user-selector {
  position: relative;
  margin-bottom: 1rem;
}

.user-search {
  width: 100%;
  padding: 8px;
  border: 1px solid #2a3854;
  border-radius: 4px;
  background: #1a2438;
  color: #fff;
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #1a2438;
  border: 1px solid #2a3854;
  border-radius: 4px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
}

.user-result {
  padding: 8px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.user-result:hover {
  background: #2a3854;
}

.selected-users {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.selected-user {
  background: #2a3854;
  padding: 4px 8px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.selected-user button {
  background: none;
  border: none;
  color: #ff3860;
  cursor: pointer;
  padding: 0;
  font-size: 1.2em;
}

