/* Reset och grundläggande styling */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding: 20px;
  line-height: 1.8;
  font-size: 20px;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  overflow: hidden;
}

/* Header */
.header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 30px;
  text-align: center;
  position: relative;
}

/* Viktigt-ruta */
.important-box {
  margin: 30px;
  padding: 30px;
  background: #fee;
  border: 4px solid #dc3545;
  border-radius: 15px;
  display: flex;
  align-items: center;
  gap: 25px;
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.2);
}

.important-icon {
  font-size: 4em;
  flex-shrink: 0;
}

.important-content {
  flex: 1;
}

.important-content strong {
  display: block;
  font-size: 2em;
  color: #dc3545;
  margin-bottom: 15px;
}

.important-content p {
  font-size: 1.5em;
  color: #333;
  margin: 10px 0;
  line-height: 1.6;
}

.header h1 {
  font-size: 3.5em;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.print-btn {
  font-size: 1.8em;
  padding: 20px 40px;
  background: white;
  color: #667eea;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

.print-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Schema */
.schedule {
  padding: 30px;
}

.time-block {
  margin-bottom: 30px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.time-header {
  padding: 20px;
  color: white;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 15px;
}

.time-header .icon {
  font-size: 3em;
}

.time-header h2 {
  font-size: 2.5em;
}

.morning .time-header {
  background: linear-gradient(135deg, #FFA500, #FF8C00);
}

.afternoon .time-header {
  background: linear-gradient(135deg, #FFD700, #FFA500);
}

.evening .time-header {
  background: linear-gradient(135deg, #4B0082, #8B008B);
}

/* Aktiviteter */
.activity {
  padding: 20px;
  border-left: 5px solid #e0e0e0;
  margin: 0;
  background: white;
  border-bottom: 1px solid #f0f0f0;
}

.activity:last-child {
  border-bottom: none;
}

.activity.highlight {
  background: #fff9e6;
  border-left-color: #FFA500;
}

.activity.info {
  background: #e3f2fd;
  border-left-color: #2196F3;
}

.activity.staff-break {
  background: #ff69b4;
  border-left-color: #ff1493;
  color: white;
}

.activity.staff-break .time,
.activity.staff-break .content strong,
.activity.staff-break .content p {
  color: white;
}

.activity.goodnight {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-align: center;
  padding: 40px;
  font-size: 2em;
  border-left: none;
}

.time {
  font-size: 2em;
  font-weight: bold;
  color: #667eea;
  margin-bottom: 15px;
}

.content strong {
  font-size: 1.6em;
  color: #333;
  display: block;
  margin-bottom: 10px;
}

.content p {
  font-size: 1.5em;
  color: #666;
  margin: 12px 0;
  line-height: 1.6;
}

.content ul {
  margin: 15px 0 0 35px;
  font-size: 1.4em;
  color: #555;
}

.content ul li {
  margin: 12px 0;
  line-height: 1.7;
}

/* Footer */
.footer {
  background: #f5f5f5;
  padding: 25px;
  text-align: center;
  color: #666;
  font-size: 1.5em;
}

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

  .container {
    box-shadow: none;
    border-radius: 0;
  }

  .no-print {
    display: none !important;
  }

  .important-box {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    page-break-inside: avoid;
    margin: 20px;
  }

  .schedule {
    padding: 20px;
  }

  .time-block {
    page-break-inside: avoid;
    margin-bottom: 20px;
    box-shadow: none;
    border: 2px solid #333;
  }

  .time-header {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    color: white !important;
  }

  .activity {
    page-break-inside: avoid;
    padding: 15px;
  }

  .activity.highlight {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .activity.info {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .activity.goodnight {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .time {
    font-size: 1.2em;
  }

  .content strong {
    font-size: 1.1em;
  }

  .content p, .content ul {
    font-size: 1em;
  }
}

/* Responsiv design */
@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  .header h1 {
    font-size: 2em;
  }

  .print-btn {
    font-size: 1em;
    padding: 12px 24px;
  }

  .schedule {
    padding: 15px;
  }

  .time-header h2 {
    font-size: 1.5em;
  }

  .time {
    font-size: 1.1em;
  }

  .content strong {
    font-size: 1.1em;
  }

  .content p, .content ul {
    font-size: 1em;
  }
}
