/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Variables and Reset */
:root {
  --bg-primary: #f0f4f8; /* Soft light blue/gray background */
  --bg-secondary: #ffffff; /* Card/Container white background */
  --bg-tertiary: #e2eaf4; /* Light blue-tinted input background */
  --text-primary: #0f172a; /* Navy slate primary text */
  --text-secondary: #334155; /* Slate secondary text */
  --text-muted: #64748b; /* Muted gray text */
  --color-primary: #0284c7; /* Sky blue primary */
  --color-primary-hover: #0369a1; /* Darker blue hover */
  --color-success: #10b981;
  --color-success-hover: #059669;
  --color-danger: #ef4444;
  --color-danger-hover: #dc2626;
  --color-warning: #f59e0b;
  --color-warning-hover: #d97706;
  --border-color: #cbd5e1; /* Slate border color */
  --border-color-light: #e2e8f0;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  
  --shadow-sm: 0 2px 4px rgba(2, 132, 199, 0.04);
  --shadow-md: 0 4px 20px -2px rgba(15, 23, 42, 0.08), 0 2px 8px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 10px 10px -5px rgba(15, 23, 42, 0.04);
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Button & Inputs Styles */
button, input, select, textarea {
  font-family: inherit;
}

input[type="text"],
input[type="number"],
input[type="date"],
input[type="password"],
select,
textarea {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  padding: 0.55rem 0.85rem;
  font-size: 0.875rem;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  width: 100%;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

input:disabled, select:disabled, textarea:disabled {
  opacity: 0.7;
  background-color: #f8fafc;
  cursor: not-allowed;
}

button {
  background-color: var(--color-primary);
  border: none;
  border-radius: 8px;
  color: #ffffff;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.55rem 1.25rem;
  transition: background-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

button:hover {
  background-color: var(--color-primary-hover);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

button:active {
  transform: scale(0.98);
}

button.secondary {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

button.secondary:hover {
  background-color: rgba(2, 132, 199, 0.05);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

button.danger {
  background-color: var(--color-danger);
}
button.danger:hover {
  background-color: var(--color-danger-hover);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

/* App Container and Layout */
.app-container {
  display: flex;
  min-height: 100vh;
}

.login-container {
  align-items: center;
  background: radial-gradient(circle at center, #bae6fd 0%, #0284c7 100%); /* Colorful radial blue gradient */
  display: flex;
  justify-content: center;
  min-height: 100vh;
  width: 100vw;
}

.login-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color-light);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 3rem;
  width: 100%;
  max-width: 440px;
}

.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-header h1 {
  font-size: 2.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, #0284c7 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.05em;
  margin-bottom: 0.25rem;
  display: inline-block;
}

.login-header p {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
  color: var(--text-secondary);
}

/* Sidebar Navigation (Vibrant Slate-Blue to Deep-Indigo Gradient) */
.sidebar {
  background: linear-gradient(180deg, #1e3a8a 0%, #0f172a 100%);
  width: 260px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  box-shadow: 4px 0 24px rgba(15, 23, 42, 0.2);
  z-index: 5;
}

.sidebar-brand {
  padding: 1.75rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-brand h2 {
  font-size: 1.85rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.05em;
}

.sidebar-nav {
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-grow: 1;
}

.nav-item {
  align-items: center;
  background: transparent;
  border: none;
  border-radius: 10px;
  color: #cbd5e1;
  display: flex;
  justify-content: flex-start; /* Aligns text & icons to the left */
  gap: 0.75rem;
  padding: 0.85rem 1.15rem;
  text-align: left;
  transition: all var(--transition-fast);
  width: 100%;
  font-size: 0.9rem;
  font-weight: 500;
}

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

.nav-item.active {
  background-color: #38bdf8;
  color: #0f172a;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.4);
}

.main-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  overflow-x: hidden;
}

.header {
  align-items: center;
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color-light);
  display: flex;
  height: 70px;
  justify-content: space-between;
  padding: 0 2.5rem;
}

.header-title h2 {
  font-size: 1.65rem;
  font-weight: 800;
  color: #0f172a;
  background: linear-gradient(90deg, rgba(2, 132, 199, 0.1) 0%, rgba(2, 132, 199, 0) 100%);
  padding: 0.45rem 1.5rem;
  border-left: 4px solid var(--color-primary);
  border-radius: 4px;
  letter-spacing: -0.02em;
}

.header-actions {
  align-items: center;
  display: flex;
  gap: 1.5rem;
}

.user-profile {
  position: relative;
}

.user-profile-btn {
  align-items: center;
  display: flex;
  gap: 0.5rem;
  color: var(--text-primary);
  font-weight: 600;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
}

.user-avatar {
  background-color: #bae6fd;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--color-primary-hover);
  border: 1px solid #7dd3fc;
}

.user-dropdown {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color-light);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  position: absolute;
  right: 0;
  top: calc(100% + 5px);
  width: 150px;
  z-index: 10;
  padding: 0.35rem;
  display: none;
}

.user-dropdown.open {
  display: block;
}

.user-dropdown button {
  width: 100%;
  text-align: left;
  background: transparent;
  color: var(--color-danger);
  padding: 0.6rem 0.85rem;
  border-radius: 6px;
  font-weight: 500;
  box-shadow: none;
}

.user-dropdown button:hover {
  background-color: rgba(239, 68, 68, 0.08);
  box-shadow: none;
}

/* Page Body and Layout Elements */
.content-body {
  padding: 2.5rem;
  flex-grow: 1;
  overflow-y: auto;
  height: calc(100vh - 70px);
}

/* Summary Stat Cards - Premium Colored Gradients */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.stat-card {
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  border: 1px solid transparent;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* Vibrant Blue Theme for All Shipments */
.stat-card.all {
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  border-color: #7dd3fc;
}
.stat-card.all .stat-title { color: #0369a1; }
.stat-card.all .stat-value { color: #0284c7; }

/* Vibrant Indigo Theme for Ongoing */
.stat-card.ongoing {
  background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
  border-color: #a5b4fc;
}
.stat-card.ongoing .stat-title { color: #4338ca; }
.stat-card.ongoing .stat-value { color: #4f46e5; }

/* Vibrant Green Theme for Completed */
.stat-card.complete {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  border-color: #6ee7b7;
}
.stat-card.complete .stat-title { color: #047857; }
.stat-card.complete .stat-value { color: #10b981; }

/* Vibrant Red Theme for Demurrage */
.stat-card.demurrage {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  border-color: #fca5a5;
}
.stat-card.demurrage .stat-title { color: #b91c1c; }
.stat-card.demurrage .stat-value { color: #ef4444; }

.stat-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat-value {
  font-size: 2.25rem;
  font-weight: 700;
}

/* 14 Shipping Steps Section */
.process-section {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color-light);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-md);
}

.process-header {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color-light);
  padding-bottom: 0.85rem;
}

.process-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.step-card {
  align-items: center;
  border: 1px solid var(--border-color-light);
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  transition: all var(--transition-fast);
}

.steps-grid > :nth-child(5n+1) {
  background-color: #f0f9ff;
  border-color: #bae6fd;
}
.steps-grid > :nth-child(5n+1):hover {
  background-color: #e0f2fe;
  border-color: #38bdf8;
}
.steps-grid > :nth-child(5n+2) {
  background-color: #f5f3ff;
  border-color: #ddd6fe;
}
.steps-grid > :nth-child(5n+2):hover {
  background-color: #e0e7ff;
  border-color: #818cf8;
}
.steps-grid > :nth-child(5n+3) {
  background-color: #f0fdf4;
  border-color: #bbf7d0;
}
.steps-grid > :nth-child(5n+3):hover {
  background-color: #d1fae5;
  border-color: #34d399;
}
.steps-grid > :nth-child(5n+4) {
  background-color: #fffbeb;
  border-color: #fde68a;
}
.steps-grid > :nth-child(5n+4):hover {
  background-color: #fef3c7;
  border-color: #fbbf24;
}
.steps-grid > :nth-child(5n+5) {
  background-color: #fff1f2;
  border-color: #fecdd3;
}
.steps-grid > :nth-child(5n+5):hover {
  background-color: #ffe4e6;
  border-color: #fda4af;
}

.step-card:hover {
  border-color: var(--color-primary);
  background-color: rgba(2, 132, 199, 0.05);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.1);
}

.step-info {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.step-number {
  background-color: #e2e8f0;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.step-card:hover .step-number {
  background-color: var(--color-primary);
  color: #ffffff;
}

.step-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.step-count {
  background-color: rgba(2, 132, 199, 0.1);
  border: 1px solid rgba(2, 132, 199, 0.2);
  border-radius: 6px;
  color: var(--color-primary);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.2rem 0.75rem;
  transition: all var(--transition-fast);
}

.step-card:hover .step-count {
  background-color: var(--color-primary);
  color: #ffffff;
}

/* Shipment Details Table Section */
.shipments-section {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color-light);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.section-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.section-top h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.search-bar {
  max-width: 320px;
  width: 100%;
}

.tab-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color-light);
  padding-bottom: 0.75rem;
}

.tab-btn {
  background: transparent;
  color: var(--text-secondary);
  border-radius: 8px;
  padding: 0.5rem 1rem;
  box-shadow: none;
  font-weight: 500;
}

.tab-btn:hover {
  background-color: #f1f5f9;
  box-shadow: none;
  color: var(--text-primary);
}

.tab-btn.active {
  background-color: #e0f2fe;
  color: var(--color-primary);
  font-weight: 600;
  box-shadow: none;
}

/* Table styling */
.table-container {
  overflow-x: auto;
  width: 100%;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}

th {
  background-color: #f8fafc;
  border-bottom: 1px solid var(--border-color-light);
  color: var(--text-muted);
  font-weight: 700;
  padding: 0.85rem 1.25rem;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

td {
  border-bottom: 1px solid var(--border-color-light);
  padding: 1rem 1.25rem;
  color: var(--text-primary);
  vertical-align: middle;
}

tr:hover td {
  background-color: rgba(2, 132, 199, 0.025);
}

.ship-ref-tag {
  color: var(--color-primary);
  font-weight: 700;
  background-color: #e0f2fe;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.8rem;
  display: inline-block;
  border: 1px solid #bae6fd;
}

/* Modal Popup Window Styles */
.modal-overlay {
  align-items: center;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: none;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100;
}

.modal-overlay.open {
  display: flex;
}

.modal-content {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color-light);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  width: 90%;
  max-width: 720px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  animation: modalEnter 0.2s ease-out;
}

@keyframes modalEnter {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.75rem;
  line-height: 1;
  padding: 0.25rem;
  display: flex;
  align-items: center;
}

.close-btn:hover {
  color: var(--color-danger);
}

.modal-body {
  padding: 1.75rem;
  overflow-y: auto;
  flex-grow: 1;
}

/* Forms and Inputs */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.form-actions {
  margin-top: 2rem;
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

/* Detail View Container in main body */
.detail-view-container {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color-light);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.detail-view-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--border-color-light);
  padding-bottom: 1rem;
}

.detail-view-header h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
}

.detail-tabs {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-color-light);
}

.detail-tab-btn {
  background: transparent;
  color: var(--text-muted);
  border-radius: 0;
  border-bottom: 3px solid transparent;
  padding: 0.75rem 0.25rem;
  font-weight: 600;
  box-shadow: none;
  font-size: 0.95rem;
}

.detail-tab-btn:hover {
  color: var(--color-primary);
  box-shadow: none;
}

.detail-tab-btn.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  box-shadow: none;
}

/* Detail view content grids */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 1.5rem;
}

.detail-item {
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 0.75rem;
}

.detail-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.detail-value-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  background-color: rgba(2, 132, 199, 0.03); /* Very light blue background */
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  display: inline-block;
}

/* Process workflows & Timelines */
.process-updater {
  background-color: #f8fafc;
  border: 1px solid var(--border-color-light);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.process-updater-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: flex-end;
}

.updater-actions {
  grid-column: span 3;
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}

.timeline {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-left: 2.5rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 10px;
  width: 2px;
  height: calc(100% - 20px);
  background-color: var(--border-color);
}

.timeline-item {
  position: relative;
  margin-bottom: 1.75rem;
  opacity: 0.65;
}

.timeline-item.completed {
  opacity: 1;
}

.timeline-item.current {
  opacity: 1;
}

.timeline-dot {
  position: absolute;
  left: -2.5rem;
  top: 2px;
  background-color: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  z-index: 2;
  transition: all var(--transition-fast);
}

.timeline-item.completed .timeline-dot {
  background-color: var(--color-success);
  border-color: var(--color-success);
  color: #ffffff;
}

.timeline-item.current .timeline-dot {
  background-color: #e0f2fe;
  border-color: var(--color-primary);
  color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.15);
}

.timeline-content {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 0.25rem 0.5rem;
}

.timeline-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
}

.timeline-step-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.timeline-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.timeline-comment {
  font-size: 0.875rem;
  color: var(--text-secondary);
  background-color: rgba(15, 23, 42, 0.03); /* Very light slate background */
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  margin-top: 0.35rem;
  display: inline-block;
}

/* Attachments and file slots layout */
.attachment-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.attachment-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--border-color-light);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  background-color: #f8fafc;
}

.attachment-info-col {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-grow: 1;
}

.attachment-type {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  min-width: 120px;
}

.attachment-status-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  text-transform: uppercase;
}

.attachment-status-badge.accepted {
  background-color: #d1fae5;
  color: #065f46;
}

.attachment-status-badge.required {
  background-color: #fee2e2;
  color: #991b1b;
}

.attachment-file-details {
  font-size: 0.875rem;
  background-color: rgba(2, 132, 199, 0.03); /* Very light blue background */
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
  border: 1px solid rgba(2, 132, 199, 0.1);
  display: inline-block;
}

.attachment-file-details a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
}

.attachment-file-details a:hover {
  text-decoration: underline;
}

.upload-btn-wrapper {
  position: relative;
  overflow: hidden;
  display: inline-block;
}

.upload-btn-wrapper input[type=file] {
  font-size: 100px;
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  cursor: pointer;
}

.add-custom-attachment {
  border-top: 1px solid var(--border-color-light);
  margin-top: 2rem;
  padding-top: 1.5rem;
}

.add-custom-attachment h4 {
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 700;
}

.custom-upload-form {
  display: flex;
  gap: 1rem;
  align-items: center;
  background-color: #f0fdf4;
  border: 1px dashed var(--color-success);
  padding: 1.25rem;
  border-radius: 12px;
}

/* Alert notifications styles */
.alert-card {
  border-radius: 12px;
  padding: 1.25rem 1.75rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast);
}

.alert-card:hover {
  transform: translateX(2px);
}

.alert-card.high {
  background-color: #fef2f2;
  border-color: #fca5a5;
  color: #991b1b;
}

.alert-card.high h4 { color: #991b1b; }

.alert-card.medium {
  background-color: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}

.alert-card.medium h4 { color: #92400e; }

.alert-text h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.alert-text p {
  font-size: 0.85rem;
  opacity: 0.9;
  background-color: rgba(255, 255, 255, 0.65); /* Soft transparent background */
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  margin-top: 0.3rem;
  display: inline-block;
}

/* Report Summary Listing */
.report-summary-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
  background-color: #f8fafc;
  padding: 1.25rem;
  border-radius: 12px;
}

.report-summary-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}

.report-summary-label {
  color: var(--text-secondary);
  font-weight: 500;
}

.report-summary-value {
  font-weight: 700;
  color: var(--text-primary);
}
