/* Toastmasters Meeting Agenda Styles */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: white;
  min-height: 100vh;
  line-height: 1.6;
}

.container {
  background: white;
  overflow: hidden;
}

/* Print version banner - only show on desktop */
.print-version-banner {
  display: none;
}

@media (min-width: 1025px) {
  .print-version-banner {
    display: block;
    background: #f0f4f8;
    padding: 10px 20px;
    text-align: center;
    font-size: 14px;
    color: #4a5568;
    border-bottom: 1px solid #e2e8f0;
  }
  
  .print-version-banner a {
    color: #3182ce;
    text-decoration: none;
    font-weight: 500;
  }
  
  .print-version-banner a:hover {
    text-decoration: underline;
  }
}

/* Header and Banner */
.header {
  padding: 0;
  text-align: center;
}

.banner-link {
  display: block;
  text-decoration: none;
  cursor: pointer;
}

.banner {
  width: 100%;
  height: 169px;
  background-image: url('../images/banner.jpg');
  background-size: cover;
  background-position: left center;
  background-repeat: no-repeat;
}

.header-content {
  padding: 30px 30px 40px 30px;
  background: transparent;
  color: #2d3748;
}

.header h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #2d6ca6;
}

.header .toastmaster {
  font-size: 16px;
  color: #2d6ca6;
  font-weight: 600;
  margin-bottom: 15px;
}

.header .date {
  font-size: 18px;
  color: #4a5568;
  margin-bottom: 5px;
}

.header .time {
  font-size: 16px;
  color: #4a5568;
}

.header p {
  font-size: 16px;
  color: #4a5568;
}

/* Prevent name wrapping */
.nowrap {
  white-space: nowrap;
}

/* Content Area */
.content {
  padding: 0;
}

/* Section Styles */
.section {
  margin-bottom: 25px;
  border-left: 4px solid #2d6ca6;
  background: #f8f9fa;
  overflow: hidden;
}

.section-header {
  padding: 15px 20px;
  background: #f8f9fa;
}

.section-name {
  font-size: 20px;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.section-time {
  color: #2d6ca6;
  font-weight: 600;
  font-size: 15px;
  margin-top: 5px;
}

.edit-btn {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  padding: 2px 4px;
  opacity: 0.5;
  transition: opacity 0.2s;
  vertical-align: middle;
}

.edit-btn:hover {
  opacity: 1;
}

/* Notes display in agenda */
.notes-display {
  margin: 5px 0 15px 0;
  padding: 12px 15px;
  background: #fffbf0;
  border-left: 3px solid #2d6ca6;
  font-size: 17px;
  color: #2d3748;
  white-space: pre-wrap;
  word-wrap: break-word;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  font-weight: 500;
}

/* Crutch summary within notes display */
.crutch-spacing {
  height: 12px;
}

.crutch-inline-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  white-space: normal;
}

.crutch-inline-item {
  font-size: 15px;
  color: #2d3748;
  white-space: nowrap;
}

.crutch-tag-name {
  font-weight: 600;
  color: #2d3748;
}

.crutch-count {
  font-weight: 700;
  color: #991b1b;
}

/* Notes in section header (for multi-speech and speakers-list sections) */
.section > .notes-display {
  margin: 5px 20px 15px 20px;
}

.speech .notes-display {
  margin: 5px 0 15px 0;
}

.speaker-item .notes-display {
  margin: 5px 0 15px 0;
  grid-column: 1 / -1;
}

.section-simple {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
}

.section-simple .speaker {
  color: #4a5568;
  font-size: 16px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-simple .time {
  color: #2d6ca6;
  font-weight: 600;
  font-size: 15px;
}

.section-simple .notes-display {
  width: 100%;
  margin: 5px 0 15px 0;
}

/* Notes for simple sections without speaker (direct child of section-header) */
.section-header > .notes-display {
  margin: 5px 0 15px 0;
}

/* Speeches */
.speeches {
  background: white;
  padding: 10px 20px 15px 20px;
}

.speech {
  padding: 12px 0;
  border-bottom: 1px solid #e2e8f0;
}

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

.speech-title {
  font-size: 16px;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 5px;
}

.speech-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.speech-speaker {
  color: #4a5568;
  font-size: 15px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.speech-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.speech-time {
  color: #2d6ca6;
  font-weight: 600;
  font-size: 14px;
}

.speech-duration {
  color: #718096;
  font-size: 13px;
  font-style: italic;
}

/* Speakers List Section */
.speakers-list {
  background: white;
  padding: 10px 20px 15px 20px;
}

.speaker-item {
  padding: 10px 0;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.speaker-item:last-child {
  border-bottom: none;
}

.speaker-role {
  font-size: 15px;
  font-weight: 600;
  color: #2d3748;
  min-width: 120px;
}

.speaker-name {
  color: #4a5568;
  font-size: 15px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Leadership Section */
.leadership-section {
  padding: 40px 25px;
  background: #2d3748;
  color: white;
  margin-top: 40px;
}

.leadership-section h2 {
  font-size: 20px;
  font-weight: 600;
  color: white;
  margin-bottom: 25px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.9;
}

.leadership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px 30px;
  max-width: 900px;
  margin: 0 auto;
}

.leader-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}

.leader-role {
  font-size: 12px;
  font-weight: 600;
  color: #a0aec0;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.leader-name {
  font-size: 15px;
  font-weight: 500;
  color: white;
}

/* Meeting Tools Section */
.meeting-tools {
  padding: 30px 25px;
  background: #f8f9fa;
  border-top: 2px solid #e2e8f0;
  margin-top: 20px;
}

.meeting-tools h2 {
  font-size: 18px;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 20px;
  text-align: center;
}

.tools-grid {
  display: flex;
  gap: 15px;
  justify-content: center;
  max-width: 400px;
  margin: 0 auto;
}

.tool-button {
  width: 80px;
  height: 80px;
  border: 3px solid #2d3748;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
}

.tool-button:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.tool-button:active {
  transform: scale(0.95);
}

#tool-green {
  background-color: #22c55e;
}

#tool-yellow {
  background-color: #eab308;
}

#tool-red {
  background-color: #ef4444;
}

.flashcards-button {
  margin-top: 20px;
  width: 100%;
  max-width: 400px;
  padding: 15px 30px;
  background: #2d6ca6;
  color: white;
  border: none;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.flashcards-button:hover {
  background: #1e4a7a;
}

/* Index Page Specific Styles */
.meetings-list {
  list-style: none;
}

.meeting-item {
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.meeting-link {
  display: block;
  padding: 20px 25px;
  text-decoration: none;
  color: inherit;
  background: #f8f9fa;
  border-left: 5px solid #2d6ca6;
}

.meeting-title {
  font-size: 20px;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 8px;
}

.meeting-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.meeting-date {
  color: #2d6ca6;
  font-weight: 600;
  font-size: 15px;
}

.meeting-time {
  color: #718096;
  font-size: 15px;
}

.loading {
  text-align: center;
  padding: 40px;
  color: #718096;
}

.error {
  background: #fed7d7;
  color: #c53030;
  padding: 20px;
  margin: 20px 0;
  border: 1px solid #fc8181;
}

.no-meetings {
  text-align: center;
  padding: 40px;
  color: #718096;
}

/* Unscheduled Speakers Section */
.unscheduled-speakers-list {
  background: white;
  padding: 10px 20px 15px 20px;
}

.unscheduled-speaker-row {
  padding: 10px 0;
  border-bottom: 1px solid #e2e8f0;
}

.unscheduled-speaker-row:last-child {
  border-bottom: none;
}

.unscheduled-speaker-input-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.unscheduled-speaker-input {
  flex: 1;
  padding: 8px 12px;
  font-size: 15px;
  color: #2d3748;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 4px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  transition: border-color 0.2s;
}

.unscheduled-speaker-input:focus {
  outline: none;
  border-color: #2d6ca6;
  background: #f8f9fa;
}

.unscheduled-speaker-input::placeholder {
  color: #a0aec0;
  font-style: italic;
}

.unscheduled-speaker-edit-container {
  display: inline-flex;
  align-items: center;
}

.unscheduled-speakers-master-label {
  font-weight: 600;
  color: #2d6ca6;
  margin-right: 5px;
}

.unscheduled-speaker-row .notes-display {
  margin: 10px 0 5px 0;
}

/* Responsive Design */
@media (max-width: 600px) {
  body {
    padding: 10px;
  }
  
  .banner {
    height: 130px;
  }
  
  .header-content {
    padding: 20px 20px 30px 20px;
  }
  
  .header h1 {
    font-size: 24px;
  }
  
  .header .date {
    font-size: 16px;
  }
  
  .header .time {
    font-size: 14px;
  }
  
  .content {
    padding: 0;
  }
  
  .section-name {
    font-size: 18px;
  }
  
  .section-simple,
  .speech-details,
  .speaker-item {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .speaker-role {
    min-width: auto;
  }
  
  .leadership-section {
    padding: 30px 20px;
  }
  
  .leadership-section h2 {
    font-size: 18px;
  }
  
  .leadership-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 15px;
  }
  
  .leader-item {
    text-align: left;
  }
  
  .meeting-tools {
    padding: 25px 20px;
  }
  
  .meeting-tools h2 {
    font-size: 16px;
  }
  
  .tools-grid {
    gap: 10px;
  }
  
  .tool-button {
    width: 70px;
    height: 70px;
  }
  
  .edit-btn {
    font-size: 16px;
    padding: 2px 6px;
  }
  
  .notes-container {
    padding: 12px 15px;
  }
  
  .notes-textarea {
    min-height: 80px;
    font-size: 13px;
  }
  
  .meeting-link {
    padding: 15px 20px;
  }
  
  .meeting-title {
    font-size: 18px;
  }
  
  .meeting-meta {
    flex-direction: column;
    gap: 5px;
  }
}

