/* GLOBAL RESET */
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    background-color: #141218;
    overflow: hidden;
    font-family: 'Roboto', sans-serif;
  }
  
  /* LAYOUT WRAPPERS */
  .app-layout {
    display: flex;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    background-color: #141218;
  }
  
  .page-content {
    flex: 1;
    padding:  20px 10px 10px 10px; /* top, right, bottom, left */
    width: auto;
    min-width: 0;
    background-color: #141218;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
  }
  
  /* PAGE HEADERS */
  .page-header {
    font-weight: normal;
  }
  .page-header h1 {
    font-size: 16px;
    font-weight: normal;
    margin: 0;
    color: #d6cfcf;
  }
  .page-header .page-subtitle {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
  }
  
  /* STATS BOXES */
  .stats-overview {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .stats-overview > div {
    background-color: #1c1b22;
    border-radius: 8px;
    padding: 16px;
    height: 80px;
    min-width: 160px;
    flex: 1;
    box-shadow: 0 0 10px rgba(149, 44, 219, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
  }
  .stat-title {
    font-size: 12px;
    color: #ffffff;
    margin-bottom: 4px;
  }
  .stat-number {
    font-size: 18px;
    font-weight: bold;
    color: #ffffff;
  }
  
  /* BUTTONS */
  .primary-button {
    background-color: #952cdb;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 6px 12px;
    font-weight: bold;
    font-size: 12px;
    cursor: pointer;
    width: 120px;
    text-align: center;
    transition: background-color 0.2s;
  }
  .primary-button:hover {
    background-color: #7a1fbb;
  }
  
  /* FILTER SECTION */
  .filter-section {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    width: 100%;
  }
  .search-input, .filter-select {
    flex: 1;
    padding: 10px;
    border: 1px solid #952cdb;
    border-radius: 8px;
    background-color: #28273a;
    color: #ffffff;
    font-size: 14px;
    box-sizing: border-box;
    width: 100%;
  }
  
  /* TABLE STYLING */
  .table-wrapper {
    background-color: #1c1b22;
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
    flex-grow: 1;
    overflow-y: auto;
  }

  .table-wrapper .table {
    width: 100%;
  }
  .table {
    width: 100%;
    border-collapse: collapse;
  }
  .table th, .table td {
    padding: 12px;
    border-bottom: 1px solid #2c2a30;
    text-align: left;
  }
  .table th {
    background-color: #29282f;
    color: #d6cfcf;
    font-weight: bold;
    font-size: 14px;
  }
  .table td {
    color: #ffffff;
    font-size: 14px;
  }
  
  /* CLICKABLE ROWS */
  .clickable-row {
    cursor: pointer;
    transition: background-color 0.2s ease;
  }
  .clickable-row:hover {
    background-color: #33313a;
  }
  
  /* PAGINATION */
  .pagination {
    display: flex;
    justify-content: center;
    margin-top: 12px;
    gap: 8px;
  }
  .pagination-dot {
    width: 10px;
    height: 10px;
    background-color: #d6cfcf;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.2s;
  }
  .pagination-dot.active {
    background-color: #952cdb;
  }
  
  /* UTILITY STYLES */
  .modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-start;
    align-items: center;
  }
  .modal-actions button {
    flex-grow: 1;
    min-width: 100px;
    white-space: nowrap;
  }
  
  /* BACK BUTTON */
  .back-button {
    border-radius: 4px;
    background-color: #952cdb;
    color: #ffffff;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
  }
  .back-button:hover {
    background-color: #7a1fbb;
  }
  
  /* EVIDENCE BOX */
  .evidence-box {
    background-color: #29282f;
    padding: 12px;
    border-radius: 8px;
    color: #d6cfcf;
    font-size: 14px;
  }
  
  /* HEADERS & TITLES */
  .vulnerability-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2px;
    padding: 0 12px;
  }
  .vulnerability-title {
    font-size: 20px;
    font-weight: bold;
    color: #ffffff;
    text-align: center;
    flex: 1;
    margin: 0;
  }
  
  /* Inline % badge next to the big number */
.stat-number {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.delta-badge {
  font-size: 0.8rem;
  padding: 2px 6px;
  border-radius: 999px;
  line-height: 1;
  border: 1px solid transparent;
  user-select: none;
}

/* Red when positive (more assets = worse) */
.delta-badge.pos {
  color: #db2828;
  background: rgba(219, 40, 40, 0.12);
  border-color: rgba(219, 40, 40, 0.35);
}

/* Green when negative (fewer assets = better) */
.delta-badge.neg {
  color: #21ba45;
  background: rgba(33, 186, 69, 0.12);
  border-color: rgba(33, 186, 69, 0.35);
}

/* Neutral when 0% */
.delta-badge.zero {
  color: #9aa0a6;
  background: rgba(154, 160, 166, 0.12);
  border-color: rgba(154, 160, 166, 0.35);
}

/* No baseline (prev = 0) — show NEW */
.delta-badge.new {
  color: #b667f1;
  background: rgba(182, 103, 241, 0.12);
  border-color: rgba(182, 103, 241, 0.35);
}
/* LoginPage.css */

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

body.login-page {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background: linear-gradient(135deg, #1A1036, #2d1e55, #1A1036); /* Looping through both colors */
  background-size: 400% 400%;
  animation: gradientShift 20s ease infinite;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.left-side {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 20px;
  text-align: center;
  width: 40%;
}

.logo {
  width: 350px;
}

.subtitle {
  color: #ffffff;
  font-size: 23px;
  font-weight: 600;
  text-align: left;
  line-height: 1.4;
  margin-top: auto;
}

.subtitle span {
  font-size: 23px;
  font-weight: 600;
  color: #952cdb;
}

.right-side {
  background-color: #1A1036;
  border: 1px solid #952cdb;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(149, 44, 219, 0.4);
  text-align: left;
  position: relative;
  width: 400px;
}

.login-content {
  width: 100%;
}

h1 {
  color: white;
  margin-bottom: 10px;
}

.input-field {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #952cdb;
  border-radius: 5px;
  background-color: #2C1D52;
  color: white;
  font-size: 16px;
}

.input-field:focus {
  outline: none;
  border-color: #8A6CC1;
  box-shadow: 0 0 12px rgba(138, 108, 193, 0.6);
}

.login-button {
  width: 100%;
  padding: 12px;
  margin-top: 20px;
  background-color: #952cdb;
  border: none;
  color: white;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
}

.login-button:hover {
  background-color: #8b24cf;
}

.forgot-password {
  display: block;
  color: #ffffff;
  margin-top: 20px;
  text-decoration: none;
}

.forgot-password:hover {
  text-decoration: underline;
}

.error-message {
  color: #FF4C4C;
  font-size: 14px;
  margin-bottom: 10px;
}

.input-field::placeholder {
  color: #d1d1d1;
  font-style: italic;
}

.success-message {
  color: #ffffff;
  font-size: 14px;
  margin-top: 10px;
}

.forgotten-password-message {
  color: #ffffff;
  font-size: 16px;
  margin-bottom: 20px;
}
.tester-menu {
    background-color: #141218;
    color: #ffffff;
    width: 240px;
    height: 100vh;
    padding: 10px;
    display: flex;
    flex-direction: column;
    font-family: 'Roboto', Helvetica, sans-serif;
    box-sizing: border-box;
    overflow-y: auto;  /* Enable scroll if the menu is too tall */
}

/* Logo */
.menu-logo {
    text-align: center;
    margin-bottom: 12px;
    margin-left: -50px;
}

.logo-img {
    max-width: 160px;
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Menu Title */
.menu-title {
    font-size: 12px;
    font-weight: bold;
    color: #7c7a83;
    margin: 10px 0 2px 0;  /* Smaller spacing between titles */
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Menu Separator */
.menu-separator {
    background-color: #2c2a30;
}

.static-profile {
    padding: 6px 12px;
    font-size: 14px;
    color: #d6cfcf;
    text-decoration: none;
    display: flex;
    align-items: center;
    border-radius: 6px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* Menu Item */
.menu-item {
    padding: 6px 12px;
    font-size: 14px;
    color: #d6cfcf;
    text-decoration: none;
    display: flex;
    align-items: center;
    border-radius: 6px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* Active Menu Item */
.menu-item.active {
    background-color: #952cdb;
    color: #ffffff;
}

/* Hover Effect */
.menu-item:hover {
    background-color: #7526b8;
    color: #ffffff;
}

/* Spacer */
.flex-spacer {
    flex-grow: 1;
}

/* Bottom Section */
.menu-bottom-section {
    padding-top: 8px;
    border-top: 1px solid #2c2a30;
    display: flex;
    flex-direction: column;
}

.menu-bottom-section .menu-item {
    padding: 4px 12px;
}

/* Logout */
.menu-item.logout {
    color: red;
    font-weight: bold;
}

/* Entities Dropdown */
.dropdown-menu {
    padding: 6px 12px;
    font-size: 14px;
    color: #d6cfcf;
    text-decoration: none;
    display: flex;
    align-items: center;
    border-radius: 6px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-menu:hover {
    background-color: #7526b8;
    color: #ffffff;
}

.sub-menu {
    padding-left: 12px;
    margin-top: 5px;
    display: none;  /* Hide by default */
}

.sub-menu.open {
    display: block;  /* Show when open */
}

.dropdown-arrow {
    margin-left: auto;
    transition: transform 0.2s;
}

.dropdown-arrow.open {
    transform: rotate(180deg);
}

.client-menu {
    background-color: #141218;
    color: #ffffff;
    width: 240px;
    height: 100vh;
    padding: 16px;
    display: flex;
    flex-direction: column;
    font-family: 'Roboto', Helvetica, sans-serif;
    box-sizing: border-box;
    flex-shrink: 0;
}

/* Logo Section */
.menu-logo {
    text-align: center;
    margin-bottom: 16px;
    margin-left: -50px;
}

.logo-img {
    max-width: 160px;
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Section Titles */
.menu-title {
    font-size: 12px;
    font-weight: bold;
    color: #7c7a83;
    margin: 12px 0 4px 0;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Menu Separator */
.menu-separator {
    height: 1px;
    background-color: #2c2a30;
    margin: 8px 0;
}

/* Menu Items */
.menu-item {
    padding: 6px 12px;
    font-size: 14px;
    color: #d6cfcf;
    text-decoration: none;
    display: flex;
    align-items: center;
    border-radius: 6px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* Active Menu Item */
.menu-item.active {
    background-color: #952cdb;
    color: #ffffff;
}

/* Hover Effect */
.menu-item:hover {
    background-color: #7526b8;
    color: #ffffff;
}

/* Spacer */
.flex-spacer {
    flex-grow: 1;
}

/* Bottom Section */
.menu-bottom-section {
    padding-top: 8px;
    border-top: 1px solid #2c2a30;
    display: flex;
    flex-direction: column;
}

.menu-bottom-section .menu-item {
    padding: 4px 12px;
}

/* Logout Button */
.menu-item.logout {
    color: red;
    font-weight: bold;
}

.menu-item.static-profile {
    cursor: default; /* No pointer cursor */
    color: #fff;     /* Use your desired color */
    /* Remove hover effects if any */
  }.client-dashboard {
  color: #fff;
  font-family: 'Roboto', sans-serif;
  padding: 20px;
  flex: auto;
  overflow-y: auto;
  background-color: #141218;
}

/* Title + subtitle */
.page-header h1 {
  font-size: 16px;
  font-weight: normal;
  margin: 0;
  color: #d6cfcf;
}

.page-header .page-subtitle {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
}

/* base card */
.score-card {
  flex: 1;
  padding: 1rem;
  border-radius: 8px;
  color: white;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
  overflow: visible;
  cursor: help;
}
.score-card::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0; height: 50%;
  background: var(--card-bg);
  opacity: 0.5;
  pointer-events: none;
}

/* header */
.score-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.score-icon { flex-shrink: 0; }
.score-title {
  font-size: 1.2rem;
  font-weight: bold;
}

/* subtitle */
.score-subtitle {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* bar */
.score-bar {
  width: 100%;
  height: 8px;
  background: rgba(0,0,0,0.2);
  border-radius: 4px;
  overflow: hidden;
}
.score-fill {
  height: 100%;
  background: var(--fill-color);
  transition: width 0.3s;
}

/* variants */
.score-card.leaders {
  --card-bg: linear-gradient(to bottom, #2d2b35, transparent);
  --fill-color: #21ba45; /* green */
  background: #2d2b35;
}
.score-card.good {
  --card-bg: linear-gradient(to bottom, #8d5e14, transparent);
  --fill-color: #fbbd08; /* yellow */
  background: #8d5e14;
}
.score-card.improve {
  --card-bg: linear-gradient(to bottom, #a64b00, transparent);
  --fill-color: #f2711c; /* orange */
  background: #a64b00;
}
.score-card.poor {
  --card-bg: linear-gradient(to bottom, #581818, transparent);
  --fill-color: #db2828; /* red */
  background: #581818;
}

/* ───────────────────────────────
   🔼 TOP STAT BOXES
──────────────────────────────── */
.dashboard-info-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.stat-box {
  flex: 1;
  min-width: 150px;
  background-color: #1c1b22;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stat-title {
  font-size: 14px;
  color: #ffffff;
  margin-bottom: 4px;
}

.stat-number {
  font-size: 20px;
  font-weight: bold;
  color: #ffffff;
}

/* ───────────────────────────────
   📊 MIDDLE GRAPHS SECTION
──────────────────────────────── */
.dashboard-middle-row {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.donut-left,
.donut-right {
  flex: 1;
  background-color: #1c1b22;
  padding: 16px;
  border-radius: 8px;
}

.bar-center {
  flex: 2;
  background-color: #1c1b22;
  padding: 16px;
  border-radius: 8px;
}

.vulnerability-chart-box h2 {
  font-size: 18px;
  color: #fff;
  margin-bottom: 12px;
}

/* Remove bar labels */
.bar-chart-container .chartjs-size-monitor,
.bar-chart-container .chartjs-render-monitor text {
  display: none !important;
}

/* Chart tweaks (if needed) */
.bar-chart-container canvas {
  max-height: 220px;
}

/* ───────────────────────────────
   📅 BOTTOM ROW: Engagements & Calendar
──────────────────────────────── */
.dashboard-bottom-row {
  display: flex;
  gap: 16px;
}

.engagements-section {
  flex: 1;
  background-color: #1c1b22;
  padding: 16px;
  border-radius: 8px;
}

.engagements-section h2 {
  font-size: 18px;
  color: #fff;
  margin-bottom: 12px;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 12px;
  border-bottom: 1px solid #2c2a30;
  color: #fff;
  font-size: 14px;
  text-align: left;
}

.table th {
  background-color: #29282f;
  color: #d6cfcf;
  font-weight: bold;
}

.dashboard-schedule {
  flex: 1;
  background-color: #1c1b22;
  border-radius: 8px;
  padding: 16px;
}

/* Schedule Calendar */
.calendar-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.calendar-month-label {
  font-size: 14px;
  color: #ccc;
  font-style: italic;
}

.day-of-week-headings,
.calendar-week {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  margin-bottom: 4px;
}

.calendar-day-box {
  position: relative;
  height: 60px;
  background-color: #141218;
  border: 1px solid #29282f;
  border-radius: 4px;
}

.day-number {
  position: absolute;
  top: 4px;
  right: 6px;
  font-size: 0.75rem;
  color: #fff;
}

.assessment-block {
  position: absolute;
  bottom: 6px;
  left: 6px;
  right: 6px;
  background: linear-gradient(90deg, #952cdb, #7a1fbb);
  font-size: 0.7rem;
  text-align: center;
  padding: 2px 4px;
  border-radius: 4px;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ───────────────────────────────
   💻 Chart.js Theme - Custom Colors
──────────────────────────────── */
:root {
  --chart-critical: #ff4b4b;
  --chart-high: #ff8c00;
  --chart-medium: #ffc107;
  --chart-low: #999;
  --chart-primary: #952cdb;
}

/* ───────────────────────────────
   📱 Responsive
──────────────────────────────── */
@media (max-width: 768px) {
  .dashboard-top-row,
  .dashboard-middle-row,
  .dashboard-bottom-row {
    flex-direction: column;
  }
}

.assessment-label {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    color: #ffffff;
    text-align: center;
}

.assessment-label.scheduled {
    background-color: #2185d0; /* Blue */
}

.assessment-label.active {
    background-color: #21ba45; /* Green */
}

.assessment-label.completed {
    background-color: #a333c8; /* Purple */
}
/*************************************
 * MESSAGES TAB - ENHANCED STYLING
 *************************************/
 .messages-tab {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    background-color: #1a1a1a;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(149, 44, 219, 0.1);
    max-width: 100%;
    height: 90vh;
    max-height: 90vh;
    overflow: hidden;
  }
  
  .messages-section {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: #121212;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.05);
  }
  
  /*************************************
   * SCROLLABLE MESSAGES LIST
   *************************************/
  .messages-list {
    overflow-y: auto;
    flex-grow: 1;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: calc(90vh - 80px);
  }
  
  /* Custom Scrollbar */
  .messages-list::-webkit-scrollbar {
    width: 6px;
  }
  .messages-list::-webkit-scrollbar-thumb {
    background-color: #952cdb;
    border-radius: 6px;
  }
  .messages-list::-webkit-scrollbar-track {
    background: #1a1a1a;
  }
  
  /* in communication.css */
.message-content {
  white-space: pre-wrap;    /* preserve newlines & wrap long lines */
  word-wrap: break-word;     /* ensure long words still wrap */
}

  /*************************************
   * MESSAGE BUBBLES
   *************************************/
  .message-item {
    padding: 1rem;
    border-radius: 12px;
    max-width: 70%;
    word-wrap: break-word;
    position: relative;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #fff;
    background: linear-gradient(135deg, #222 0%, #111 100%);
    border: 1px solid #2d2d2d;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
  }
  
  .message-item.self {
    align-self: flex-end;
    background: linear-gradient(135deg, #952cdb 0%, #6610f2 100%);
    color: #fff;
    border: none;
  }
  
  .message-item.other {
    align-self: flex-start;
    background: #191919;
  }
  
  /*************************************
   * MESSAGE HEADER (Sender + Time)
   *************************************/
  .message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    flex-wrap: wrap;
    gap: 0.3rem;
  }
  
  .message-user {
    font-weight: 600;
    color: #fff;
    margin-right: 0.5rem;
  }
  
  .message-time {
    font-style: italic;
    font-size: 0.75rem;
    color: #aaa;
  }
  
  /*************************************
   * INPUT AREA
   *************************************/
  .message-input-container {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    border-top: 1px solid #2a2a2a;
    background-color: #1a1a1a;
    border-radius: 0 0 12px 12px;
  }
  
  .message-textarea {
    flex: 1;
    background-color: #0f0f0f;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 0.75rem;
    color: #fff;
    font-size: 0.9rem;
    resize: none;
    transition: border 0.2s ease;
  }
  
  .message-textarea:focus {
    outline: none;
    border: 1px solid #952cdb;
  }
  
  .send-button {
    background-color: #952cdb;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
  }
  
  .send-button:hover {
    background-color: #7a1fbb;
  }
  
  /* ─── System Alerts ─────────────────────────────── */
.message-item.system-alert {
  background: linear-gradient(135deg, #f83538 0%, #a8161b 100%);
  border: none;
  color: #fff;
  box-shadow: 0 0 10px rgba(255, 55, 55, 0.6);
  font-weight: 600;
  border-left: 6px solid #ffb3b3;
}

.mention-dropdown {
  position: absolute;
  bottom: 60px;
  left: 10px;
  background: rgb(0, 0, 0);
  border: 1px solid #7a1fbb;
  border-radius: 6px;
  width: 200px;
  max-height: 150px;
  overflow-y: auto;
  z-index: 10;
    /* remove bullet points and padding */
  list-style: none;
  padding: 0;
  margin: 0;
}
.mention-dropdown li {
  padding: 6px 10px;
  cursor: pointer;
}
.mention-dropdown li:hover {
  background: #1b1a1a;
}

/* Ensure the overall page content is scrollable if it exceeds available height */
.page-content.assessments-details {
  overflow-y: auto;
  padding-bottom: 10px; /* extra space to show bottom items */
}

/*************************************
 * TABS (Unchanged)
 *************************************/
 .tabs-container {
  border-bottom: 1px solid #444;
}

.tabs {
  list-style-type: none;
  display: flex;
  margin: 0;
  padding: 0;
}

.tabs li {
  margin-right: 2rem;
  padding: 0.5rem 0;
  cursor: pointer;
  color: #ffffff;
  position: relative;
  text-transform: capitalize;
}

.tabs li.active {
  color: #952cdb;
  font-weight: bold;
  border-bottom: 2px solid #952cdb;
}

/*************************************
 * SUMMARY TAB - REFINED APOLLOSEC STYLE
 *************************************/

/* Stats Row - spacing and subtle animation */
.summary-tab .stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.summary-tab .stat-box {
  background-color: #1f1e25;
  padding: 1rem;
  border-radius: 8px;
  text-align: left;
  flex: 1;
  min-width: 140px;
  transition: transform 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.summary-tab .stat-box:hover {
  transform: translateY(-2px);
  background-color: #29272f;
}

.summary-tab .stat-title {
  font-size: 0.85rem;
  color: #ccc;
  margin-bottom: 4px;
}

.summary-tab .stat-value {
  font-size: 1.4rem;
  font-weight: bold;
  color: #ffffff;
}

/* Project Overview & Methodology */
.summary-tab .project-details-box {
  background-color: #1f1e25;
  padding: 1.25rem;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.summary-tab .project-details-box h3 {
  font-size: 1rem;
  color: #ffffff;
  margin: 0 0 0.5rem;
}

.summary-tab .project-details-box p {
  font-size: 0.9rem;
  color: #ffffff;
  margin-bottom: 0.4rem;
}

.summary-tab .project-details-box p strong {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: #fff;
}

/* Lower Row: Timeline & Info side by side */
.summary-tab .project-lower-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

/* Shared box style */
.summary-tab .project-timeline-box,
.summary-tab .project-info-box {
  background-color: #1f1e25;
  padding: 1.25rem 1.5rem;
  border-radius: 8px;
  flex: 1;
  min-width: 240px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Box headers */
.summary-tab .project-timeline-box h3,
.summary-tab .project-info-box h3 {
  font-size: 1rem;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

/* Inline fields for both boxes */
.summary-tab .timeline-fields-row,
.summary-tab .fields-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 0.75rem;
}

/* Field layout and styling */
.summary-tab .field {
  flex: 1;
  min-width: 100px;
  padding-top: 6px;
}

.summary-tab .detail-title {
  font-size: 0.85rem;
  font-weight: bold;
  margin-bottom: 0.25rem;
  color: #ffffff;
}

.summary-tab .field p {
  font-size: 0.9rem;
  color: #ccc;
  margin: 0;
}

/* Status badge styling */
.summary-tab .status-badge {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  color: white;
  font-size: 0.8rem;
  font-weight: bold;
  border-radius: 999px;
  margin-top: 4px;
}


/*************************************
 * FINDINGS TAB CARD STYLES
 *************************************/
 .findings-tab h2 {
  margin-bottom: 1rem;
}

/* Container for all finding cards */
.findings-tab .finding-cards-container {
  display: flex;
  flex-direction: column;
  gap: 1rem; /* spacing between cards */
}

.findings-tab .finding-card {
  background-color: #1f1e25;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  color: #fff;
  font-family: 'Roboto', sans-serif;
  box-shadow: 0 2px 4px rgba(0,0,0,0.25);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.findings-tab .finding-card:hover {
  background-color: #1d1b23;
  transform: scale(1.01);
}

/* Header: name left, labels right */
.findings-tab .finding-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.findings-tab .finding-name {
  margin: 0;
  font-size: 1rem;
  font-weight: bold;
  color: #ffffff;
}

/* Labels area */
.findings-tab .finding-labels {
  display: flex;
  gap: 0.4rem;
}

.findings-tab .label {
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  font-size: 0.75rem;
  font-weight: bold;
  text-transform: capitalize;
  color: #fff;
}

/* Label color overrides */
.findings-tab .label.critical,
.findings-tab .label.high {
  background-color: #e67e22; /* orange */
}

.findings-tab .label.open {
  background-color: #e74c3c; /* red */
}

.findings-tab .label.due {
  background-color: #2ecc71; /* green */
}

.findings-tab .label.overdue {
  background-color: #c0392b; /* deep red */
}

/* Overview text */
.findings-tab .brief-overview {
  margin: 0 0 10px 0;
  font-size: 0.9rem;
  color: #dcdcdc;
}

/* Affected URLs */
.findings-tab .affected-urls {
  font-size: 0.9rem;
  margin-top: 0.5px;
  margin-bottom: 0.5px;
  color: #ffffff;
}

.findings-tab .affected-urls ul {
  list-style: disc;
  margin: 0.25rem 0 0 1rem;
  padding: 0;
  color: #cccccc;
}

/* Footer details */
.findings-tab .finding-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #bbb;
  margin-top: 0.5rem;
}

/*************************************
 * FINDING DETAILS TAB - FINAL APOLLOSEC LAYOUT
 *************************************/
 .finding-detail-view {
  font-size: 0.85rem;
  line-height: 1.4;
  color: #ffffff;
  font-family: 'Roboto', sans-serif;
}

/* Top row cleanup (remove colored box) */
.finding-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap; /* allow wrap on smaller screens */
}

.finding-title {
  font-size: 1.1rem;
  font-weight: bold;
  margin: 0 auto;
  text-align: center;
  flex-grow: 1;
}

/* Left back button */
.header-left {
  flex-shrink: 0;
}

.header-right-grid {
  display: flex;
  gap: 2rem;
  min-width: 320px; /* enough width for 2 columns */
  justify-content: flex-end;
}

.left-column,
.right-column {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #ccc;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
  min-width: 140px;
}

/* Center title takes flex-grow */
.header-center {
  flex-grow: 1;
  text-align: center;
  font-weight: bold;
  font-size: 1.1rem;
}

/* Status update section */
.status-update-box {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #ccc;
  font-size: 0.9rem;
}

.status-update-box label {
  font-weight: 600;
}

/* Style select and button */
.status-update-box select {
  background-color: #1c1b22;
  color: #fff;
  border: 1px solid #444;
  border-radius: 6px;
  padding: 3px 6px;
  font-size: 0.9rem;
  cursor: pointer;
}

.status-update-box button {
  background-color: #952cdb;
  border: none;
  border-radius: 6px;
  padding: 4px 12px;
  color: #fff;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background-color 0.2s ease;
}

.status-update-box button:hover {
  background-color: #7a1fbb;
}

/* Grid layout */
.finding-detail-grid {
  display: grid;
  gap: 1rem;
  grid-template-areas:
    "overview overview"
    "notes notes"
    "remediation evidence"
    "urls evidence"
    "category evidence";
  grid-template-columns: 1fr 1fr;
}

/* Box styles */
.detail-box {
  background-color: #1f1e25;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.25);
  transition: background-color 0.3s ease;
}

.detail-box:hover {
  background-color: #1d1b23;
}

.detail-box h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: #ffffff;
}

.detail-box p,
.detail-box ul {
  font-size: 0.85rem;
  color: #ccc;
  margin: 0.4rem 0;
}

.detail-box ul {
  padding-left: 1.25rem;
  list-style: disc;
}

/* Grid area assignment */
.overview-box { grid-area: overview; }
.notes-box { grid-area: notes; }
.remediation-box { grid-area: remediation; }
.urls-box { grid-area: urls; }
.category-box { grid-area: category; }
.evidence-box {
  grid-area: evidence;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}


/*************************************
 * SCOPE TAB - MATCHED APOLLOSEC THEME
 *************************************/
.scope-tab {
  color: #fff;
}

/* Assessment Scope main box */
.scope-box {
  background-color: #1f1e25;
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  transition: background-color 0.3s ease;
}

.scope-box h2 {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 0.75rem;
  color: #ffffff;
  border-bottom: 1px solid #333;
  padding-bottom: 0.3rem;
}

/* Container for scope groups like Web App, External etc. */
.scope-targets {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Each scope section "card" */
.scope-section {
  background-color: #141218;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
  min-width: 220px;
  flex: 1;
  transition: background 0.3s ease;
}

.scope-section:hover {
  background-color: #1d1b23;
}

/* Category title (like 'web app') */
.scope-section h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #cccccc;
  text-transform: capitalize;
}

/* Target list inside each scope section */
.scope-section ul {
  list-style: none;
  padding-left: 1rem;
  margin: 0;
}

.scope-section ul li {
  font-size: 0.9rem;
  color: #f2f2f2;
  margin-bottom: 0.3rem;
  position: relative;
}

.scope-section ul li::before {
  content: "•";
  position: absolute;
  left: -0.8rem;
  color: #952cdb;
  font-size: 1rem;
  line-height: 1;
}

/* Shrink and tighten up methodology bullet lists */
.methodology-block ul,
.approach-section ul {
  font-size: 0.85rem;        /* match your normal paragraph text */
  line-height: 1.3;          /* keeps bullets from getting too tall */
  margin-top: 0.25rem;       /* a little breathing room above the list */
  margin-left: 1rem;         /* indent to align with other content */
  padding-left: 0;           /* remove default extra padding */
  list-style-position: inside; /* bullets hang with text, not out in the gutter */
}

.methodology-block li,
.approach-section li {
  margin-bottom: 0.25rem;    /* small gap between items */
}

/* make any <a class="action-button"> look like a blue button */
.action-button {
  display: inline-block;
  background-color: #007BFF;    /* nice Bootstrap-y blue */
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 150ms ease;
  margin-right: 0.5rem;
}

.action-button:hover {
  background-color: #0056b3;    /* darker on hover */
}

/* 
   If you want each scope-section to appear more "card-like," 
   you could add a subtle border or box-shadow:
*/

/* Main Testing Approach container */
.approach-box {
  background-color: #1f1e25;
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  transition: background-color 0.3s ease;
}

.approach-box:hover {
  background-color: #1d1b23;
}

/* Heading */
.approach-box h2 {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 0.75rem;
  color: #ffffff;
  border-bottom: 1px solid #333;
  padding-bottom: 0.3rem;
}

/* Each subsection (Recon, Exploitation, etc.) */
.approach-section {
  margin-bottom: 0.75rem;
  padding-left: 0.5rem;
  border-left: 4px solid #952cdb;
}

.approach-section h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0.5rem 0 0.25rem;
  color: #cccccc;
}

.approach-section p {
  font-size: 0.85rem;
  margin: 0;
  color: #f2f2f2;
  line-height: 1.4;
}

/* src/styles/EvidenceGallery.css */

.evidence-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.evidence-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.evidence-thumbnail {
  max-width: 120px;      /* thumbnail width */
  max-height: 120px;     /* thumbnail height */
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  transition: transform .2s;
}

.evidence-thumbnail:hover {
  transform: scale(1.05);
}

/* Lightbox */

.lightbox-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.lightbox-image {
  max-width: 90vw;
  max-height: 90vh;
  border: 2px solid #fff;
  border-radius: 4px;
}


/*************************************
 * CHECKLIST TAB CARD STYLES
 *************************************/
/* The container for the left panel and right panel */
.multi-checklist-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Each top-level type "bar" */
.checklist-type-section {
  background-color: #29282f;
  border-radius: 6px;
}

/* The bar with type name, overall progress, and expand/collapse button */
.checklist-type-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  cursor: pointer;
  border-bottom: 10px solid #141218;
}

.checklist-type-bar h2 {
  margin: 0;
  font-size: 1.3rem;
}

.checklist-type-bar span {
  font-size: 0.85rem;
  color: #ccc;
}
/* The container for category, title, and right panel */
.checklist-section-layout {
  display: flex;
  gap: 1rem;
}

/* Left Panel: Category Selection */
.checklist-left-panel {
  width: 220px;
  background-color: #29282f;
  border-radius: 6px;
  padding: 1rem;
  flex-shrink: 0;
  border-right: 10px solid #141218;
}

.category-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.category-item {
  background-color: #1c1b22;
  padding: 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s ease-in-out;
  border: none;
  color: white;
  text-align: left;
  width: 100%;
}

.category-item:hover {
  background-color: #952cdb;
}

.category-item.active {
  background-color: #7a1fbb;
}

/* Middle Panel: Title Selection */
.checklist-middle-panel {
  width: 220px;
  background-color: #29282f;
  border-radius: 6px;
  padding: 1rem;
  flex-shrink: 0;
  border-right: 10px solid #141218;
}

.title-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.title-item {
  background-color: #1c1b22;
  padding: 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s ease-in-out;
  border: none;
  color: white;
  text-align: left;
  width: 100%;
}

.title-item:hover {
  background-color: #952cdb;
}

.title-item.active {
  background-color: #7a1fbb;
}

/* Right Panel: Testing Guidance & Subtasks */
.checklist-right-panel {
  flex: 1;
  background-color: #29282f;
  border-radius: 6px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
}

/* Testing Guidance */
.testing-guidance {
  color: #ffffff;
}

/* Subtasks Section */
.subtasks-section {
  background-color: #29282f;
  padding: 1rem;
}

.subtasks-section h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
}

.subtask-row {
  display: flex;
  align-items: center;
  margin: 6px 0;
}

/* Notes Section */
.notes-section {
  border-radius: 6px;
}

.notes-section h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
}

.notes-section textarea {
  width: 98%;
  background-color: #141218;
  border: 1px solid #444;
  border-radius: 6px;
  color: #fff;
  font-size: 0.9rem;
  padding: 0.75rem;
  resize: vertical;
}

/*************************************
 * DOCUMENTS TAB – APOLLOSEC THEME
 *************************************/
 .documents-tab-container {
  display: flex;
  flex-direction: column;
  color: #fff;
  font-family: 'Roboto', sans-serif;
}

.documents-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.documents-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}

.documents-actions {
  display: flex;
  gap: 0.75rem;
}

.upload-button,
.generate-button {
  background-color: #952cdb;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: background-color 0.2s, transform 0.15s;
}

.upload-button:hover,
.generate-button:hover {
  background-color: #7a1fbb;
  transform: translateY(-1px);
}

.documents-table-wrapper {
  background-color: #1f1e25;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  overflow-x: auto;
  padding: 1.25rem;
}

.documents-table {
  width: 100%;
  border-collapse: collapse;
}

.documents-table th,
.documents-table td {
  padding: 0.85rem;
  text-align: left;
  font-size: 0.9rem;
  border-bottom: 1px solid #333;
  vertical-align: middle;
}

.documents-table thead th {
  background-color: #29272f;
  color: #ddd;
  font-weight: 600;
}

.documents-table tbody tr {
  background-color: #1f1e25;
  transition: background-color 0.2s, transform 0.1s;
}

.documents-table tbody tr:nth-child(even) {
  background-color: #24232b;
}

.documents-table tbody tr:hover {
  background-color: #29272f;
  transform: translateY(-1px);
}

.delete-button {
  background-color: #e74c3c;
}

.delete-button:hover {
  background-color: #c0392b;
}
.status-label {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 8px;
    color: #ffffff;
    text-align: center;
    min-width: 80px;
    box-sizing: border-box;
}

/* Green for active */
.status-label.active {
    background-color: #28a745;
}

/* Red for inactive */
.status-label.inactive {
    background-color: #dc3545;
}
.create-asset-page {
    display: flex;
    flex-direction: column;
    align-items: left;
    gap: 20px;
    padding: 20px;
    overflow-y: auto;
}

.asset-form {
    width: 100%;
    max-width: 600px;
    background-color: #1c1b22;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    color: #d6cfcf;
    font-weight: bold;
}

.form-group input, 
.form-group select {
    padding: 10px;
    font-size: 14px;
    border: 1px solid #2c2a30;
    border-radius: 8px;
    background-color: #29282f;
    color: #ffffff;
    outline: none;
}

.form-group input::placeholder {
    color: #9c9b9e;
}
.severity-label {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    color: #ffffff;
    text-align: center;
    text-transform: capitalize; /* Ensure first letter is uppercase */
}

/* ✅ Ensure class names match exactly */
.severity-label.critical {
    background-color: #db2828; /* Red */
}

.severity-label.high {
    background-color: #f2711c; /* Orange */
}

.severity-label.medium {
    background-color: #d4af37; /* Dark–golden amber, better contrast with white text */
}

.severity-label.low {
    background-color: #21ba45; /* Green */ 
}

/* ✅ Handle unknown cases */
.severity-label.unknown {
    background-color: #808080; /* Grey */
}
.vulnerability-status-label {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    color: #ffffff;
}

/* Open = Red */
.status-open { background-color: #db2828; }

/* Closed = Green */
.status-closed { background-color: #21ba45; }

/* Accepted Risk = Blue */
.status-accepted { background-color: #2185d0; }

/* Fallback (unknown status) */
.status-unknown { background-color: #767676; }.asset-vulnerability-description-page {
    gap: 10px;
}

/* Specific layout tweaks for this page */
.asset-vulnerability-description-page .vulnerability-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
}

.asset-vulnerability-description-page .detail-section {
    background-color: #2c2a30; /* Keep the dark background */
    border-radius: 8px; /* Rounded corners */
    padding: 16px;
    margin-bottom: 12px; /* Space between sections */
}

.asset-vulnerability-description-page .detail-section h2 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 12px;
    color: #ffffff;
}

.asset-vulnerability-description-page .evidence-box {
    border: 1px solid #2c2a30;
    padding: 12px;
    border-radius: 8px;
    color: #d6cfcf;
    font-size: 14px;
}

.asset-vulnerability-description-page .stats-overview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    width: 100%;
}/* 🔹 Main Layout */
.vulnerability-details-container {
    display: grid;
    grid-template-columns: 2fr 1fr; /* 2:1 ratio for left (details) and right (affected hosts) */
    gap: 16px;
}

/* 🔹 Left Column (Description, Solution) */
.vulnerability-details-left {
    display: flex;
    flex-direction: column;
}

/* 🔹 Right Column (Affected Hosts) */
.affected-hosts {
    background: #1c1b22;
    padding: 8px;
    color: #d6cfcf;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.affected-hosts h2 {
    margin-bottom: 12px;
    color: #ffffff;
}

.affected-hosts ul {
    list-style: none;
    padding: 0;
}

.affected-host-item {
    background-color: #28273a;
    border-radius: 5px;
    padding: 8px 12px;
    margin-bottom: 8px;
    font-size: 14px;
    transition: background 0.2s ease-in-out;
}

.affected-host-item:hover {
    background-color: #3c3950;
}

/* 🔹 Details Section */
.detail-section {
    background: #1c1b22;
    padding: 16px;
    border-radius: 8px;
    color: #ffffff;
}

.detail-section h2 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #ffffff;
}
.assessmentsOverview {  /* Apply same styles to make them equal */
    overflow-y: auto;
}

/* 🔹 Title & Number */
.stat-title {
    font-size: 14px;
    color: #ffffff;
}

/* 🔹 Button */
.primary-button {
    background: #a646e4;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: 0.3s;
    width: 100%;  /* Ensures button stretches properly */
}.create-assessment-page {
    display: flex;
    flex-direction: column;
    align-items: left;
    overflow-y: auto;
}

.header-section {
    display: flex;
    align-items: left;
}

.assessment-form, .form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 5px;
}


 .remediation-status-label {
    padding: 0.2em 0.5em;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: capitalize;
  }
  
  .remediation-status-label.due {
    background-color: #28a745; /* Green */
    color: #fff;
  }
  
  .remediation-status-label.overdue {
    background-color: #dc3545; /* Red */
    color: #fff;
  }
  .page-content request-scoping-call {
    display: flex;
    flex-direction: column;
    align-items: left;
    overflow-y: auto;
    padding-top: 2rem;      /* space above header */
}

/* Request Scoping Call header: button + text inline */
.page-content.request-scoping-call .header-section {
  display: flex;            /* turn it into a horizontal flex‐box */
  flex-direction: row;      /* (default) items in a row */
  justify-content: flex-start; /* push contents to the left */
  align-items: center;      /* vertically center arrow + text */
  gap: 0.5rem;              /* space between back button and title */
  margin-bottom: 1rem;
}

.request-scoping-call .header-section h1 {
  margin: 0;      /* kill default block margins */
}

.scoping-call-form, .form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

 /* Invert the native calendar‐picker icon on light backgrounds */
.request-scoping-call input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  filter: invert(1) brightness(2);
}

/* Firefox */
.request-scoping-call input[type="datetime-local"]::-moz-calendar-picker-indicator {
  filter: invert(1) brightness(2);
}
/* AddAssessmentFinding.css */

/* Container for the create page – matches your create-assessment page style */
.create-assessment-page {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow-y: auto;
  color: #ffffff;
  font-family: 'Roboto', sans-serif;
}

/* Header Section */
.header-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-header h1 {
  font-size: 16px;
  margin: 0;
  color: #d6cfcf;
}

.page-header .page-subtitle {
  font-size: 24px;
  font-weight: bold;
  margin: 0;
}

/* Form Styles */
.assessment-form {
  width: 100%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  background-color: #1c1b22;
  padding: 20px;
  border-radius: 8px;
  box-sizing: border-box;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-label {
  font-size: 0.9rem;
  color: #bbb;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 10px;
  border: 1px solid #952cdb;
  border-radius: 8px;
  background-color: #28273a;
  color: #ffffff;
  font-size: 14px;
  box-sizing: border-box;
}

.form-textarea {
  resize: vertical;
}

/* Uploaded Files List */
.uploaded-files {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.uploaded-file {
  background-color: #29282f;
  padding: 10px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.remove-file-button {
  background-color: #d9534f;
  color: #fff;
  border: none;
  padding: 5px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
}

/* Submit Button Row */
.submit-row {
  text-align: right;
  width: 100%;
}
.tag {
    display: inline-flex;
    align-items: center;
    background-color: #ddd;
    padding: 4px 8px;
    margin: 2px;
    border-radius: 4px;
}

.remove-tester {
    margin-left: 6px;
    background: none;
    border: none;
    cursor: pointer;
    color: red;
    font-size: 14px;
}

/* ===== Modal Overlay ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Dimmed background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

/* ===== Modal Box ===== */
.modal {
    background: #fff;
    width: 50%;
    max-width: 600px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: fadeIn 0.3s ease-in-out;
}

.modal h2 {
    padding: 8px;
    text-align: left;
    color: #000; /* Ensure the text is visible if you have a dark theme */
}

.modal-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}
  
.modal-table th,
.modal-table td {
    border: 1px solid #959494;
    padding: 8px;
    text-align: left;
    color: #000; /* Ensure the text is visible if you have a dark theme */
}
  
/* ===== Modal Header ===== */
.modal h2 {
    margin-top: 0;
    font-size: 22px;
    text-align: center;
}

/* ===== Close Button (Top Right) ===== */
.modal .close-button {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
}

.modal .close-button:hover {
    color: #000;
}

/* ===== Form Elements Inside Modal ===== */
.modal label {
    display: block;
    font-weight: 600;
    margin-top: 15px;
    color: #000; /* Ensure the text is visible if you have a dark theme */
}

.modal select, 
.modal input {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* ===== Assigned Testers Tag List ===== */
.assigned-tester-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;
}

.tag {
    background: #007bff;
    color: #fff;
    padding: 5px 10px;
    border-radius: 15px;
    display: flex;
    align-items: center;
}

.tag button {
    background: none;
    border: none;
    color: #fff;
    font-weight: bold;
    margin-left: 8px;
    cursor: pointer;
}

/* ===== Modal Actions (Buttons) ===== */
.modal-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.primary-button {
    background: #8f1ad8;
    color: #fff;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.primary-button:hover {
    background: #7500C0;
}

.update-button {
    background: #8f1ad8;
    color: #fff;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.update-button:hover {
    background: #7500C0;
}

.secondary-button {
    background: #dc3545;
    color: #fff;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.secondary-button:hover {
    background: #c82333;
}

/* ===== Fade-in Animation ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal select option {
    background-color: #fff;
    color: #000;
  }
  
  /* Turn the filter section into a horizontal flex container */
.filter-section {
  display: flex;
  align-items: center;    /* Vertically center items */
  gap: 1rem;             /* Spacing between items */
  margin-bottom: 1rem;   /* Space below the row */
}

/* Keep the search input and dropdown at normal widths (optional) */
.filter-section .search-input {
  max-width: 250px;
}

/* Let the button automatically align to the far right */
.filter-section .primary-button {
  margin-left: auto;  /* Pushes the button to the right edge */
}
  
  /* The main container for the grid of findings */
  .findings-grid {
    display: grid;
    /* 3–4 columns across depending on screen size */
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-gap: 16px;
  }
  
  /* Each finding card */
  .finding-card {
    background-color: #29282f;  /* Or your theme color */
    border-radius: 8px;
    padding: 16px;
    cursor: pointer;
    color: #fff;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: background-color 0.2s ease;
  }
  
  /* Hover effect */
  .finding-card:hover {
    background-color: #33313a;
  }
  
  /* Header of each card (Name on the left, Risk on the right) */
  .finding-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
  }
  
  .finding-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
  }
  
  .finding-risk {
    /* For your SeverityLabel or risk label container */
    display: flex;
    align-items: center;
  }
  
  /* Footer: tag + category on the bottom right */
  .finding-card-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: auto; /* Pushes footer to bottom of card */
  }
  
  .finding-tag,
  .finding-category {
    font-size: 0.85rem;
  }.finding-details-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow-y: auto;
}

.finding-details-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  margin-bottom: 16px;
}

.finding-details-actions {
  display: flex;
  gap: 12px;
}

.secondary-button,
.danger-button {
  font-size: 14px;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.secondary-button {
  background-color: #952cdb;
  color: white;
}

.secondary-button:hover {
  background-color: #7a1fbb;
}

.danger-button {
  background-color: #d9534f;
  color: white;
}

.danger-button:hover {
  background-color: #c9302c;
}

.finding-details-content {
  background-color: #1c1b22;
  padding: 24px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.finding-details-content h2 {
  font-size: 18px;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 4px;
}

.finding-details-content p {
  font-size: 14px;
  color: #d6cfcf;
  margin: 0;
}

.finding-extra-info {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  font-size: 14px;
  color: #d6cfcf;
}

.loading-message,
.error-message {
  font-size: 16px;
  padding: 20px;
  background-color: #2f2f2f;
  border-radius: 8px;
  color: #ffffff;
  text-align: center;
}

/* Risk, Likelihood, Impact boxes */
.finding-metrics {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 16px 0;
}

.finding-metric-box {
  flex: 1;
  min-width: 150px;
  padding: 16px;
  border: 1px solid #952cdb;
  border-radius: 10px;
  background-color: #1a1920;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 0 6px rgba(149, 44, 219, 0.1);
}

.finding-metric-box .stat-title {
  font-size: 14px;
  color: #ccc;
}

.finding-metric-box .stat-value {
  font-size: 16px;
  font-weight: bold;
  color: #fff;
}
.edit-finding-page {
    padding: 20px;
    color: #fff; /* or adapt to your theme */
    overflow-y: auto;
  }
  
  .edit-finding-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background-color: #1c1b22;
    padding: 20px;
    border-radius: 8px;
  }
  
  .form-group {
    display: flex;
    flex-direction: column;
  }
  
  .form-group textarea {
    resize: none;
  }
  
  .form-group label {
    font-weight: 600;
    margin-bottom: 4px;
  }
  
  .form-group input,
  .form-group textarea,
  .form-group select {
    padding: 8px;
    border: 1px solid #444;
    border-radius: 4px;
    background-color: #1c1c1c;
    color: #fff;
  }
  
  .form-actions {
    display: flex;
    gap: 16px;
    margin-top: 8px;
  }
  
  .secondary-button {
    background-color: #6c63ff;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px 14px;
    cursor: pointer;
  }
  
  .cancel-button {
    background-color: #555;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px 14px;
    cursor: pointer;
  }
  .page-content.create-finding-page {
    padding: 20px;
    color: #fff;
    overflow-y: auto;
  }
  
  .page-header {
    margin-bottom: 24px;
  }
  
  .create-finding-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background-color: #2f2f2f;
    padding: 20px;
    border-radius: 8px;
  }
  

  
  
  
  /* Header styling */
  .page-header {
    margin-bottom: 20px;
  }
  
  /* Grid layout for checklist cards */
  .checklist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    grid-gap: 16px;
  }
  
  /* Each checklist card */
  .checklist-card {
    background-color: #29282f;  /* Or your theme color */
    border-radius: 8px;
    padding: 16px;
    cursor: pointer;
    color: #fff;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: background-color 0.2s ease;
  }
  
/* Content inside the card */
.checklist-card-content {
    display: flex;
    flex-direction: column;
  }
  
  /* Style for assessment type, category, and title */
  .assessment-type {
    font-weight: 600;
    margin-bottom: 8px;
  }
  
  .category {
    margin-bottom: 8px;
    color: #ccc;
  }
  
  .title {
    font-size: 1.2rem;
    margin: 0;
  }
 /* CreateNewChecklist.css */
  .create-checklist-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background-color: #29282f;
    padding: 20px;
    border-radius: 8px;
  }
  /* ChecklistDetails.css */
  .checklist-details {
    background-color: #29282f;
    padding: 20px;
    border-radius: 8px;
    overflow-y: auto;
  }
  
/* src/styles/SettingsPage.css */
.settings-page {
  padding: 1rem;
  flex: auto;
  color: #fff;
  font-family: 'Roboto', sans-serif;
}

.settings-page h1 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-align: left;
}

.settings-form {
  background-color: #29282f;
  border-radius: 8px;
  padding: 1rem;
  margin: 0;
  flex: 1;
  min-width: 320px;
}

/* ───────── Container for two panels ───────── */
.settings-container {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap; /* stack on narrow screens */
  }

/* ───────── Domains box ───────── */
 .tlds-box {
     /* reuse styling from settings-form */
     background-color: #29282f;
     border-radius: 8px;
     padding: 1rem;
     max-width: none;
     margin: 0;
     flex: 1;               /* fill 50% of row each */
     min-width: 320px;
   }

/* ─── Header inside domains box ─── */
.tlds-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
  }
  
  .tlds-header h2 {
    margin: 0;
    font-size: 1.25rem;
    margin-right: 1rem;
  }

.settings-field {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.settings-field label {
  width: 150px;
  font-weight: bold;
  margin-right: 1rem;
}

.settings-field span {
  flex: 1;
}

.settings-field input {
  flex: 1;
  padding: 0.5rem;
  border: 1px solid #444;
  border-radius: 4px;
  background-color: #141218;
  color: #fff;
}

.update-message {
  margin-top: 1rem;
  text-align: center;
  color: #7a1fbb;
  font-weight: bold;
}
/* ─── Page & Header ───────────────────────────────────────────────────────── */
.intelligence-page {
  background: #2e2c32;
  padding: 24px;
  min-height: 100vh;
  box-sizing: border-box;
}

.intelligence-page .page-header h1 {
  font-size: 2rem;
  margin: 0;
  color: #ffffff;
}

.intelligence-page .page-header .page-subtitle {
  margin: 4px 0 24px;
  color: #bbbbbb;
  font-size: 1rem;
}

/* ─── Tabs ─────────────────────────────────────────────────────────────────── */
.tabs-container-intel {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.tabs-container-intel button {
  background: transparent;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  color: #cccccc;
  font-size: 1rem;
  transition: background 0.2s, color 0.2s;
}

.tabs-container-intel button.active {
  background: #d5d2d8;
  color: #2e2c32;
}

.tabs-container {
  margin-bottom: 13px;
}

/* ─── Filter Row ──────────────────────────────────────────────────────────── */
.filter-section input,
.filter-section select {
  flex: 1;
  padding: 10px;
  border: 1px solid #952cdb;
  border-radius: 8px;
  background-color: #29282f;
  color: #ffffff;
  font-size: 14px;
  box-sizing: border-box;
  width: 100%;
}

.filter-section input {
  min-width: 200px;
}

/* ─── Carousel for Small Cards ─────────────────────────────────────────────── */
.carousel-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 40px; /* space for arrows */
}

.threat-actor-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 16px 0;
  flex-wrap: nowrap;

  /* true fade‑out edges */
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 15%,
    black 85%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 15%,
    black 85%,
    transparent 100%
  );
}
.threat-actor-carousel::-webkit-scrollbar {
  display: none;
}

/* overlap by shifting each card left */
/* Top Trump Style */
.small-card {
  flex: 0 0 22%;
  scroll-snap-align: center;
  margin-left: -10px;
  display: flex;
  flex-direction: column;
  background: #1e1c24;
  border-radius: 12px;
  border: 2px solid #4b3c59;
  padding: 0;
  cursor: pointer;
  overflow: hidden;

  transform: translateY(20px) scale(0.85);
  opacity: 0.5;
  z-index: 1;
  transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
}

.small-card.active {
  transform: translateY(0) scale(1);
  opacity: 1;
  z-index: 5;
  box-shadow: 0 0 15px rgba(149, 44, 219, 0.7);

}

.top-trump-title {
  background-color: #952cdb;
  color: white;
  font-weight: bold;
  text-align: center;
  padding: 8px;
  font-size: 1rem;
  text-transform: uppercase;
}

.small-card-img-container {
  width: 100%;
  padding-top: 100%;
  position: relative;
  border-radius: 0;
  overflow: hidden;
  border-bottom: 3px solid #952cdb;
}

.small-card-img-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Divider between image and text */
.card-divider {
  height: 3px;
  background-color: #952cdb;
  width: 100%;
}

/* Full text without truncation */
.small-card-text {
  padding: 12px 14px;
  color: #ffffff;
  font-size: 0.85rem;
  text-align: left;
  line-height: 1.5;
  flex-grow: 1;
  display: flex;
  align-items: center;
  max-height: 120px;
  overflow-y: auto;
}

.small-card-text p {
  margin: 0;
  overflow: hidden;
}


/* ─── Carousel Nav Arrows ─────────────────────────────────────────────────── */
.carousel-nav {
  position: absolute;
  bottom: 8px;
  background: rgba(0,0,0,0.6);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
.carousel-nav:hover {
  background: rgba(0,0,0,0.8);
}
.carousel-nav svg {
  color: #952cdb;
}
.carousel-nav.left {
  left: calc(50% - 40px);
}
.carousel-nav.right {
  left: calc(50% + 8px);
}


/* ─── Top‑Trumps Large Card ───────────────────────────────────────────────── */
/* Match large card to top-trump look */
.large-card-container {
  background: #1e1c24;
  border: 2px solid #4b3c59;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 15px rgba(0,0,0,0.4);
}

.large-card-content {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  width: 100%;
}

.large-card-header {
  background-color: #952cdb;
  color: white;
  text-align: center;
  font-weight: bold;
  text-transform: uppercase;
  padding: 12px;
  font-size: 1.2rem;
}

.card-front {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card-front .card-image-box {
  position: relative;
  width: 100%;
  padding-top: 100%;
  background: #1e1c24;
  border-bottom: 3px solid #952cdb;
  border-radius: 0;
  overflow: hidden;
}

.card-image-box img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-back {
  flex: 1.5;
  padding: 24px;
  color: white;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-back h3 {
  font-size: 1.2rem;
  color: #952cdb;
  margin: 0 0 2px;
  margin-bottom: 0%;
  margin-top: 10px;
}

.card-summary {
  color: #ffffff;
  line-height: 1.5;
  font-size: 0.95rem;
}

.info-row {
  display: flex;
  gap: 10px;
  font-size: 0.9rem;
  color: #ffffff;
  line-height: 1.4;
}

.info-row strong {
  min-width: 140px;
  color: #ffffff;
}

.back-button {
  margin-left: 10px;
}

/* ─── RansomWatch Feed Layout ───────────────────────────────────────────── */
/* ─── Adjust Container Layout ─────────────────────────────────────────────── */
.ransomwatch-container {
  display: flex;
  align-items: flex-start; /* top align */
  justify-content: space-between;
  gap: 24px;
  margin-top: 0; /* remove offset */
  padding-top: 12px;
}

/* ─── Left & Right Columns ────────────────────────────────────────────────── */
.ransomwatch-left,
.ransomwatch-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ransomwatch-right {
  margin-top: 4px;
  max-height: 80vh;         /* Limit height to 80% of viewport */
  overflow-y: auto;         /* Enable vertical scroll */
  padding: 0 0 24px 0;       /* Optional: space for scrollbar */
  scrollbar-width: thin;    /* Firefox */
}

/* ─── Ensure Right Column Title Aligns Neatly ─────────────────────────────── */
.ransomwatch-right h2 {
  position: sticky;
  top: 0;
  color: #ffffff;
  font-size: 1.4rem;
  margin: 0 0 10px;
  background-color: #141218; /* Match background to avoid overlap */
  padding: 16px 0;
  margin: 0;
  z-index: 10;
}

/* ─── Info Boxes ────────────────────────────────────────────────────────── */
.ransomwatch-box {
  background-color: #29282f;
  border-radius: 12px;
  padding: 16px 20px;
  color: #ffffff;
  font-size: 0.95rem;
}

.ransomwatch-box-header {
  font-weight: bold;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

/* ─── Triangle Icon for Warning ────────────────────────────────────────── */
.ransomwatch-box.critical .ransomwatch-box-header svg {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: #f39c12;
}

.ransomwatch-box.critical {
  border-left: 6px solid #952cdb;
}

/* ─── Latest Victims ───────────────────────────────────────────────────── */
.ransomwatch-right {
  margin-top: 0; /* raise the box slightly to match left */
}

.ransomwatch-right h2 {
  color: #ffffff;
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.victim-card {
  background-color: #29282f;
  color: #ffffff;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ─── Clamp table cells with ellipsis ───────────────────────────────────── */
.table-wrapper .table td {
  max-width: 150px;             /* adjust as needed */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  position: relative;
  overflow-wrap: anywhere;
}

/* reveal full on hover */
.table-wrapper .table td:hover {
  white-space: normal;
  overflow: visible;
  z-index: 10;
  padding: 4px 8px;
  border-radius: 4px;
}

/* ─── Blurred password field ───────────────────────────────────────────── */
@keyframes blurPulse {
  0%, 100% { filter: blur(3px); }
  50%      { filter: blur(5px); }
}

.blurred-password {
  filter: blur(4px);
  animation: blurPulse 2s ease-in-out infinite;
  cursor: pointer;
  display: inline-block; /* so filter only affects the text */
}

  /*************************************
   * Page Style
   *************************************/
  .easm-page {
    overflow-x: hidden;  /* ← prevent page from stretching infinitely */
  }
  
  .chart-card canvas {
    max-width: 100% !important;
    height: auto !important;
  }
  
  /*************************************
   * Summary Tab
   *************************************/
  /* make sure the wrapper actually becomes the scroll container */
  .easm-page .assets-tab .table-wrapper {
    display: block !important;
  }

  /* ROWS */
  .summary-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
  }
  .top-row .metric-card {
    flex: 1;
    min-width: 140px;
  }
  .second-row .issues-card,
  .second-row .asset-card,
  .second-row .passwords-card {
    flex: 1;
    min-width: 220px;
  }
  .bottom-row .chart-card {
    flex: 1;
    min-width: 100%;
  }
  
  /* COMMON CARD STYLES */
  .metric-card,
  .issues-card,
  .asset-card,
  .passwords-card,
  .chart-card,
  .action-card {
    background-color: #1f1e25; 
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  }

  .group-severity-status {
  display: flex;
  flex-direction: column; /* stack Risk and Status vertically */
  gap: 0.5rem;            /* space between */
  justify-content: flex-start;
}
  
  /* METRIC CARD */
  .metric-title {
    font-size: 0.9rem;
    color: #ccc;
  }
  .metric-value {
    font-size: 1.3rem;
    font-weight: bold;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    color: #fff;
  }
  .action-card .run-button {
    margin-top: 0.5rem;
    background-color: #952cdb;
    border: none;
    padding: 0.5rem 1rem;
    color: white;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
  }

  .action-card .run-button:hover {
    background-color: #7a1fbb;
  }
  
  /* ISSUES CARD */
  .issues-card h3 {
    margin-top: 0;
    font-size: 1rem;
    color: #fff;
    margin-bottom: 0.75rem;
  }
  .severity-grid {
    display: flex;
    gap: 0.5rem;
  }
  .sev-box {
    flex: 1;
    padding: 0.5rem;
    border-radius: 6px;
    text-align: center;
    font-weight: bold;
  }
  .sev-box span {
    display: block;
    font-size: 0.75rem;
    font-weight: normal;
  }

  /* match your SeverityLabel colours */
.sev-box.critical {
  background-color: #db2828 !important; /* Red */ 
}

.sev-box.high {
  background-color: #f2711c !important; /* Orange */
}

.sev-box.medium {
  background-color: #d4af37 !important; /* Yellow */
}

.sev-box.low {
  background-color: #21ba45 !important; /* Green */
}
  
  /* ASSET CARD */
  .asset-card h3 {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    color: #fff;
  }
  .asset-list {
    list-style: none;
    padding-left: 0;
    margin: 0 0 1rem;
    color: #ccc;
  }
  .asset-list li {
    margin: 0.25rem 0;
  }
  .asset-card .donut-placeholder {
    width: 120px;
    height: 120px;
    margin: 0 auto;            /* center it under the title */
    position: relative;
  }
  
  /* PASSWORDS CARD */
  .passwords-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  .pw-box {
    background-color: #c0392b;
    border-radius: 6px;
    padding: 0.75rem;
    text-align: center;
  }
  .pw-title {
    font-size: 0.85rem;
    color: #fff;
    margin-bottom: 0.25rem;
  }
  .pw-value {
    font-size: 1.6rem;
    font-weight: bold;
    color: #fff;
  }
  
  /* CHART CARD */
  .chart-card h3 {
    margin-top: 0;
    font-size: 1rem;
    color: #fff;
    margin-bottom: 0.75rem;
  }
  .chart-card canvas {
    background-color: #1f1e25;
    border-radius: 6px;
    padding: 0.5rem;
  }
  
  /* override the bottom‐row chart to be ~40% wide and centered */
.summary-row.bottom-row .chart-card {
  flex: 1;
  min-width: 95%;
  max-width: none;
  margin: 0 auto;
  max-height: 50vh;
  overflow: hidden; 
}

/* force the canvas itself to be a fixed pixel height */
.summary-row.bottom-row .chart-card canvas {
  height: 250px !important;
  max-height: none !important;
}

  /*************************************
   * Findings Tab
   *************************************/
   
   /* ──────────────────────────────────────────────────────────────
   Finding detail header: 2×2 grid for Risk, Status badge,
   Deadline and Status-update form
────────────────────────────────────────────────────────────── */
.easm-page .finding-detail-view .finding-top-row .header-right {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  column-gap: 1.5rem;
  row-gap:    0.5rem;
  justify-content: end;   /* push it to the right */
  align-items: center;
}

/* place each element explicitly */
.easm-page .finding-detail-view .finding-top-row .header-right .risk-label {
  grid-column: 1;
  grid-row:    1;
}
.easm-page .finding-detail-view .finding-top-row .header-right .status-label {
  grid-column: 1;
  grid-row:    2;
}
.easm-page .finding-detail-view .finding-top-row .header-right .deadline-label {
  grid-column: 2;
  grid-row:    1;
}
.easm-page .finding-detail-view .finding-top-row .header-right .status-update-box {
  grid-column: 2;
  grid-row:    2;
}

 .vulnerability-header {
  padding-top: 0;
  margin-top: -10px;
  }
  .vulnerability-header .vulnerability-title {
    padding-top: 0;
    margin-top: -10px;
  }

  .back-button {
    padding-top: 0;
    margin-top: -10px;
  }

   /* Stats row */
  .vulnerability-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
  }

  /* Details & sidebar */
  .vulnerability-details-container {
    display: flex;
    gap: 1rem;
  }

  .severity-box {
      flex: 1;
      min-width: 150px;
      border-radius: 8px;
      padding: 16px;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }
  /* left column */
  .vulnerability-details-left {
    flex: 2;
  }
  .detail-section {
    background-color: #1f1e25;
    padding: 0.8rem 1.25rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.25);
    transition: background-color 0.3s ease;
    margin-bottom: 0.8rem;
  }

  .detail-section:hover {
    background-color: #1d1b23;
  }

  .detail-section h3 {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
    color: #ffffff;
  }

  .detail-section p {
    color: #ccc;
    line-height: 1.4;
  }

  /* right column */
  .affected-hosts {
    flex: 1;
    color: #ccc;
  }

  .no-affected-hosts {
    font-style: italic;
  }

  .easm-page .findings-tab .filter-section {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    align-items: center;
  }
  
  /* easm.css */
.evidence-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px,1fr));
  gap: 0.5rem;
}
.evidence-thumbnail {
  width: 100%;
  height: 100px;
  object-fit: cover;
  cursor: pointer;
  border-radius: 4px;
}
.lightbox-overlay {
  position: fixed;
  top:0; left:0; right:0; bottom:0;
  background: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.lightbox-image {
  max-width: 90%;
  max-height: 90%;
  border-radius: 4px;
}

/* ──────────────────────────────────────────────────────────────
   Make the "+ Add New Finding" button flex-friendly and match
   the height/font of the filter fields in .filter-section
────────────────────────────────────────────────────────────── */

/* 1) Remove the fixed 120px width, let it size to its text */
.easm-page .filter-section .primary-button {
  width: auto !important;
  flex: 0 0 auto;          /* don’t force flex:1 like inputs do */
  margin-left: 0;          /* remove any extra spacing if you added it inline */
  padding: 10px 12px;      /* match the vertical padding of your inputs/selects */
  font-size: 14px;         /* same font-size as .search-input / .filter-select */
  line-height: 1.2;        /* ensure the text is vertically balanced */
}

/* 2) (Optional) If you want the button to always sit at the same height 
       as the selects/inputs, explicitly set its min-height */
.easm-page .filter-section .primary-button {
  min-height: calc(2 * 10px + 14px); /* 10px padding top + 10px padding bottom + 14px font-size */
}

/* 3) Make sure it still has the same hover state */
.easm-page .filter-section .primary-button:hover {
  background-color: #7a1fbb;
}
