/**
 * Reports Page Styles
 */

.report-container {
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.report-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #e0e0e0;
}

.report-header h2 {
  margin: 0;
  color: #333;
  font-size: 24px;
}

.report-stats {
  display: flex;
  gap: 15px;
}

.stat-badge {
  background: #f5f5f5;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 14px;
  color: #666;
  display: flex;
  align-items: center;
  gap: 5px;
}

.stat-badge i {
  color: #4CAF50;
}

/* Report Table */
.report-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.report-table thead {
  background: #4CAF50;
  color: white;
}

.report-table th {
  padding: 15px;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
}

.report-table tbody tr {
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.2s;
}

.report-table tbody tr:hover {
  background: #f5f5f5;
  cursor: pointer;
}

.report-table td {
  padding: 15px;
  font-size: 14px;
  color: #333;
}

.report-table td strong {
  color: #4CAF50;
  font-family: monospace;
}

.entry-count {
  background: #2196F3;
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 13px;
}

/* Device Badge */
.device-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
}

.device-ios {
  background: #e3f2fd;
  color: #1976D2;
}

.device-android {
  background: #e8f5e9;
  color: #388E3C;
}

.device-embedded-device {
  background: #fff3e0;
  color: #F57C00;
}

.device-not-available {
  background: #f5f5f5;
  color: #999;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 20px 0;
}

.pagination-btn {
  padding: 8px 12px;
  border: 1px solid #ddd;
  background: white;
  color: #333;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s;
  font-size: 14px;
  min-width: 40px;
}

.pagination-btn:hover:not(:disabled) {
  background: #4CAF50;
  color: white;
  border-color: #4CAF50;
}

.pagination-btn.active {
  background: #4CAF50;
  color: white;
  border-color: #4CAF50;
  font-weight: 600;
}

.pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #999;
}

.empty-state i {
  font-size: 64px;
  margin-bottom: 20px;
  color: #ddd;
}

.empty-state h3 {
  margin: 0 0 10px 0;
  color: #666;
}

.empty-state p {
  margin: 0;
  color: #999;
}

/* Loading State */
.loading-container {
  text-align: center;
  padding: 60px 20px;
  color: #4CAF50;
}

.loading-container i {
  font-size: 48px;
  margin-bottom: 15px;
}

.loading-container p {
  margin: 0;
  color: #666;
  font-size: 16px;
}

/* Error State */
.error-container {
  text-align: center;
  padding: 60px 20px;
  color: #f44336;
}

.error-container i {
  font-size: 64px;
  margin-bottom: 20px;
}

.error-container h3 {
  margin: 0 0 10px 0;
  color: #f44336;
}

.error-container p {
  margin: 0;
  color: #666;
}

/* Report Detail Page */
.report-detail-header {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #e0e0e0;
}

.back-btn {
  background: #f5f5f5;
  border: 1px solid #ddd;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  color: #333;
  transition: all 0.2s;
  margin-bottom: 15px;
}

.back-btn:hover {
  background: #4CAF50;
  color: white;
  border-color: #4CAF50;
}

.back-btn i {
  margin-right: 5px;
}

.report-detail-header h2 {
  margin: 10px 0;
  color: #333;
  font-size: 24px;
}

.report-detail-stats {
  margin-top: 10px;
}

/* Report Detail Table */
.report-detail-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.report-detail-table thead {
  background: #2196F3;
  color: white;
}

.report-detail-table th {
  padding: 12px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
}

.report-detail-table tbody tr {
  border-bottom: 1px solid #e0e0e0;
}

.report-detail-table tbody tr:nth-child(even) {
  background: #f9f9f9;
}

.report-detail-table td {
  padding: 12px;
  font-size: 13px;
  color: #333;
}

/* Condition Badge */
.condition-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
}

.condition-good {
  background: #e8f5e9;
  color: #388E3C;
}

.condition-fair {
  background: #fff3e0;
  color: #F57C00;
}

.condition-poor {
  background: #ffebee;
  color: #D32F2F;
}

.condition-unknown,
.condition-n\/a {
  background: #f5f5f5;
  color: #999;
}

/* Responsive Design */
@media (max-width: 768px) {
  .report-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .report-stats {
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }

  .report-table,
  .report-detail-table {
    font-size: 12px;
  }

  .report-table th,
  .report-table td,
  .report-detail-table th,
  .report-detail-table td {
    padding: 10px 8px;
  }

  .pagination {
    flex-wrap: wrap;
  }
}
