/* --- Custom styles for select option elements --- */
select, select option {
  background-color: #22223b;
  color: #fff;
}

select option {
  background-color: #22223b;
  color: #fff;
}
/* --- General Page Styles --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* --- Spacing Utilities --- */
.mt-12 { margin-top: 12px; }
.mt-15 { margin-top: 15px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }

.mb-10 { margin-bottom: 10px; }

.my-5 { margin: 5px 0; }
.my-10 { margin: 10px 0; }
.my-15 { margin: 15px 0; }
.my-20 { margin: 20px 0; }

/* --- Component Box Styles --- */
.box {
  padding: 15px;
  border-radius: 4px;
}
.step {
  padding-bottom: 15px;
}



/* --- Box Components --- */
.tips-box, .test-tips, .example-output, .log-analysis-tips, .best-practices, .knowledge-check {
  margin-top: 20px;
  padding: 15px;
  border-radius: 4px;
}

/* --- Header Styles in Boxes --- */
.tips-box h4,
.test-tips h4,
.example-output h5,
.best-practices h5,
.log-analysis-tips h4 {
  margin-top: 0;
}

/* --- Code & Monospace Text --- */
.monospace {
  font-family: monospace;
  font-size: 0.9em;
}

body {
  font-family: 'Arial', 'Helvetica Neue', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding: 20px;
  line-height: 1.6;
  color: white;
}

/* --- Core Component Styles --- */
.try-it {
  max-width: 800px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  margin: 20px auto;
}

.try-it h3 {
  margin-bottom: 25px;
  font-size: 24px;
  text-align: center;
}

/* --- Prompt & Actions --- */
.prompt-container {
  background: rgba(0, 0, 0, 0.3);
  padding: 20px;
  border-radius: 8px;
  margin-top: 20px;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  position: relative;
}

.prompt-container pre {
  white-space: pre-wrap;
  word-wrap: break-word;
  color: #f0f4ff;
}

.copy-btn {
  /* --- New styles for sticky behavior --- */
  position: sticky; /* Changed from 'absolute' */
  top: 10px;       /* Sticks 10px from the top of the viewport */
  float: right;    /* Aligns the button to the right */
  z-index: 1;      /* Ensures button stays on top of the <pre> text */
  margin-left: 10px;  /* Adds space if <pre> text wraps next to it */
  margin-bottom: 5px; /* Adds a little space below the button */

  /* --- Kept your original styles --- */
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 6px 12px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 12px;
  transition: background 0.2s;
  color: white;
  font-family: 'Arial', sans-serif;
}

.copy-btn:hover { background: rgba(255, 255, 255, 0.3); }
.copy-btn.copied { background-color: #28a745; border-color: #28a745; }

.gemini-link-button {
  display: block; background: #fff; color: #667eea; padding: 12px 20px; border-radius: 8px; text-decoration: none; font-weight: bold; text-align: center; margin-top: 20px; transition: all 0.2s ease-in-out; box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.gemini-link-button:hover { transform: translateY(-2px); box-shadow: 0 6px 12px rgba(0,0,0,0.15); }

.completion-btn {
  display: block;
  width: 100%;
  margin-top: 30px;
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: white;
  padding: 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 16px;
  font-weight: bold;
}

.completion-btn:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* --- Interactive Element Styles (from c2-m1-competitor.html) --- */
.example-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 15px;
}

.example-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  text-align: center;
}

.example-btn:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: scale(1.03);
}

.feedback {
  padding: 15px;
  border-radius: 8px;
  margin-top: 25px;
  display: none;
  animation: fadeIn 0.5s ease;
}

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

.feedback.correct {
  background: rgba(46, 125, 50, 0.3);
  border: 1px solid #4caf50;
  color: #e8f5e9;
}

.feedback.incorrect {
  background: rgba(198, 40, 40, 0.3);
  border: 1px solid #f44336;
  color: #ffebee;
}

.feedback ul {
    list-style-position: inside;
    padding-left: 0;
}

.try-it-instruction {
  background: rgba(0, 0, 0, 0.1);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 25px;
}

.try-it-instruction p {
  margin-bottom: 20px;
  font-size: 16px;
}

.try-it-instruction p:last-child {
    margin-bottom: 0;
}

.question-prompt {
    text-align: center; 
    font-weight: bold; 
    margin-bottom: 15px;
    font-size: 1.1em;
}

#industryInput {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.15);
    color: white;
    font-size: 16px;
    margin-top: 8px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

#industryInput::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

#industryInput:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.gemini-link {
  display: inline-block;
  background: #fff;
  color: #667eea;
  padding: 8px 16px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: bold;
  margin-left: 10px;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.gemini-link:hover {
  background: #f0f4ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* --- Styles from c2-m3-research.html --- */
.builder-step p.example {
  font-style: italic;
  background: rgba(0,0,0,0.1);
  padding: 10px;
  border-radius: 6px;
  font-size: 14px;
}

/* --- Styles from c2-m4-prototype.html --- */
.builder-step ul {
    list-style-position: inside;
    margin-left: 5px;
}

.builder-step li {
    margin-bottom: 8px;
}

.tool-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.tool-link-button {
  flex: 1;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 12px 15px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
  transition: all 0.2s ease-in-out;
}

.tool-link-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* --- Styles from c2-m5-roadmap.html --- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.feature-card {
    background: rgba(0,0,0,0.1);
    padding: 15px;
    border-radius: 8px;
}

.rice-table { width: 100%; border-collapse: collapse; margin-top: 15px; }
.rice-table th, .rice-table td { padding: 10px; text-align: left; border-bottom: 1px solid rgba(255,255,255,0.2); }
.rice-table th { font-size: 12px; text-transform: uppercase; }
.rice-table input { padding: 6px; max-width: 80px; }
.rice-table .final-score { font-weight: bold; font-size: 1.1em; }

/* --- Special button style for final capstone page --- */
.completion-btn-final {
  background: #28a745;
}

.completion-btn-final:hover {
  background: #218838;
}

/* --- Input & Form Styles --- */
.input-group {
  margin-bottom: 15px;
}

.input-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 6px;
  font-size: 14px;
}

.input-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.2);
  color: white;
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.3s, box-shadow 0.3s;
  resize: vertical;
  min-height: 80px;
}

.input-group input, .input-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.2);
  color: white;
  font-size: 15px;
  font-family: inherit;
}

.input-group input::placeholder, .input-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.input-group input:focus, .input-group textarea:focus, .input-group select:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

/* --- Day 8 Transformation Specific Styles --- */

/* Colored feature cards with left border */
.card-blue { background-color: #F5F5F5; border-left: 4px solid #2196F3; }
.card-green { background-color: #E8F5E9; border-left: 4px solid #4CAF50; }
.card-orange { background-color: #FFF3E0; border-left: 4px solid #FF9800; }
.card-purple { background-color: #F3E5F5; border-left: 4px solid #8E24AA; }
.card-yellow { background-color: #FFF9C4; border-left: 4px solid #F9A825; }
.card-lightblue { background-color: #E1F5FE; border-left: 4px solid #0288D1; }
.card-indigo { background-color: #E8EAF6; border-left: 4px solid #3F51B5; }

/* Text colors for contrast */
.text-blue-dark { color: #1565C0; }
.text-green-dark { color: #1B5E20; }
.text-green-medium { color: #2E7D32; }
.text-orange-dark { color: #E65100; }
.text-orange-medium { color: #BF360C; }
.text-purple-dark { color: #4A148C; }
.text-yellow-dark { color: #33691E; }
.text-lightblue-dark { color: #01579B; }
.text-teal-dark { color: #004D40; }
.text-pink-dark { color: #6A1B4D; }
.text-indigo-dark { color: #1A237E; }
.text-indigo-medium { color: #283593; }
.text-grey { color: #666; }
.text-grey-dark { color: #424242; }
.text-black { color: #212121; }

/* Assessment dimension boxes */
.dimension-box { padding: 15px; border-radius: 8px; }
.dimension-box-green { background-color: #E8F5E9; }
.dimension-box-blue { background-color: #E1F5FE; }
.dimension-box-pink { background-color: #FCE4EC; }

/* Common text sizes */
.text-sm { font-size: 0.85em; }
.text-base { font-size: 0.9em; }
.text-md { font-size: 0.95em; }
.text-lg { font-size: 1.1em; }

/* Common margins */
.mb-12 { margin-bottom: 12px; }
.mb-15 { margin-bottom: 15px; }
.mb-20 { margin-bottom: 20px; }
.mt-25 { margin-top: 25px; }
.my-20 { margin: 20px 0; }

/* Font weights */
.font-medium { font-weight: 500; }
.font-bold { font-weight: bold; }

/* Flex utilities */
.flex { display: flex; }
.flex-between { justify-content: space-between; }
.flex-center { align-items: center; text-align: center; }

/* Grid utilities */
.grid { display: grid; }
.grid-auto-fit-250 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-auto-fit-280 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-auto-fit-300 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.gap-12 { gap: 12px; }
.gap-15 { gap: 15px; }
.gap-20 { gap: 20px; }

/* Story card */
.story-card { padding: 10px; background-color: white; border-radius: 6px; }

/* Slider range labels */
.range-labels { display: flex; justify-content: space-between; font-size: 0.75em; color: #424242; }

/* Score display */
.score-display { margin: 10px 0 0 0; font-weight: bold; text-align: center; font-size: 1.1em; }

/* Table styles */
.role-table { width: 100%; border-collapse: collapse; font-size: 0.9em; }
.role-table thead tr { background-color: #E3F2FD; }
.role-table tbody tr:nth-child(even) { background-color: #F5F5F5; }
.role-table th, .role-table td { padding: 10px; border: 1px solid #ddd; text-align: left; }
.role-table td.example { font-size: 0.85em; }

/* Line height utilities */
.leading-relaxed { line-height: 1.8; }
.leading-normal { line-height: 1.6; }

/* Width utilities */
.w-full { width: 100%; }

/* Display utilities */
.hidden { display: none; }
.block { display: block; }

/* Info box */
.info-box { margin-top: 15px; padding: 15px; background-color: #E3F2FD; border-radius: 8px; border-left: 4px solid #2196F3; }
.info-box p { margin: 0; font-size: 0.9em; color: #0D47A1; }

/* Additional common utilities */
.text-center { text-align: center; }
.mt-10 { margin-top: 10px; }
.italic { font-style: italic; }
.pointer { cursor: pointer; }

/* Status indicator colors (for dynamic content) */
.status-green { color: #4CAF50; }
.status-yellow { color: #FFC107; }
.status-red { color: #F44336; }

/* --- ROI Formula Styling --- */
.formula {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  font-size: 1.3em;
  margin: 20px 0;
}

.formula .roi-text {
  font-style: italic;
  font-weight: bold;
  font-size: 1.4em;
}

.formula .equals {
  font-weight: normal;
  font-size: 1.2em;
}

.formula .fraction {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  vertical-align: middle;
}

.formula .fraction-numerator {
  border-bottom: 2px solid currentColor;
  padding: 0 10px 5px 10px;
  font-weight: bold;
}

.formula .fraction-denominator {
  padding: 5px 10px 0 10px;
  font-weight: bold;
}

/* --- Fix bullet point alignment --- */
.feature-card ul {
  padding-left: 20px;
  list-style-position: outside;
}
