/* Shared Print & Screen Stylesheet for Self-Advocacy IEP Worksheets */

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

html, body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f9f9f9;
}

body {
  padding: 20px;
}

@media print {
  body {
    padding: 0;
    background: white;
  }
}

.worksheet {
  max-width: 8.5in;
  height: 11in;
  background: white;
  margin: 0 auto 20px;
  padding: 0.75in;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  page-break-after: always;
}

@media print {
  .worksheet {
    max-width: 100%;
    height: auto;
    margin: 0;
    padding: 0.75in;
    box-shadow: none;
    page-break-after: always;
  }
}

.header {
  border-bottom: 2px solid #000;
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 5px;
  color: #000;
}

.subtitle {
  font-size: 11px;
  color: #666;
  font-style: italic;
}

.instructions {
  background: #f5f5f5;
  border-left: 3px solid #333;
  padding: 10px;
  margin: 15px 0;
  font-size: 13px;
  line-height: 1.5;
}

.section {
  margin-bottom: 20px;
}

.section-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
  border-bottom: 1px solid #999;
  padding-bottom: 5px;
  color: #000;
}

.question {
  margin-bottom: 15px;
  page-break-inside: avoid;
}

.question-label {
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 5px;
  color: #333;
}

.answer-space {
  border-bottom: 1px solid #000;
  min-height: 30px;
  margin-bottom: 5px;
}

.answer-lines {
  display: flex;
  flex-direction: column;
}

.line {
  border-bottom: 1px solid #000;
  min-height: 24px;
  margin-bottom: 5px;
}

.checkbox-group {
  margin: 10px 0;
}

.checkbox-item {
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
}

.checkbox {
  width: 16px;
  height: 16px;
  border: 1px solid #333;
  margin-right: 8px;
  flex-shrink: 0;
  margin-top: 2px;
}

.checkbox-label {
  font-size: 13px;
  flex: 1;
}

.sentence-starters {
  background: #fafafa;
  padding: 10px;
  border-left: 2px solid #666;
  margin: 10px 0;
  font-size: 12px;
  line-height: 1.6;
}

.sentence-starters-title {
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 12px;
}

.starter {
  margin-bottom: 6px;
  padding-left: 15px;
}

.starter:before {
  content: "• ";
  margin-left: -12px;
}

.reflection-prompt {
  background: #f0f8ff;
  border: 1px solid #b0d4ff;
  padding: 12px;
  margin: 10px 0;
  border-radius: 3px;
  font-size: 13px;
  font-style: italic;
}

.tip-box {
  background: #fffacd;
  border-left: 3px solid #cc9900;
  padding: 10px;
  margin: 10px 0;
  font-size: 12px;
  line-height: 1.5;
}

.tip-title {
  font-weight: 600;
  margin-bottom: 5px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0;
  font-size: 12px;
}

th, td {
  border: 1px solid #333;
  padding: 8px;
  text-align: left;
}

th {
  background: #e8e8e8;
  font-weight: 600;
}

.scale {
  display: flex;
  justify-content: space-between;
  margin: 10px 0;
  font-size: 12px;
}

.scale-point {
  text-align: center;
  flex: 1;
}

.scale-box {
  width: 24px;
  height: 24px;
  border: 1px solid #333;
  margin: 5px auto;
}

.footer {
  margin-top: 20px;
  padding-top: 10px;
  border-top: 1px solid #ccc;
  font-size: 10px;
  color: #999;
  text-align: center;
}

.date-line {
  margin: 10px 0;
  display: flex;
  align-items: center;
  font-size: 12px;
}

.date-label {
  font-weight: 600;
  margin-right: 10px;
  width: 100px;
}

.date-box {
  border-bottom: 1px solid #000;
  flex: 1;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print optimizations */
@media print {
  a {
    color: #000;
    text-decoration: none;
  }

  .noprint {
    display: none;
  }

  .worksheet {
    box-shadow: none;
    border: none;
  }
}
