/* =========================
   ETHICS PORTAL BASE STYLES (BRAND: #03949B)
========================= */
:root {
  --primary-color: #03949B;
  --primary-hover: #02787E;
  --secondary-color: #05A6AE;
  --secondary-hover: #02787E;

  --background-light: #f4fbfb;
  --background-white: #ffffff;

  --text-color: #141414;
  --text-muted: #5f6f73;

  --border-color: #d9e5e7;
  --border-radius: 12px;

  --shadow-light: 0 4px 12px rgba(3, 148, 155, 0.2);
  --shadow-medium: 0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-heavy: 0 4px 15px rgba(0,0,0,0.5);
  --transition-default: 0.3s ease;
}

/* =========================
   GLOBAL STYLES
========================= */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-color);
  background-color: var(--background-light);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

a {
  text-decoration: none;
  transition: color var(--transition-default), transform var(--transition-default);
  color: var(--primary-color);
}
a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* =========================
   TOP SECTION
========================= */
.ethics-top-section {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 60px;
}

.ethics-top-menu {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
}

.menu-button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-width: 250px;
  padding: 14px 28px;
  border-radius: 30px;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  box-shadow: var(--shadow-light);
  transition: all var(--transition-default);
}
.menu-button:hover {
  background: linear-gradient(135deg, var(--primary-hover), var(--primary-color));
  transform: translateY(-2px) scale(1.02);
  text-shadow: 0 1px 2px rgba(0,0,0,0.25);
}

.ethics-top-image {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.ethics-top-image img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: var(--shadow-heavy);
}

/* =========================
   INFO COLUMNS
========================= */
.ethics-info-columns {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.ethics-info-left,
.ethics-info-right {
  flex: 1;
  min-width: 300px;
}

.ethics-info-left p,
.ethics-info-right p,
.ethics-info-right ul {
  margin-bottom: 15px;
  color: var(--text-color);
}

.ethics-info-right ul {
  padding-left: 20px;
}

/* =========================
   PORTAL CARDS
========================= */
.portal-cards {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.portal-card {
  background: var(--background-white);
  padding: 30px;
  border-radius: var(--border-radius);
  width: 300px;
  box-shadow: var(--shadow-light);
  text-align: center;
  border: 1px solid var(--border-color);
  transition: transform var(--transition-default), box-shadow var(--transition-default);
}
.portal-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.portal-card h2 {
  color: var(--primary-color);
  margin-bottom: 15px;
}

.portal-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 25px;
  background: var(--primary-color);
  color: var(--background-white);
  border-radius: 25px;
  font-weight: 600;
  transition: all var(--transition-default);
}
.portal-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px) scale(1.02);
  text-shadow: 0 1px 2px rgba(0,0,0,0.25);
}

/* =========================
   FOOTER LINKS
========================= */
.portal-footer-links {
  margin-top: 30px;
  text-align: center;
}
.portal-footer-links a {
  margin: 0 10px;
  color: var(--primary-color);
  font-weight: 500;
}
.portal-footer-links a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* =========================
   FORMS & CARDS
========================= */
.follow-up-block,
.report-card,
.consent-page {
  max-width: 900px;
  margin: 30px auto 60px;
  background-color: var(--background-white);
  padding: 35px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
}

.follow-up-block {
  max-width: 600px;
}

.follow-up-block label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.95rem;
  color: var(--primary-color);
}

input,
textarea,
select {
  width: 100%;
  padding: 13px;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  margin-bottom: 15px;
  transition: border-color 0.25s, box-shadow 0.25s;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(3,148,155,0.25);
}

/* =========================
   CONSENT BUTTON
========================= */
.consent-btn {
  padding: 14px;
  background: var(--primary-color);
  color: #ffffff;
  font-weight: 600;
  border-radius: var(--border-radius);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-light);
  transition: all var(--transition-default);
}
.consent-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px) scale(1.02);
  text-shadow: 0 1px 2px rgba(0,0,0,0.25);
}

/* =========================
   ADMIN FILTER FORM
========================= */
.admin-filter-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px;
  padding: 0px 30px;
  border-radius: var(--border-radius);
  background: var(--background-white);
  box-shadow: var(--shadow-light);
  margin-bottom: 0px;
}
.admin-filter-form input,
.admin-filter-form select {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  min-width: 150px;
}
.admin-filter-form button {
  padding: 10px 22px;
  background: var(--primary-color);
  color: #fff;
  border-radius: 20px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-default);
  height: 42px;
}
.admin-filter-form button:hover {
  background: var(--primary-hover);
}

/* =========================
   ETHICS TABLE (MERGED ADMIN)
========================= */
.ethics-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  font-family: Arial, sans-serif;
}
.ethics-table th,
.ethics-table td {
  padding: 6px 10px;
  border: 1px solid #ccc;
  text-align: center;
}
.ethics-table th {
  background-color: #e6f7f8;
  color: var(--primary-color);
  font-weight: 600;
}
.ethics-table tr:nth-child(even) {
  background-color: #fafcfc;
}
.ethics-table tr:hover {
  background-color: #eef7f7;
}

/* =========================
   STATUS CELL
========================= */
.status-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.status-cell select {
  width: 200px;
  height: 42px;
  border-radius: 20px;
  text-align: center;
}
.status-cell button {
  padding: 10px 25px;
  border-radius: 20px;
  border: none;
  background: var(--primary-color);
  color: #fff;
  cursor: pointer;
  font-weight: 600;
  transition: all var(--transition-default);
  height: 42px;
}
.status-cell button:hover {
  background: var(--primary-hover);
}

/* =========================
   ACTIONS CELL (VIEW / DELETE) MERGED ADMIN
========================= */
.actions-cell {
  display: flex;
  justify-content: center;
  gap: 10px;
}
.actions-cell a {
  padding: 10px 25px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  transition: all var(--transition-default);
}
.actions-cell a.view-link {
  background: var(--primary-color);
}
.actions-cell a.view-link:hover {
  background: var(--primary-hover);
}
.actions-cell a.delete-link {
  background: #dc3545;
}
.actions-cell a.delete-link:hover {
  background: #b02a37;
}

/* =========================
   BUTTONS MERGED
========================= */
.btn {
  padding: 4px 10px;
  border-radius: 3px;
  text-decoration: none;
  font-size: 0.9rem;
}
.btn-primary {
  background-color: #03949B;
  color: #fff;
  border: none;
}
.btn-primary:hover {
  background-color: #195abb;
}
.btn-warning {
  background-color: #03949B;
  color: #fff;
  border: none;
}
.btn-warning:hover {
  background-color: #e68900;
}
.btn-danger {
  background-color: #dc3545;
  color: #fff;
  border: none;
}
.btn-danger:hover {
  background-color: #b02a37;
}

/* =========================
   REPORT DETAILS & NOTES MERGED ADMIN
========================= */
.ethics-filter-card {
  margin-bottom: 20px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #f9f9f9;
}
.report-details-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 15px;
}
.report-details-table th {
  text-align: center;
  width: 250px;
  background: #f5f5f5;
  padding: 6px;
}
.report-details-table td {
  padding: 6px;
}
.note-item {
  border: 1px solid #ddd;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 4px;
  background: #fafafa;
}
.report-view-container {
  max-width: 1100px;
  margin: 0 auto;
  font-family: Arial, sans-serif;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1024px) {
  .admin-filter-form {
    flex-direction: column;
    align-items: stretch;
  }

  .status-cell select,
  .actions-cell a {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .ethics-info-columns {
    flex-direction: column;
  }

  .actions-cell {
    flex-direction: column;
    gap: 5px;
  }
}

/* =========================
   ETHICS CARD & CONTAINERS
========================= */
.ethics-card {
  max-width: 1100px;
  margin: -55px auto 30px;
  padding: 30px;
  background: var(--background-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-heavy);
}

.ethics-container {
  max-width: 900px;
  margin: -50px auto 5px auto;
  padding: 5px;
  background: var(--background-white);
  border-radius: 10px;
}

/* =========================
   CONSENT PAGE & TERMS
========================= */
.consent-page {
  line-height: 1.6;
}

.consent-checkbox {
  margin: 15px 0;
}

.terms-container {
  position: sticky;
  bottom: 0;
  background: var(--background-white);
  padding: 15px 0;
  margin-top: 20px;
  border-top: 1px solid #ddd;
  z-index: 10;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
}

.terms-container input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 3px;
}

.terms-container label {
  flex: 1;
  line-height: 1.5;
}

.terms-container label a {
  color: var(--primary-color);
  text-decoration: underline;
}

/* =========================
   FAQ ACCORDION
========================= */
.faq-accordion {
  max-width: 900px;
  margin: 0 auto 40px auto;
  padding: 20px;
}

.faq-item {
  margin-bottom: 10px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-light);
}

.faq-question {
  width: 100%;
  background: var(--primary-color);
  color: #fff;
  cursor: pointer;
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all var(--transition-default);
}

.faq-question:hover {
  background: var(--primary-hover);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  background: var(--background-white);
  border-left: 3px solid var(--primary-color);
  padding: 0 20px;
}

.faq-answer p {
  margin: 10px 0;
}

.faq-item.active .faq-answer {
  max-height: 500px; /* enough to show content */
  padding: 10px 20px;
}

.faq-question .icon {
  font-weight: bold;
  margin-left: 10px;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question .icon {
  transform: rotate(45deg);
}

/* =========================
   REPORT SUCCESS BOX
========================= */
.report-success-box {
  max-width: 700px;
  margin: 30px auto;
  padding: 30px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  text-align: center;
  font-family: 'Segoe UI', sans-serif;
}

.success-badge {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: #03949B; /* primary color */
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.25); /* raised effect */
  position: relative;
}

.success-badge .tick {
  width: 20px;
  height: 40px;
  border-left: 5px solid #fff;
  border-bottom: 5px solid #fff;
  transform: rotate(-45deg);
  position: absolute;
}

.report-success-box h2 {
  margin-bottom: 15px;
  color: var(--primary-color);
}

.report-success-box p {
  margin: 5px 0;
}

.report-success-box .btn {
  margin-top: 20px;
  padding: 12px 25px;
  background: var(--primary-color);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}
.report-success-box .btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px) scale(1.02);
}
.ethics-container .report-success-box .success-icon {
  font-size: 40px;       /* bigger tick */
  color: #03949B;
  margin-bottom: 15px;
  line-height: 1;
}

/* =========================
   POLICIES CARD STYLE - 5 per row
========================= */
.ethics-container .policy-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start !important;
}

.policy-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 20px;
    text-align: center;
    width: calc(25% - 15px); /* 4 cards per row */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.policy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
/* deleted table Admin*/
/* Original Data Table Styling */
/* Container for all deleted reports */
.deleted-reports-container {
  padding: 1em;
}

/* Each deleted report block */
.deleted-report-block {
  border: 1px solid #ccc;
  background: #f9fdfd;
  margin-bottom: 2em;
  padding: 1em;
  border-radius: 5px;
}

/* Header inside each deleted report block */
.deleted-report-block h3 {
  margin-top: 0;
  color: #31708f;
}

/* Table for original data inside deleted report */
/* Container for all deleted reports */
.deleted-reports-container {
  padding: 1.5em;
  background-color: #f4f9fb;
}

/* Each deleted report block */
.deleted-report-block {
  border: 1px solid #c3dbe0;
  background-color: #ffffff;
  margin-bottom: 2em;
  padding: 1.5em;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Deleted report heading */
.deleted-report-block h3 {
  margin-top: 0;
  margin-bottom: 1em;
  color: #205072;
  font-size: 1.25em;
  border-bottom: 1px solid #c3dbe0;
  padding-bottom: 0.3em;
}

/* Original data table styling */
.original-data {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5em;
  table-layout: auto;
}
/*deleted-report-block*/
/* Table header cells */
.original-data th {
  background-color: #d9f0f4;
  text-align: left;
  padding: 8px 12px;
  vertical-align: top;
  width: 35%;
  color: #205072;
}

/* Table data cells */
.original-data td {
  border: 1px solid #b5d1d8;
  padding: 8px 12px;
  vertical-align: top;
  word-break: break-word;
  color: #333333;
}

/* Optional: alternate row colors for readability */
.original-data tr:nth-child(even) td {
  background-color: #f9fcfc;
}

/* Responsive tweaks for smaller screens */
@media (max-width: 768px) {
  .deleted-report-block {
    padding: 1em;
  }

  .original-data th, .original-data td {
    padding: 6px 8px;
  }
}
/* Hover effect for table rows */
.original-data tr:hover td {
  background-color: #e1f3f5;
}

/* Make table headers slightly bolder */
.original-data th {
  font-weight: 600;
}

/* Highlight each deleted report block on hover */
.deleted-report-block:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease-in-out;
}

/* Optional: smooth transition for all table cells */
.original-data th,
.original-data td {
  transition: background-color 0.2s ease-in-out;
}
/* Ethics Portal Case Update Button */
a.case-update-button.btn {
  background-color: #0074d9;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 5px;
  font-size: 1rem;
  margin-bottom: 10px;
  display: inline-block;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

a.case-update-button.btn:hover {
  background-color: #005fa3;
  transform: translateY(-2px);
}

a.case-update-button.btn:active {
  background-color: #004978;
  transform: translateY(0);
}