
:root {
  --font-family: "proxima-soft","Proxima Soft",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Noto Sans",Ubuntu,"Droid Sans","Helvetica Neue",Helvetica,sans-serif;
  
  --font-size-sm: 14px;
  --font-size-base: 16px;

  --color-primary: #333;
  --color-secondary: #666;
  --color-white: white;
  --color-background: #f3f2ef;
  --color-surface: #f8f9fa;
  --color-border: #e5e5e5;
  --color-border-light: #f0f0f0;
  
  --radius: 24px;
  --shadow-sm: 0 1px 3px -1px rgba(0, 0, 0, 0.2);
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  background: var(--color-background);
  margin: 0;
  padding: 24px;
  min-height: 100vh;
  color: var(--color-primary);
  line-height: 1.6;
  font-size: var(--font-size-base);
  font-feature-settings: 'ss01', 'ss03', 'ss09';
  font-variant: tabular-nums;
}

.debug-container {
  max-width: 1400px;
  margin: 0 auto;
  background: transparent;
}

.debug-header {
  background: var(--color-white);
  color: var(--color-primary);
  padding: 32px;
  text-align: center;
  margin: 0 30px 24px 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.check-logo img {
  height: 48px;
  width: auto;
}

.debug-title {
  margin: 0;
  font-weight: 400;
  color: var(--color-primary);
}

.debug-subtitle {
  margin: 8px 0 0 0;
  color: var(--color-secondary);
  font-weight: 400;
}

.debug-content {
  padding: 0;
}

.debug-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.section {
  background: var(--color-white);
  border-radius: var(--radius);
  margin: 0 30px 24px 30px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.section h4 {
  margin: 0;
  color: var(--color-primary);
  font-size: 1.125rem;
  font-weight: 500;
  padding: 24px 24px 20px 24px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
}

.section-content {
  padding: 24px;
}

.info-box {
  background: #e7f5ff;
  border: 1px solid #bee5eb;
  border-radius: var(--radius);
  padding: 20px;
  margin: 0 30px 32px 30px;
  color: #0c5460;
}

.info-box h2 {
  margin: 0 0 12px 0;
  color: #0c5460;
  border: none;
  padding: 0;
}

.info-box p {
  margin: 0 0 12px 0;
  line-height: 1.5;
}

.info-box p:last-child {
  margin-bottom: 0;
}

.status-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-base);
  background: var(--color-white);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.status-table th {
  text-align: left;
  padding: 16px 30px;
  border-bottom: 1px solid var(--color-border);
  font-weight: 600;
  color: var(--color-secondary);
  background: #fafafa;
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-table td {
  padding: 16px 30px;
  border-bottom: 1px solid var(--color-border-light);
  vertical-align: middle;
  background: var(--color-white);
  color: var(--color-primary);
}

.status-table tr:last-child td {
  border-bottom: none;
}

.status-table tbody tr:hover td {
  background: var(--color-surface);
}

.status-table tr.service-success td {
  background-color: var(--color-white);
}

.status-table tr.service-success:hover td {
  background-color: #f8fff8;
}

.status-table tr.service-error td {
  background-color: var(--color-white);
}

.status-table tr.service-error:hover td {
  background-color: #fff8f8;
}

.service-name {
  color: var(--color-primary);
  font-weight: 400;
}

.status-cell {
  text-align: right;
  width: 80px;
}

.status-success {
  display: inline-block;
  background-color: #28a745;
  color: var(--color-white);
  width: 20px;
  height: 20px;
  border-radius: 13px;
  text-align: center;
  line-height: 20px;
  font-size: 12px;
  font-weight: bold;
}

.status-error {
  display: inline-block;
  background-color: #dc3545;
  color: var(--color-white);
  width: 20px;
  height: 20px;
  border-radius: 13px;
  text-align: center;
  line-height: 20px;
  font-size: 12px;
  font-weight: bold;
}

.status-loading {
  color: #6c757d;
  font-style: italic;
  font-size: 14px;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-white);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.info-table th {
  text-align: left;
  padding: 16px 30px;
  border-bottom: 1px solid var(--color-border);
  font-weight: 600;
  color: var(--color-secondary);
  background: #fafafa;
  width: 200px;
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-table td {
  padding: 16px 30px;
  border-bottom: 1px solid var(--color-border-light);
  color: var(--color-primary);
  word-break: break-all;
  background: var(--color-white);
}

.info-table tr:last-child td {
  border-bottom: none;
}

.info-table tbody tr:hover td {
  background: var(--color-surface);
}

.loading-placeholder {
  color: #6c757d;
  font-style: italic;
  text-align: center;
  padding: 20px;
}

.report-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.report-info {
  flex: 1;
}

.report-description {
  line-height: 1.6;
  margin: 0;
}

.report-action {
  flex-shrink: 0;
}

.download-btn-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #0bacfe;
  color: var(--color-white);
  border: none;
  height: 30px;
  padding: 0 20px;
  border-radius: var(--radius);
  letter-spacing: 0.013em;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s ease;
  box-shadow: 0 1px 3px -1px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

.download-btn-small:hover {
  background-color: #0996e3;
}

.download-btn-small:active {
  background-color: #0881c7;
}

.download-btn-small svg {
  flex-shrink: 0;
}

@media (max-width: 768px) {
  body {
    padding: 16px;
  }
  
  .debug-header {
    padding: 24px 16px;
    margin: 0 16px 24px 16px;
  }
  
  .section {
    margin: 0 16px 24px 16px;
  }
  
  .info-box {
    margin: 0 16px 32px 16px;
  }
  
  .status-table th,
  .status-table td,
  .info-table th,
  .info-table td {
    padding: 12px 20px;
  }
  
  .debug-title {
    font-size: 1.5rem;
  }
  
  .check-logo img {
    height: 40px;
  }
  
  .report-section {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  
  .download-btn-small {
    align-self: center;
  }
}