/* Custom Theme for Pathology Regulations Presentation */

/* --- Consolidated Slide & Feature Styles --- */

/* --- Cards (from cards.css) --- */
.regulations-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 20px;
  width: 100%;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}
.regulation-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}
.regulation-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}
.card-header {
  padding: 8px 10px;
  color: white;
  font-weight: bold;
}
.card-header h3 {
  margin: 0;
  font-size: 0.9em;
  color: white !important;
}
.card-body {
  padding: 8px 10px;
  font-size: 0.7em;
}
.card-body p {
  margin: 0;
}
.hipaa-header { background-color: var(--hipaa-color); }
.clia-header { background-color: var(--clia-color); }
.fda-header { background-color: var(--fda-color); }
.cap-header { background-color: var(--cap-color); }
.nist-header { background-color: var(--nist-color); }
.insurance-header { background-color: var(--insurance-color); }
.internal-header { background-color: var(--internal-color); }
@media (max-width: 900px) { .regulations-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .regulations-grid { grid-template-columns: 1fr; } }
.workflow-comparison { display: flex; justify-content: space-between; gap: 30px; margin-top: 20px; }

/* --- Deidentification (from deidentification.css) --- */
.deidentification-slide { position: relative; background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%); }
.deidentification-container { max-width: 1000px; margin: 0 auto; padding: 0 10px; }
.methods-container { display: flex; justify-content: space-between; gap: 30px; }
.method-card { flex: 1; background-color: white; border-radius: 10px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); padding: 20px; position: relative; overflow: hidden; transition: all 0.3s ease; }
.method-card:hover { transform: translateY(-5px); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }
.method-header { font-size: 0.6em; font-weight: bold; color: var(--primary-color); border-bottom: 2px solid var(--secondary-color); }
.method-body { font-size: 0.5em; }
.method-body ul { padding-left: 15px; margin-top: 5px; column-count: 2; column-gap: 10px; }
.method-body li { margin-bottom: 3px; position: relative; font-size: 0.45em; line-height: 1.2; }
.data-example { margin-top: 20px; background-color: #f8f9fa; border-radius: 8px; padding: 15px; font-family: monospace; font-size: 0.6em; position: relative; }
.data-example.redacted { background-color: #fff8f8; }
.data-field { display: flex; justify-content: space-between; margin-bottom: 5px; padding: 3px 0; }
.data-field .field-name { font-weight: bold; color: #555; }
.data-field .field-value { color: #333; }
.data-field.redacted .field-value { color: #e74c3c; text-decoration: line-through; }
.data-field.modified .field-value { color: #3498db; font-style: italic; }

/* --- Typography & Font Settings --- */
/* Single source of truth for font sizes and typography */
.reveal h1 { 
  font-size: 1.4em; 
  font-weight: 700;
  margin-bottom: 0.3em;
}

.reveal h2 { 
  font-size: 1.1em; 
  font-weight: 600;
  margin-bottom: 0.8em;
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 0.2em;
  display: inline-block;
}

.reveal h3 { 
  font-size: 1em; 
  font-weight: 500;
  margin-bottom: 0.5em;
}

.reveal h4, .reveal h5, .reveal h6 {
  font-size: 0.9em;
  font-weight: 500;
  margin-bottom: 0.5em;
}

.reveal ul li { 
  font-size: 0.9em; 
  margin-bottom: 0.7em; 
}

.reveal p { 
  font-size: 0.9em; 
  margin-bottom: 1em;
}
.regulation-card .card-header h3 { font-size: 1.2em !important; }
.regulation-card .card-body p { font-size: 0.9em; }
.fda-approval-slide h2, .ai-regulation-slide h2, .analytics-slide h2, .ai-decision-slide h2 { font-size: 1.5em !important; }
.fda-approval-slide .info-box h3, .ai-regulation-slide .info-box h3, .analytics-slide .info-box h3, .ai-decision-slide .info-box h3 { font-size: 0.8em !important; }
.fda-approval-slide .info-box li, .ai-regulation-slide .info-box li, .analytics-slide .info-box li, .ai-decision-slide .info-box li { font-size: 0.6em !important; margin-bottom: 4px !important; line-height: 1.2 !important; }
.fda-approval-slide .slide-footer p, .ai-regulation-slide .slide-footer p, .analytics-slide .slide-footer p, .ai-decision-slide .slide-footer p { font-size: 0.5em !important; }
.analytics-slide .quote-box p { font-size: 0.55em !important; line-height: 1.2 !important; }
.animate-title { font-size: 1.9em !important; }
.animate-subtitle { font-size: 1.2em !important; }
.presenter-box p { font-size: 1.15em; }
.qa-text { font-size: 1.35em; }
.regulations-grid { gap: 18px; }
.card-body { padding: 14px; }

/* --- Q&A Slide (from qa-slide.css) --- */
.qa-slide { color: #2c3e50; }
.qa-slide h2 { color: #2c3e50 !important; border-bottom-color: #3498db; margin-bottom: 40px; }
.qa-container { display: flex; flex-direction: column; align-items: center; justify-content: center; max-width: 700px; margin: 0 auto; background-color: rgba(255, 255, 255, 0.9); backdrop-filter: blur(5px); border-radius: 12px; padding: 30px; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); }
.qa-icon { margin-bottom: 20px; animation: pulse 2s infinite; }
.qa-text { font-size: 1.4em; text-align: center; margin-bottom: 30px; line-height: 1.5; }
.contact-info { margin-top: 20px; padding: 15px 30px; background-color: rgba(255, 255, 255, 0.15); border-radius: 8px; text-align: center; }
.contact-info p { margin: 0; }
.contact-info strong { color: #2c3e50; font-weight: bold; }
@keyframes pulse { 0% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.1); opacity: 0.8; } 100% { transform: scale(1); opacity: 1; } }

/* --- Takeaways (from takeaways.css) --- */
.takeaways-slide { position: relative; }
.takeaways-container { max-width: 900px; margin: 10px auto; padding: 10 20px; }
.takeaway-item { background-color: white; border-radius: 8px; padding: 10px 15px 10px 35px; margin-bottom: 8px; box-shadow: 0 3px 8px rgba(0,0,0,0.08); transition: all 0.3s ease; position: relative; font-size: 0.6em; opacity: 0; text-align: left; line-height: 1.4; }
.takeaway-item.visible { opacity: 1; transform: translateX(0); }
.takeaway-item:before { content: "✓"; position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--secondary-color); font-weight: bold; font-size: 0.9em; }
.takeaway-item:hover { transform: translateX(10px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.takeaway-item.highlight { background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%); color: white; font-weight: bold; }
.takeaway-item.highlight:before { color: white; }
.fade-right { opacity: 0; transform: translateX(-30px); transition: all 0.8s ease; }
.fade-right.visible { opacity: 1; transform: translateX(0); }
.takeaway-item:nth-child(1) { transition-delay: 0.1s; }
.takeaway-item:nth-child(2) { transition-delay: 0.2s; }
.takeaway-item:nth-child(3) { transition-delay: 0.3s; }
.takeaway-item:nth-child(4) { transition-delay: 0.4s; }
.takeaway-item:nth-child(5) { transition-delay: 0.5s; }
.takeaway-item:nth-child(6) { transition-delay: 0.6s; }

/* --- Title Slide (from title-slide.css) --- */
.title-slide { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; height: 100%; color: white; text-align: center; overflow: hidden; }
.title-content { position: relative; z-index: 2; max-width: 90%; width: 90%; }
.slide-background-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: url('data:image/svg+xml;utf8,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="none"/><path d="M0 0L100 100M100 0L0 100" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></svg>'); background-size: 20px 20px; z-index: 1; }
.title-slide::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle at center, rgba(52,152,219,0.2) 0%, rgba(0,0,0,0) 70%); z-index: 0; }
.animate-title { font-size: 1.9em !important; margin-bottom: 0.3em !important; font-weight: 700 !important; text-shadow: 0 2px 5px rgba(0,0,0,0.3); opacity: 0; animation: fadeInDown 1s ease forwards; animation-delay: 0.5s; }
.animate-subtitle { font-size: 1.2em !important; margin-bottom: 1.5em !important; font-weight: 400 !important; opacity: 0; animation: fadeInUp 1s ease forwards; animation-delay: 1.2s; }
.presenter-box { background: linear-gradient(135deg, rgba(52, 152, 219, 0.7) 0%, rgba(41, 128, 185, 0.7) 100%); backdrop-filter: blur(5px); border-radius: 8px; padding: 15px 30px; margin-top: 20px; display: block; width: 100%; max-width: none; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); border: 1px solid rgba(255, 255, 255, 0.2); opacity: 0; animation: fadeIn 1s ease forwards; animation-delay: 1.8s; }
.presenter-box p { margin: 0; font-size: 1.2em; color: white; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* --- External Content (from external-content.css) --- */
.external-content-slide { background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%); }
.external-content-slide h2 { color: #2c3e50 !important; margin-bottom: 20px; }
.external-content-container { width: 90%; margin: 0 auto; background-color: rgba(255, 255, 255, 0.9); border-radius: 8px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); overflow: hidden; border: 1px solid #ddd; }
.external-content-header { display: flex; align-items: center; padding: 15px 20px; background-color: #f1f5f9; border-bottom: 1px solid #ddd; }
.agency-logo { font-size: 1.2em; font-weight: bold; padding: 8px 12px; margin-right: 15px; background-color: #2c3e50; color: white; border-radius: 4px; }
.external-content-header h3 { margin: 0; color: #2c3e50; }
.external-content-body { padding: 10px; }
.external-content-body h4 { margin-top: 0; color: #2c3e50; border-bottom: 1px solid #eee; padding-bottom: 4px; margin-bottom: 5px; font-size: 0.7em; }
.external-content-body ul { margin-left: 10px; margin-top: 5px; padding-left: 10px; }
.external-content-body li { margin-bottom: 3px; position: relative; font-size: 0.6em; line-height: 1.2; }
.external-source { font-size: 0.8em; color: #666; text-align: right; margin-top: 15px; padding-top: 8px; border-top: 1px dashed #ddd; }
.external-source a { color: #3498db; text-decoration: none; }
.external-source a:hover { text-decoration: underline; }
.permitted-uses-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; margin-bottom: 15px; }
.permitted-use-card { background-color: white; border-radius: 6px; }

/* --- Breach Visualization (from breach-visualization.css) --- */
.breach-data-slide { background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%); }
.breach-data-slide h2 { margin-bottom: 20px; color: #2c3e50; font-size: 1.4em; }
.breach-data-slide h3 { font-size: 1.2em; margin: 0 0 15px 0; color: #2c3e50; text-align: center; }
.breach-charts-container { width: 100%; height: calc(100% - 60px); display: flex; flex-direction: column; justify-content: center; margin-top: 5px; }
.breach-row { display: flex; justify-content: space-around; width: 100%; height: 100%; }
.chart-container { background-color: rgba(255, 255, 255, 0.95); border-radius: 8px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); padding: 15px; margin: 0 10px; flex: 1; max-width: 45%; overflow: hidden; transition: transform 0.2s; }
.chart-container:hover { transform: translateY(-5px); box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); }
.bar { transition: fill 0.3s; }
.bar:hover { fill: #2980b9; }
.state { transition: fill 0.3s, stroke-width 0.3s; cursor: pointer; }
.state:hover { stroke-width: 2px; stroke: #333; }
.breach-legend { display: flex; flex-direction: column; font-size: 0.6em; margin-top: 5px; }
.legend-item { display: flex; align-items: center; margin-bottom: 2px; }
.legend-color { width: 8px; height: 8px; margin-right: 4px; border-radius: 2px; }
.legend-text { font-size: 0.8em; }
.breach-controls { display: flex; justify-content: center; }

/* --- End Consolidated Styles --- */

:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --accent-color: #e74c3c;
  --light-color: #ecf0f1;
  --dark-color: #2c3e50;
  --hipaa-color: #3498db;
  --clia-color: #2ecc71;
  --fda-color: #e74c3c;
  --cap-color: #f39c12;
  --nist-color: #9b59b6;
  --insurance-color: #1abc9c;
  --internal-color: #34495e;
}

body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
}

.reveal {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  color: var(--dark-color);
}

.reveal h1, 
.reveal h2, 
.reveal h3, 
.reveal h4, 
.reveal h5, 
.reveal h6 {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  color: var(--primary-color);
  text-transform: none;
  letter-spacing: -0.02em;
}

.reveal ul {
  list-style-type: none;
  margin-left: 0;
}

.reveal ul li {
  margin-bottom: 0.8em;
  position: relative;
  padding-left: 1.5em;
}

.reveal ul li:before {
  content: "•";
  color: var(--secondary-color);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Title Slide Styles */
.title-slide {
  text-align: center;
}

.title-slide h1 {
  margin-bottom: 0.2em;
  color: var(--primary-color);
}

.title-slide h3 {
  color: var(--secondary-color);
  font-weight: 400;
  margin-bottom: 1.5em;
}

/* Fragment List Animations */
.fragment-list .fragment {
  opacity: 0;
  transition: all 0.8s ease;
}

.fragment-list .fragment.visible {
  opacity: 1;
}

/* Key Terms Styling */
.key-term {
  color: var(--secondary-color);
  font-weight: 600;
  cursor: pointer;
  border-bottom: 1px dashed var(--secondary-color);
  position: relative;
}

.key-term:hover {
  color: var(--accent-color);
}

.definitions {
  margin-top: 2em;
}

.definition-panel {
  background-color: rgba(236, 240, 241, 0.8);
  border-left: 4px solid var(--secondary-color);
  padding: 0.8em;
  margin: 1em 0;
  border-radius: 0 4px 4px 0;
  display: none;
  font-size: 0.8em;
}

/* Regulation Slides */
.regulation-slide {
  position: relative;
}

.hipaa-slide h2 {
  color: var(--hipaa-color);
  border-bottom-color: var(--hipaa-color);
}

.clia-slide h2 {
  color: var(--clia-color);
  border-bottom-color: var(--clia-color);
}

.fda-slide h2 {
  color: var(--fda-color);
  border-bottom-color: var(--fda-color);
}

.regulation-panel {
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  margin: 1em 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.panel-content {
  padding: 1em;
}

.details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
  background-color: rgba(236, 240, 241, 0.5);
  padding: 0 1em;
}

.details.expanded {
  max-height: 300px;
  padding: 1em;
}

/* Standard Slide Layout */
.standard-slide {
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
}

.standard-slide h2 {
  color: #2c3e50;
  margin-bottom: 30px;
  border-bottom: 2px solid #3498db;
  padding-bottom: 10px;
  display: inline-block;
  font-weight: bold;
}

.content-columns {
  display: flex;
  justify-content: space-between;
  width: 90%;
  margin: 0 auto;
  gap: 30px;
}

.left-column, .right-column {
  flex: 1;
}

.info-box {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  height: 100%;
}

.info-box h3 {
  color: #3498db;
  margin-top: 0;
  margin-bottom: 15px;
  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
}

.info-box ul {
  margin-left: 5px;
  list-style-type: none;
}

.info-box ul li {
  margin-bottom: 12px;
  position: relative;
  padding-left: 20px;
  color: #2c3e50;
}

.info-box ul li:before {
  content: "•";
  color: #3498db;
  font-weight: bold;
  position: absolute;
  left: 0;
}

.highlight-box {
  background-color: #ebf5fb;
  border-left: 4px solid #3498db;
}

.highlight-box h3 {
  color: #2c3e50;
}

.highlight-box ul li {
  color: #2c3e50;
}

.slide-footer {
  margin-top: 30px;
  font-size: 0.8em;
  color: #7f8c8d;
  text-align: center;
}

.slide-footer a {
  color: #3498db;
  text-decoration: none;
}

.slide-footer a:hover {
  text-decoration: underline;
}

/* Visualization Containers */
.visualization-container {
  width: 100%;
  height: 400px;
  margin: 1em 0;
  position: relative;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.8);
}

/* Workflow Comparison */
.workflow-comparison {
  display: flex;
  justify-content: space-between;
}

.workflow-traditional,
.workflow-digital {
  width: 48%;
}

/* Takeaway Items */
.takeaway-item {
  font-weight: 500;
  position: relative;
  padding-left: 1.5em;
}

.takeaway-item:before {
  content: "✓";
  color: var(--secondary-color);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.pulse {
  animation: pulse 2s infinite;
}

/* FDA Approval, AI Regulation, and Enterprise Analytics Slides */
.fda-approval-slide,
.ai-regulation-slide,
.analytics-slide {
  text-align: left;
}

.fda-approval-slide h2,
.ai-regulation-slide h2,
.analytics-slide h2 {
  margin-bottom: 15px;
  color: #2c3e50;
  font-size: 1.8em;
}

.content-columns {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.left-column,
.right-column {
  flex: 1;
}

.info-box {
  background-color: #f8f9fa;
  border-radius: 6px;
  padding: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  height: 100%;
}

.highlight-box {
  background-color: #e3f2fd;
  border-left: 4px solid #2196f3;
}

.info-box h3 {
  font-size: 0.9em;
  margin-top: 0;
  margin-bottom: 6px;
  color: #2c3e50;
}

.info-box ul {
  margin: 0;
  padding-left: 20px;
}

.info-box li {
  margin-bottom: 5px;
  font-size: 0.65em;
  line-height: 1.3;
}

.slide-footer {
  font-size: 0.55em;
  color: #777;
  text-align: right;
  margin-top: 10px;
}

/* Quote box for Enterprise Analytics slide */
.quote-box {
  background-color: #f5f5f5;
  border-left: 4px solid #3498db;
  padding: 10px;
  margin-top: 15px;
  border-radius: 4px;
  font-style: italic;
}

.quote-box p {
  font-size: 0.7em;
  line-height: 1.3;
  color: #555;
  margin: 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .workflow-comparison {
    flex-direction: column;
  }
  
  .workflow-traditional,
  .workflow-digital {
    width: 100%;
    margin-bottom: 1em;
  }
}
