/* Gloat Compliance Center - Professional Modern Design */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Gloat Brand Colors */
  --primary-color: #D52839;
  --primary-light: #f8d7da;
  --primary-dark: #a8202c;
  --secondary-color: #426671;
  --secondary-dark: #22333B;
  --accent-color: #ffffff;
  
  /* Extended Palette */
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  
  /* Status Colors */
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --error-color: #ef4444;
  --info-color: #3b82f6;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  
  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  
  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Modal Fixes for Stability */
.modal {
  z-index: 1055 !important;
}

.modal-backdrop {
  z-index: 1050 !important;
}

.modal-dialog {
  pointer-events: auto;
  z-index: 1056 !important;
}

.modal-dialog-centered {
  min-height: calc(100% - 1rem);
}

/* Prevent modal flickering on hover */
.modal-content {
  pointer-events: auto;
  position: relative;
  z-index: 1057 !important;
}

/* Ensure table responsiveness doesn't interfere with modals */
.table-responsive {
  position: relative;
  z-index: 1;
}

/* Button hover states */
.btn:hover {
  transform: none;
  z-index: auto;
}

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--gray-800);
  background-color: var(--white);
  font-size: 16px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Override Bootstrap Container */
.container {
  max-width: 1280px;
}

/* Navigation */
.navbar {
  background: var(--white);
  box-shadow: var(--shadow-md);
  padding: 1rem 0;
  border: none;
  border-bottom: 3px solid var(--primary-color);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--gray-900) !important;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.navbar-brand:hover {
  color: var(--primary-color) !important;
}

.navbar-brand .brand-logo {
  height: 40px;
  width: auto;
}

.navbar-nav .nav-link {
  color: var(--gray-700) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  border-radius: var(--radius);
  transition: all 0.2s ease;
  text-decoration: none;
}

.navbar-nav .nav-link:hover {
  background-color: var(--primary-light);
  color: var(--primary-color) !important;
}

/* Main Content */
main {
  min-height: calc(100vh - 140px);
  padding: 2rem 0;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--white) 0%, var(--accent-color) 100%);
  border-radius: var(--radius-xl);
  padding: 4rem 3rem;
  margin-bottom: 3rem;
  box-shadow: var(--shadow-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  opacity: 0.05;
  border-radius: 50%;
  transform: translate(50%, -50%);
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--gray-600);
  margin-bottom: 2rem;
  font-weight: 400;
}

.hero-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 2rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 2.5rem;
}

/* Cards */
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-2px);
}

.card-header {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  padding: 1.5rem;
  font-weight: 600;
  color: var(--gray-800);
}

.card-body {
  padding: 2rem;
}

.card-footer {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  padding: 1rem 1.5rem;
  color: var(--gray-600);
  font-size: 0.875rem;
}

/* Feature Cards */
.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  height: 100%;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

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

.feature-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
}

.feature-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
}

.feature-description {
  color: var(--gray-600);
  font-size: 0.875rem;
}

/* Report Cards */
.report-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  height: 100%;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.report-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-color);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.report-card:hover::before {
  transform: scaleX(1);
}

.report-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-2px);
}

/* Modern Report Card Styling */
.report-card-modern {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 1rem;
  height: 100%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.report-card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.report-card-modern:hover::before {
  opacity: 1;
}

.report-card-modern:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transform: translateY(-4px);
  border-color: var(--gray-300);
}

.report-header-modern {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  gap: 0.75rem;
}

.report-title-section {
  flex: 1;
}

.report-title-modern {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0 0 0.25rem 0;
  line-height: 1.3;
}

.report-description-modern {
  color: var(--gray-600);
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.report-badges-modern {
  flex-shrink: 0;
}

.certification-badge {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  min-width: 60px;
}

.certification-badge .badge-text {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}

.certification-badge .badge-subtext {
  display: block;
  font-size: 0.625rem;
  font-weight: 500;
  opacity: 0.9;
  line-height: 1;
}

.iso-badge {
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
}

.soc-badge {
  background: linear-gradient(135deg, #059669, #047857) !important;
}

.pentest-badge {
  background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
}

.report-meta-modern {
  margin: 0.75rem 0;
  padding: 0.5rem;
  background: var(--gray-50);
  border-radius: 8px;
  border-left: 3px solid var(--primary-color);
}

.audit-date-modern {
  color: var(--gray-700);
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.audit-date-modern i {
  color: var(--primary-color);
}

.report-permissions {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.permission-badge {
  background: var(--gray-100);
  color: var(--gray-700);
  font-size: 0.625rem;
  font-weight: 500;
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  border: 1px solid transparent;
}

.view-badge {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  color: #1d4ed8;
  border: 1px solid #93c5fd;
}

.download-badge {
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  color: #166534;
  border: 1px solid #86efac;
}

.report-actions-modern {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
}

.btn-primary-modern {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
  flex: 1;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(213, 40, 57, 0.2);
  border: 1px solid transparent;
}

.btn-primary-modern:hover {
  background: linear-gradient(135deg, var(--primary-dark), #8b1a24);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(213, 40, 57, 0.4);
  color: white;
  text-decoration: none;
  border-color: rgba(255, 255, 255, 0.1);
}

.btn-success-modern {
  background: linear-gradient(135deg, var(--success-color), #059669);
  color: white;
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
  flex: 1;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
  border: 1px solid transparent;
}

.btn-success-modern:hover {
  background: linear-gradient(135deg, #059669, #047857);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
  color: white;
  text-decoration: none;
  border-color: rgba(255, 255, 255, 0.1);
}

.section-title {
  color: var(--gray-900);
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-title i {
  color: var(--primary-color);
}

.section-divider {
  border: none;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color) 0%, transparent 100%);
  margin: 0.5rem 0 1.5rem 0;
}

/* Modern NDA Styling */
.nda-card-modern {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.nda-card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 16px 16px 0 0;
}

.nda-header-modern {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--gray-100);
}

.nda-icon-modern {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 12px rgba(213, 40, 57, 0.3);
  flex-shrink: 0;
}

.nda-title-section {
  flex: 1;
}

.nda-title-modern {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 0 0.25rem 0;
  line-height: 1.2;
}

.nda-subtitle-modern {
  color: var(--gray-600);
  font-size: 1rem;
  margin: 0;
  font-weight: 500;
}

.nda-badge-modern {
  flex-shrink: 0;
}

.required-badge {
  background: linear-gradient(135deg, var(--warning-color), #e8a317);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.nda-alert-modern {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  border: 1px solid #93c5fd;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nda-alert-modern i {
  color: #1d4ed8;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.alert-content {
  flex: 1;
}

.alert-content strong {
  color: #1e40af;
  font-size: 1.125rem;
  display: block;
  margin-bottom: 0.25rem;
}

.alert-content p {
  color: #1e40af;
  margin: 0;
  font-size: 0.925rem;
}

.nda-content-modern {
  margin-bottom: 2rem;
}

.nda-scroll-container {
  max-height: 400px;
  overflow-y: auto;
  background: var(--gray-50);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--primary-color);
}

.nda-scroll-container h1,
.nda-scroll-container h2,
.nda-scroll-container h3,
.nda-scroll-container h4,
.nda-scroll-container h5,
.nda-scroll-container h6 {
  color: var(--gray-900);
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.nda-scroll-container h1:first-child,
.nda-scroll-container h2:first-child,
.nda-scroll-container h3:first-child {
  margin-top: 0;
}

.nda-scroll-container p {
  color: var(--gray-700);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.nda-scroll-container ul,
.nda-scroll-container ol {
  color: var(--gray-700);
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.nda-scroll-container ol {
  list-style-type: decimal !important;
  counter-reset: section;
}

.nda-scroll-container ol[style*="lower-alpha"] {
  list-style-type: lower-alpha !important;
}

.nda-scroll-container ol[style*="lower-roman"] {
  list-style-type: lower-roman !important;
}

.nda-scroll-container ol.lower-alpha {
  list-style-type: lower-alpha !important;
}

.nda-scroll-container ol.lower-roman {
  list-style-type: lower-roman !important;
}

.nda-scroll-container ul {
  list-style-type: disc !important;
}

.nda-scroll-container li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
  display: list-item !important;
}

/* Ensure proper list styling is not overridden */
.nda-scroll-container ol,
.nda-scroll-container ul {
  list-style-position: outside !important;
}

.nda-scroll-container ol li::marker,
.nda-scroll-container ul li::marker {
  color: var(--primary-color);
  font-weight: 600;
}

/* Force override any conflicting styles */
.nda-scroll-container ol[style*="lower-alpha"] li {
  list-style-type: lower-alpha !important;
}

.nda-scroll-container ol[style*="lower-roman"] li {
  list-style-type: lower-roman !important;
}

/* Specific classes for NDA lists */
.nda-alpha-list {
  list-style-type: lower-alpha !important;
  list-style-position: outside !important;
  padding-left: 2rem !important;
  margin-left: 0 !important;
  counter-reset: alpha-counter;
}

.nda-alpha-list li {
  list-style-type: lower-alpha !important;
  display: list-item !important;
  list-style-position: outside !important;
  margin-left: 0 !important;
  padding-left: 0.5rem !important;
  counter-increment: alpha-counter;
  position: relative;
}

.nda-alpha-list li::before {
  content: counter(alpha-counter, lower-alpha) ". ";
  position: absolute;
  left: -1.5rem;
  font-weight: normal;
  color: inherit;
}

.nda-roman-list {
  list-style-type: lower-roman !important;
  list-style-position: outside !important;
  padding-left: 2rem !important;
  margin-left: 0 !important;
  counter-reset: roman-counter;
}

.nda-roman-list li {
  list-style-type: lower-roman !important;
  display: list-item !important;
  list-style-position: outside !important;
  margin-left: 0 !important;
  padding-left: 0.5rem !important;
  counter-increment: roman-counter;
  position: relative;
}

.nda-roman-list li::before {
  content: counter(roman-counter, lower-roman) ". ";
  position: absolute;
  left: -1.5rem;
  font-weight: normal;
  color: inherit;
}

/* Force list markers to show - override any Bootstrap interference */
.nda-scroll-container ol {
  list-style: none !important;
}

.nda-scroll-container .nda-alpha-list {
  list-style: none !important;
  list-style-type: none !important;
}

.nda-scroll-container .nda-roman-list {
  list-style: none !important;
  list-style-type: none !important;
}

.nda-scroll-container .nda-alpha-list li,
.nda-scroll-container .nda-roman-list li {
  list-style: none !important;
  list-style-type: none !important;
}

.nda-scroll-container .nda-alpha-list li::marker,
.nda-scroll-container .nda-roman-list li::marker {
  display: none !important;
}

.nda-form-modern {
  background: var(--gray-50);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid var(--gray-200);
}

.signature-section-modern {
  margin-bottom: 2rem;
}

.signature-title-modern {
  color: var(--gray-900);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.signature-title-modern i {
  color: var(--primary-color);
}

.signature-container-modern {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  border: 2px solid var(--gray-200);
  transition: border-color 0.3s ease;
}

.signature-container-modern:hover {
  border-color: var(--primary-color);
}

.signature-canvas-modern {
  border: 2px dashed var(--gray-300);
  background-color: white;
  width: 100%;
  height: 200px;
  border-radius: 8px;
  cursor: crosshair;
}

.signature-controls-modern {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}

.btn-clear-modern {
  background: var(--gray-100);
  color: var(--gray-700);
  border: 1px solid var(--gray-300);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-clear-modern:hover {
  background: var(--gray-200);
  border-color: var(--gray-400);
}

.signature-hint-modern {
  color: var(--gray-500);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.agreement-section-modern {
  margin-bottom: 2rem;
}

.agreement-checkbox-modern {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  border: 2px solid var(--gray-200);
  transition: all 0.3s ease;
}

.agreement-checkbox-modern:hover {
  border-color: var(--primary-color);
  background: var(--primary-light);
}

.agreement-checkbox-modern input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--primary-color);
  margin: 0;
  flex-shrink: 0;
}

.agreement-text-modern {
  color: var(--gray-700);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
}

.submit-section-modern {
  text-align: center;
}

.btn-submit-modern {
  background: linear-gradient(135deg, var(--success-color), #059669);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 240px;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-submit-modern:hover:not(:disabled) {
  background: linear-gradient(135deg, #059669, #047857);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-submit-modern:disabled {
  background: var(--gray-300);
  color: var(--gray-500);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-submit-modern i {
  font-size: 1.25rem;
}

.report-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.report-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0;
}

.report-badges {
  display: flex;
  gap: 0.5rem;
}

.report-badge {
  width: 60px;
  height: 60px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
}

.report-badge:hover {
  transform: scale(1.05);
}

.report-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.report-badge.iso { 
  background: linear-gradient(135deg, #007acc 0%, #005fa3 100%);
  border: 2px solid #004d82;
}

.report-badge.soc2 { 
  background: linear-gradient(135deg, #00d4aa 0%, #00a17c 100%);
  border: 2px solid #007a5a;
}

.report-badge.pentest { 
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
  border: 2px solid #c44536;
}

.report-description {
  color: var(--gray-600);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.report-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--gray-50);
  border-radius: var(--radius);
}

.report-date {
  color: var(--gray-600);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.report-actions {
  display: flex;
  gap: 0.75rem;
}

/* Buttons */
.btn {
  font-family: var(--font-family);
  font-weight: 500;
  border-radius: var(--radius);
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  line-height: 1.4;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #8b1a23 100%);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
  color: var(--white);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, var(--secondary-dark) 0%, #1a2a2f 100%);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
  color: var(--white);
}

.btn-success {
  background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-success:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
  color: var(--white);
}

.btn-outline-primary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline-primary:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* Forms */
.form-control {
  font-family: var(--font-family);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  background: var(--white);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(213, 40, 57, 0.1);
  outline: none;
}

.form-label {
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
  display: block;
}

.form-check-input {
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-sm);
}

.form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.form-check-input:focus {
  box-shadow: 0 0 0 3px rgba(213, 40, 57, 0.1);
}

.form-text {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-top: 0.5rem;
}

/* Signature Canvas */
.signature-container {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.signature-canvas {
  border: 2px dashed var(--gray-300);
  background: var(--white);
  border-radius: var(--radius);
  transition: border-color 0.2s ease;
}

.signature-canvas:hover {
  border-color: var(--primary-color);
}

.signature-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-200);
}

/* NDA Content */
.nda-content {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--gray-700);
}

.nda-content h1, .nda-content h2, .nda-content h3 {
  color: var(--gray-900);
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.nda-content p {
  margin-bottom: 1rem;
}

/* Removed conflicting .nda-content list styles - using .nda-scroll-container instead */

/* Badges */
.badge {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 0.75rem;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.badge-primary {
  background: var(--primary-color);
  color: var(--white);
}

.badge-success {
  background: var(--success-color);
  color: var(--white);
}

.badge-secondary {
  background: var(--secondary-color);
  color: var(--white);
}

.badge-warning {
  background: var(--warning-color);
  color: var(--white);
}

/* Alerts */
.alert {
  border: none;
  border-radius: var(--radius-lg);
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid;
}

.alert-success {
  background: #f0fdf4;
  border-left-color: var(--success-color);
  color: #166534;
}

.alert-danger {
  background: #fef2f2;
  border-left-color: var(--error-color);
  color: #991b1b;
}

.alert-warning {
  background: #fffbeb;
  border-left-color: var(--warning-color);
  color: #92400e;
}

.alert-info {
  background: #eff6ff;
  border-left-color: var(--info-color);
  color: #1e40af;
}

/* Steps/Process */
.step-container {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
}

.step-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
}

.step-content h6 {
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.step-content p {
  color: var(--gray-600);
  font-size: 0.875rem;
  margin: 0;
}

/* Footer */
.footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: 3rem 0 2rem;
  margin-top: auto;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h5 {
  color: var(--white);
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
  color: var(--gray-400);
  text-decoration: none;
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer-section a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  border-top: 1px solid var(--gray-700);
  padding-top: 2rem;
  text-align: center;
  color: var(--gray-500);
  font-size: 0.875rem;
}

/* Gloat Logo */
.gloat-logo {
  height: 32px;
  width: auto;
}

.gloat-logo-large {
  height: 60px;
  width: auto;
  margin: 0 auto;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Logo container for pages */
.logo-container {
  text-align: center;
  margin-bottom: 2rem;
}

.logo-container .gloat-logo-large {
  transition: transform 0.3s ease;
}

.logo-container .gloat-logo-large:hover {
  transform: scale(1.05);
}

/* Security Icons */
.security-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.25rem;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--gray-500);
}

.empty-state-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: var(--gray-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-size: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section {
    padding: 2rem 1.5rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .report-actions {
    flex-direction: column;
  }
  
  .btn {
    justify-content: center;
  }
}

/* Custom utilities */
.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }
.bg-secondary { background-color: var(--secondary-color) !important; }
.border-primary { border-color: var(--primary-color) !important; }

/* Report type specific styles */
.report-type-iso {
  border-left: 4px solid #007acc;
}

.report-type-soc2 {
  border-left: 4px solid #00d4aa;
}

.report-type-pentest {
  border-left: 4px solid #ff6b6b;
}

/* Compliance Badge Styles - Polished Design */
.compliance-main-card {
  overflow: hidden;
  border-radius: 12px !important;
  border: none !important;
}

.compliance-body {
  padding: 2rem 1.5rem;
  background: var(--white);
}

.compliance-badges-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  padding: 2rem 1rem;
  width: 100%;
}

.compliance-badge-item {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  transition: all 0.3s ease;
  box-shadow: none;
  flex: 1;
  min-width: 0;
  max-width: 250px;
  text-align: center;
  position: relative;
}

/* Force uniform logo sizing - override any external styles */
.compliance-badge-item img,
.compliance-logo-img {
  width: 60px !important;
  height: 60px !important;
  max-width: 60px !important;
  max-height: 60px !important;
  min-width: 60px !important;
  min-height: 60px !important;
  object-fit: contain !important;
  object-position: center !important;
  display: block !important;
  margin: 0 auto !important;
}

.compliance-badge-item:hover {
  transform: translateY(-4px);
  box-shadow: none;
  border-color: transparent;
}

.compliance-badge-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.compliance-logo-container {
  flex-shrink: 0;
  width: 60px !important;
  height: 60px !important;
  background: transparent;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0 auto 1rem auto;
  overflow: visible;
  position: relative;
  border: none;
  box-shadow: none;
}

.compliance-logo-img {
  width: 60px !important;
  height: 60px !important;
  object-fit: contain;
  object-position: center;
  max-width: 60px !important;
  max-height: 60px !important;
  position: relative;
  z-index: 1;
}

.compliance-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.compliance-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-800);
  line-height: 1.2;
}

.compliance-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: var(--success-color);
  color: white;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  width: fit-content;
}

.compliance-status-badge i {
  font-size: 0.75rem;
}

.compliance-footer {
  padding-top: 1rem;
  border-top: 1px solid var(--gray-100);
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .compliance-badges-grid {
    justify-content: space-around;
    gap: 1.5rem;
  }
  
  .compliance-badge-item {
    flex: 0 0 auto;
    min-width: 120px;
    max-width: 150px;
  }
  
  .compliance-logo-container {
    width: 50px !important;
    height: 50px !important;
  }
  
  .compliance-logo-img {
    width: 50px !important;
    height: 50px !important;
    max-width: 50px !important;
    max-height: 50px !important;
    min-width: 50px !important;
    min-height: 50px !important;
  }
  
  .compliance-title {
    font-size: 0.85rem;
  }
  
  .compliance-body {
    padding: 1.5rem 1rem;
  }
}

@media (max-width: 576px) {
  .compliance-badges-grid {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  
  .compliance-badge-item {
    flex: none;
    min-width: 140px;
    max-width: 200px;
  }
  
  .compliance-logo-container {
    width: 60px !important;
    height: 60px !important;
  }
  
  .compliance-logo-img {
    width: 60px !important;
    height: 60px !important;
    max-width: 60px !important;
    max-height: 60px !important;
    min-width: 60px !important;
    min-height: 60px !important;
  }
}

/* Customer Logos Section */
.customers-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 1rem 0.5rem;
  padding: 1.5rem 1rem;
  align-items: center;
  justify-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.customer-logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 0.25rem;
  transition: all 0.3s ease;
  text-align: center;
  height: 60px;
  width: 80px;
  max-width: 80px;
}

.customer-logo-item:hover {
  transform: translateY(-1px);
}

.customer-logo-img {
  width: 60px !important;
  height: 30px !important;
  max-width: 60px !important;
  max-height: 30px !important;
  min-width: 40px !important;
  min-height: 20px !important;
  object-fit: contain !important;
  object-position: center !important;
  display: block !important;
  margin: 0 auto 0.25rem auto !important;
  filter: grayscale(50%) opacity(0.7) !important;
  transition: all 0.3s ease !important;
}

.customer-logo-item:hover .customer-logo-img {
  transform: scale(1.05) !important;
  filter: grayscale(0%) opacity(1) !important;
}

.customer-logo-name {
  font-size: 0.6rem !important;
  font-weight: 400 !important;
  color: var(--gray-500) !important;
  margin: 0 !important;
  line-height: 1.1 !important;
  transition: color 0.3s ease !important;
  text-align: center !important;
  width: 100% !important;
  max-width: 80px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.customer-logo-item:hover .customer-logo-name {
  color: var(--primary-color) !important;
}

/* Mobile responsiveness for customer logos */
@media (max-width: 992px) {
  .customers-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 0.75rem 0.3rem;
  }
  
  .customer-logo-item {
    height: 50px;
    width: 70px;
    max-width: 70px;
    padding: 0.2rem;
  }
  
  .customer-logo-img {
    width: 50px !important;
    height: 25px !important;
    max-width: 50px !important;
    max-height: 25px !important;
  }
  
  .customer-logo-name {
    font-size: 0.55rem !important;
    max-width: 70px !important;
  }
}

@media (max-width: 768px) {
  .customers-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem 0.25rem;
    padding: 1rem 0.5rem;
  }
  
  .customer-logo-item {
    height: 45px;
    width: 60px;
    max-width: 60px;
    padding: 0.15rem;
  }
  
  .customer-logo-img {
    width: 45px !important;
    height: 22px !important;
    max-width: 45px !important;
    max-height: 22px !important;
    margin-bottom: 0.2rem !important;
  }
  
  .customer-logo-name {
    font-size: 0.5rem !important;
    max-width: 60px !important;
  }
}

@media (max-width: 480px) {
  .customers-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem 0.2rem;
    padding: 0.75rem 0.25rem;
  }
  
  .customer-logo-item {
    height: 40px;
    width: 50px;
    max-width: 50px;
    padding: 0.1rem;
  }
  
  .customer-logo-img {
    width: 40px !important;
    height: 20px !important;
    max-width: 40px !important;
    max-height: 20px !important;
    margin-bottom: 0.15rem !important;
  }
  
  .customer-logo-name {
    font-size: 0.45rem !important;
    max-width: 50px !important;
  }
}

/* ========================================
   NEW DASHBOARD LAYOUT
   ======================================== */

/* Dashboard Container */
.dashboard-container {
  display: flex;
  min-height: calc(100vh - 200px);
  gap: 0;
  background-color: var(--white);
}

/* Sidebar Navigation */
.dashboard-sidebar {
  width: 220px;
  background-color: var(--white);
  padding: 2rem 1rem;
  border-right: 1px solid var(--gray-200);
  flex-shrink: 0;
}

.sidebar-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 1.5rem;
  padding-left: 0.75rem;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  color: var(--gray-700);
  text-decoration: none;
  border-radius: var(--radius);
  transition: all 0.2s ease;
  font-weight: 500;
  font-size: 0.95rem;
}

.sidebar-link:hover {
  background-color: var(--gray-100);
  color: var(--gray-900);
}

.sidebar-link.active {
  background-color: var(--primary-light);
  color: var(--primary-color);
}

.sidebar-link i {
  font-size: 1rem;
  width: 20px;
}

/* Main Content Area */
.dashboard-main {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
  background-color: var(--white);
}

/* Top Bar */
.dashboard-topbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
}

/* Search Box */
.search-box {
  position: relative;
  width: 100%;
  max-width: 400px;
}

.search-box i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  font-size: 0.9rem;
}

.search-box input {
  width: 100%;
  padding: 0.65rem 1rem 0.65rem 2.75rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(213, 40, 57, 0.1);
}

/* Reports Content */
.reports-content {
  background-color: transparent;
  border-radius: var(--radius-lg);
  padding: 0;
}

/* Report Section */
.report-section {
  margin-bottom: 2.5rem;
}

.report-section:last-child {
  margin-bottom: 0;
}

.section-heading {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 1.25rem;
  padding-bottom: 0;
  border-bottom: none;
}

.subsection-heading {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  padding-left: 0.5rem;
  border-left: 3px solid var(--primary-color);
}

/* Reports Container - Bordered box for all reports */
.reports-container {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background-color: var(--white);
  padding: 0;
  margin-bottom: 2rem;
  overflow: hidden;
}

/* Section Group - Groups reports by section within a category */
.section-group {
  /* No border between section groups */
}

.section-group:last-child {
  border-bottom: none;
}

.section-group-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
  padding: 1rem 1.5rem;
  padding-top: 1.5rem;
  margin: 0;
  background-color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-top: none;
}

/* Reports List */
.reports-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Report Row */
.report-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #e8e8e8;
  background-color: var(--white);
  transition: all 0.2s ease;
}

.section-group:last-child .reports-list .report-row:last-child {
  border-bottom: none;
}

.report-row:hover {
  background-color: var(--gray-50);
}

.report-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 1;
}

.report-title {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--gray-900);
  margin: 0;
}

/* Button Styles */
.report-actions {
  display: flex;
  gap: 0.75rem;
}

.btn-view {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background-color: transparent;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  color: var(--gray-700);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-view:hover {
  background-color: var(--gray-900);
  border-color: var(--gray-900);
  color: var(--white);
}

.btn-view i {
  font-size: 0.875rem;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
}

.empty-state-icon {
  font-size: 4rem;
  color: var(--gray-300);
  margin-bottom: 1.5rem;
}

.empty-state h4 {
  color: var(--gray-700);
  margin-bottom: 1rem;
}

.empty-state p {
  color: var(--gray-500);
  max-width: 500px;
  margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 992px) {
  .dashboard-container {
    flex-direction: column;
  }

  .dashboard-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--gray-200);
  }

  .sidebar-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .dashboard-topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .search-box {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .report-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .report-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
  }

  .report-actions {
    width: 100%;
  }

  .btn-view {
    flex: 1;
    justify-content: center;
  }

  .dashboard-main {
    padding: 1rem;
  }

  .reports-content {
    padding: 1rem;
  }
}