/**
 * Estilos para o frontend
 */

.elune-report-container {
  max-width: 800px;
  margin: 20px auto;
  background: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  overflow: hidden;
}

.elune-report-header {
  background: #f5f5f5;
  color: #333;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ddd;
}

.elune-company-info {
  flex: 1;
}

.elune-company-info h2 {
  margin: 0 0 5px 0;
}

.elune-company-info p {
  margin: 0;
}

.elune-company-logo {
  max-width: 120px;
  max-height: 60px;
  margin-left: 15px;
}

.elune-report-title {
  background: #8d00ff;
  color: white;
  padding: 12px 20px;
  margin: 0;
  font-size: 20px;
}

.elune-report-content {
  padding: 15px 20px;
}

.elune-teacher-info {
  margin-bottom: 15px;
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
}

.elune-teacher-info h3 {
  color: #8d00ff;
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 16px;
}

.elune-classes-summary {
  margin-bottom: 15px;
}

.elune-classes-summary h3 {
  color: #8d00ff;
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 16px;
}

.elune-classes-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 15px;
}

.elune-classes-table th {
  background: #f5f5f5;
  padding: 8px;
  text-align: left;
  border-bottom: 2px solid #ddd;
  font-size: 14px;
}

.elune-classes-table td {
  padding: 8px;
  border-bottom: 1px solid #ddd;
  font-size: 14px;
}

.elune-total-row td {
  font-weight: bold;
  border-top: 2px solid #ddd;
  border-bottom: none;
}

.elune-screenshot-section {
  margin-top: 15px;
}

.elune-screenshot-section h3 {
  color: #8d00ff;
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 16px;
}

.elune-screenshot-container {
  border: 1px solid #ddd;
  padding: 8px;
  background: #f9f9f9;
  text-align: center;
}

.elune-screenshot-image {
  max-width: 100%;
  height: auto;
  max-height: 300px; /* Limitar altura para caber em uma página */
}

.elune-screenshot-caption {
  font-size: 12px;
  color: #666;
  margin-top: 5px;
}

.elune-report-footer {
  background: #f5f5f5;
  padding: 10px 20px;
  text-align: center;
  font-size: 12px;
  color: #666;
  border-top: 1px solid #ddd;
}

.elune-action-buttons {
  margin: 15px 0;
  text-align: center;
}

.elune-action-button {
  display: inline-block;
  padding: 8px 16px;
  background: #8d00ff;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  margin: 0 5px;
  cursor: pointer;
  border: none;
  font-size: 14px;
}

.elune-action-button:hover {
  background: #7700cc;
}

.elune-action-button.secondary {
  background: #666;
}

.elune-action-button.secondary:hover {
  background: #555;
}

/* Estilos para impressão */
@media print {
  body {
    background: white !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .elune-report-container {
    box-shadow: none !important;
    margin: 0 !important;
    max-width: 100% !important;
    page-break-inside: avoid !important;
  }

  .elune-action-buttons,
  .no-print,
  #wpadminbar,
  #adminmenumain,
  #wpfooter,
  .wp-admin #wpcontent #wpbody #wpbody-content .wrap h1,
  .wp-admin #wpcontent #wpbody #wpbody-content .wrap .page-title-action {
    display: none !important;
  }

  #wpcontent,
  #wpbody-content {
    margin-left: 0 !important;
    padding-left: 0 !important;
  }

  html.wp-toolbar {
    padding-top: 0 !important;
  }

  .wp-admin #wpcontent {
    margin-left: 0 !important;
  }

  .elune-report-view #wpbody-content {
    padding: 0 !important;
  }

  /* Esconder URL na impressão */
  @page {
    size: auto;
    margin: 0mm;
  }

  /* Ajustar tamanhos para caber em uma página */
  .report-header,
  .elune-report-header {
    padding: 10px 15px !important;
  }

  .report-title,
  .elune-report-title {
    padding: 8px 15px !important;
    font-size: 18px !important;
  }

  .report-content,
  .elune-report-content {
    padding: 10px 15px !important;
  }

  .report-footer,
  .elune-report-footer {
    padding: 8px 15px !important;
  }

  .screenshot-image,
  .elune-screenshot-image {
    max-height: 250px !important;
  }
}

