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


:root {
  --primary: #0891b2;
  --primary-dark: #0e7490;
  --primary-light: #cffafe;
  --secondary: #06b6d4;
  --secondary-light: #e0f2fe;
  --accent: #14b8a6;
  --success: #10b981;
  --success-light: #d1fae5;
  --warning: #f59e0b;
  --warning-light: #fef3c7;
  --danger: #ef4444;
  --danger-light: #fee2e2;
  --background: #ffffff;
  --surface: #f8fafc;
  --surface-hover: #f1f5f9;
  --text: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #94a3b8;
  --border: #e2e8f0;
  --shadow: rgba(0, 0, 0, 0.08);
  --shadow-lg: rgba(0, 0, 0, 0.12);
  --radius: 12px;
  --radius-lg: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  
  --gradient-primary: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
  --gradient-secondary: linear-gradient(135deg, #14b8a6 0%, #10b981 100%);
  --gradient-accent: linear-gradient(135deg, #0c4a6e 0%, #0891b2 100%);
}

[data-theme="dark"] {
  --primary: #06b6d4;
  --primary-dark: #0891b2;
  --primary-light: #164e63;
  --secondary: #14b8a6;
  --secondary-light: #134e4a;
  --accent: #10b981;
  --success: #10b981;
  --success-light: #064e3b;
  --warning: #f59e0b;
  --warning-light: #78350f;
  --danger: #ef4444;
  --danger-light: #7f1d1d;
  --background: #0f172a;
  --surface: #1e293b;
  --surface-hover: #334155;
  --text: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-tertiary: #94a3b8;
  --border: #334155;
  --shadow: rgba(0, 0, 0, 0.3);
  --shadow-lg: rgba(0, 0, 0, 0.5);

  --gradient-primary: linear-gradient(135deg, #06b6d4 0%, #14b8a6 100%);
  --gradient-secondary: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --gradient-accent: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
}


body {
  font-family: "Inter", sans-serif;
  background: var(--background);
  color: var(--text);
  display: flex;
  min-height: 100vh;
  transition: var(--transition);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
}


.nav-badge {
  margin-left: auto;
  background: var(--danger);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
  display: none;
}

.nav-badge.active {
  display: block;
}


.stat-card {
  background: var(--surface);
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--shadow-lg);
}

.stat-card:hover::before {
  opacity: 1;
}


.btn {
  padding: 12px 24px;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-size: 15px;
  font-family: "Inter", sans-serif;
  box-shadow: 0 2px 8px rgba(8, 145, 178, 0.2);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(8, 145, 178, 0.3);
}

.btn:active {
  transform: translateY(0);
}

.btn-success {
  background: var(--gradient-secondary);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.btn-success:hover {
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Added styles for new Messages panel */
.messages-container {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
  height: calc(100vh - 200px);
}

.conversations-list {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.conversation-item {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  gap: 12px;
  align-items: start;
}

.conversation-item:hover {
  background: var(--surface-hover);
}

.conversation-item.active {
  background: var(--primary-light);
  border-left: 3px solid var(--primary);
}

.conversation-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 18px;
  flex-shrink: 0;
}

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

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

.conversation-name {
  font-weight: 600;
  color: var(--text);
  font-size: 15px;
}

.conversation-time {
  font-size: 12px;
  color: var(--text-tertiary);
}

.conversation-preview {
  font-size: 14px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conversation-item.unread .conversation-preview {
  font-weight: 600;
  color: var(--text);
}

.conversation-item.unread::after {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  margin-left: 8px;
}

.chat-container {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.chat-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-header-info h3 {
  font-size: 18px;
  margin-bottom: 2px;
}

.chat-header-meta {
  font-size: 13px;
  color: var(--text-secondary);
}

.chat-messages {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.message {
  display: flex;
  gap: 12px;
  max-width: 70%;
}

.message.sent {
  margin-left: auto;
  flex-direction: row-reverse;
}

.message-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
}

.message-content {
  flex: 1;
}

.message-bubble {
  background: var(--background);
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  margin-bottom: 4px;
  line-height: 1.5;
}

.message.sent .message-bubble {
  background: var(--gradient-primary);
  color: white;
  border: none;
}

.message-time {
  font-size: 12px;
  color: var(--text-tertiary);
  padding: 0 4px;
}

.chat-input-container {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 12px;
  align-items: center;
}

.chat-input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--background);
  color: var(--text);
  font-size: 15px;
  font-family: "Inter", sans-serif;
  resize: none;
  max-height: 120px;
}

.chat-input:focus {
  outline: none;
  border-color: var(--primary);
}

/* Added styles for Documents panel */
.documents-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.documents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.document-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: var(--transition);
  cursor: pointer;
}

.document-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--shadow-lg);
}

.document-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  margin-bottom: 12px;
}

.document-name {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  font-size: 15px;
}

.document-meta {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.document-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.document-tag {
  padding: 4px 8px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
}

/* Added styles for Calendar panel */
.calendar-container {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
}

.calendar-main {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 24px;
}

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

.calendar-title {
  font-size: 20px;
  font-weight: 600;
}

.calendar-nav {
  display: flex;
  gap: 8px;
}

.calendar-nav button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  background: var(--background);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.calendar-nav button:hover {
  background: var(--surface-hover);
}

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

.calendar-day-header {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 8px;
}

.calendar-day {
  aspect-ratio: 1;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 14px;
  position: relative;
}

.calendar-day:hover {
  background: var(--surface-hover);
}

.calendar-day.today {
  background: var(--gradient-primary);
  color: white;
  font-weight: 600;
}

.calendar-day.has-event::after {
  content: "";
  position: absolute;
  bottom: 4px;
  width: 4px;
  height: 4px;
  background: var(--primary);
  border-radius: 50%;
}

.calendar-day.today.has-event::after {
  background: white;
}

.upcoming-meetings {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 20px;
}

.upcoming-meetings h3 {
  font-size: 18px;
  margin-bottom: 16px;
}

.meeting-item {
  padding: 16px;
  background: var(--background);
  border-radius: var(--radius);
  margin-bottom: 12px;
  border-left: 3px solid var(--primary);
}

.meeting-time {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.meeting-title {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.meeting-participants {
  font-size: 13px;
  color: var(--text-secondary);
}

/* Added styles for Team panel */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.team-member-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  transition: var(--transition);
}

.team-member-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--shadow-lg);
}

.team-member-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 32px;
  margin: 0 auto 16px;
}

.team-member-name {
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 4px;
}

.team-member-role {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 12px;
}

.team-member-email {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}

.team-member-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
}

/* Added responsive styles for new panels */
@media (max-width: 1024px) {
  .messages-container {
    grid-template-columns: 1fr;
  }

  .conversations-list {
    display: none;
  }

  .calendar-container {
    grid-template-columns: 1fr;
  }

  .upcoming-meetings {
    margin-top: 20px;
  }
}

/* Sidebar */
.sidebar {
  width: 260px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 100;
  transition: var(--transition);
}

.sidebar.collapsed {
  width: 80px;
}

.sidebar-header {
  padding: 24px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: "Space Grotesk", sans-serif;
  font-size: 24px;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sidebar.collapsed .logo {
  font-size: 20px;
}

.sidebar-toggle {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: var(--transition);
}

.sidebar-toggle:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.sidebar-nav {
  flex: 1;
  padding: 20px 12px;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius);
  margin-bottom: 4px;
  transition: var(--transition);
  font-weight: 500;
  position: relative;
}

.nav-item:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.nav-item.active {
  background: var(--primary-light);
  color: var(--primary);
}

.sidebar.collapsed .nav-item span:not(.nav-badge) {
  display: none;
}

.sidebar-footer {
  padding: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.theme-toggle {
  width: 100%;
  padding: 12px;
  background: var(--surface-hover);
  border: none;
  border-radius: var(--radius);
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  background: var(--border);
}

.btn-secondary {
  width: 100%;
  padding: 12px;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  text-align: center;
  font-weight: 500;
  transition: var(--transition);
  display: block;
}

.btn-secondary:hover {
  background: var(--surface-hover);
}

/* Main Content */
.main-content {
  flex: 1;
  margin-left: 260px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.sidebar.collapsed ~ .main-content {
  margin-left: 80px;
}

.top-bar {
  background: var(--background);
  border-bottom: 1px solid var(--border);
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}

.breadcrumb {
  font-family: "Space Grotesk", sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
}

.top-bar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.icon-btn:hover {
  background: var(--surface-hover);
}

.badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--danger);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

.content-container {
  flex: 1;
  padding: 32px;
  overflow-y: auto;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

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

.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

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

.stat-value {
  font-family: "Space Grotesk", sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
}

/* Chart Container */
.chart-container {
  background: var(--surface);
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin-bottom: 32px;
}

.chart-container h2 {
  margin-bottom: 20px;
  font-size: 20px;
}

/* Request Cards */
.request-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
  transition: var(--transition);
}

.request-card:hover {
  box-shadow: 0 4px 12px var(--shadow);
}

.request-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 16px;
}

.researcher-info h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.researcher-meta {
  font-size: 14px;
  color: var(--text-secondary);
}

.request-badge {
  padding: 6px 12px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.request-message {
  background: var(--background);
  padding: 16px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}

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

.btn-danger {
  background: var(--danger);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--surface-hover);
  transform: none;
}

/* Researcher Cards */
.researcher-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.researcher-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: var(--transition);
}

.researcher-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px var(--shadow);
}

.researcher-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.researcher-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.tag {
  padding: 4px 10px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
}

/* Opportunity Cards */
.opportunity-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
}

.opportunity-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.opportunity-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}

.opportunity-meta {
  font-size: 13px;
  color: var(--text-tertiary);
}

/* Activity Feed */
.activity-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.activity-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: start;
}

.activity-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.activity-content {
  flex: 1;
}

.activity-text {
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.5;
}

.activity-time {
  font-size: 13px;
  color: var(--text-tertiary);
}

/* Modals */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--background);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px var(--shadow-lg);
}

.modal-large {
  max-width: 700px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  background: var(--surface);
  border: none;
  border-radius: 50%;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--surface-hover);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-size: 15px;
  font-family: "Inter", sans-serif;
}

.form-group textarea {
  resize: vertical;
}

/* Notification Panel */
.notification-panel {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100vh;
  background: var(--background);
  border-left: 1px solid var(--border);
  box-shadow: -4px 0 20px var(--shadow);
  z-index: 1001;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.notification-panel.active {
  right: 0;
}

.notification-header {
  padding: 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notification-header h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 20px;
  color: var(--text);
}

.btn-text {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 500;
  cursor: pointer;
  font-size: 14px;
}

.notification-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.notification-item {
  padding: 16px;
  background: var(--surface);
  border-radius: var(--radius);
  margin-bottom: 12px;
  cursor: pointer;
  transition: var(--transition);
}

.notification-item:hover {
  background: var(--surface-hover);
}

.notification-item.unread {
  border-left: 3px solid var(--primary);
}

.notification-title {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

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

.notification-time {
  font-size: 12px;
  color: var(--text-tertiary);
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: 0 8px 20px var(--shadow);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 300px;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

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

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

.toast.info {
  border-left: 4px solid var(--primary);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-icon {
  font-size: 64px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 20px;
  color: var(--text);
  margin-bottom: 8px;
}

.empty-text {
  color: var(--text-secondary);
  font-size: 15px;
}

/* Responsive */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.mobile-open {
    transform: translateX(0);
  }

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

  .content-container {
    padding: 20px;
  }

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

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

  .notification-panel {
    width: 100%;
    right: -100%;
  }

  .feedback-fab {
    bottom: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
  }

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

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

/* Feedback FAB */
.feedback-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 50%;
  box-shadow: 0 4px 12px var(--shadow-lg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 999;
}

.feedback-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px var(--shadow-lg);
}

.feedback-fab:active {
  transform: scale(0.95);
}

/* === Enlarged Feedback Modal (Organisation Portal) === */
.large-feedback {
  max-width: 720px !important;       /* make it wider */
  padding: 48px 56px !important;     /* more breathing space */
  line-height: 1.6;
  font-size: 1rem;
}

.large-feedback h2 {
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.large-feedback p {
  font-size: 1rem;
  margin-bottom: 18px;
}

.large-feedback textarea {
  font-size: 15px;
  line-height: 1.5;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--border-color, #ccc);
}