/* ==========================================================================
   Base
   ========================================================================== */

body {
  /* padding: 20px; */
  background-color: #f8f9fa;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body > footer {
  margin-top: 80px;
}

/* ==========================================================================
   Common Components
   ========================================================================== */

.summary-card {
  margin-bottom: 20px;
}
.info-card {
  margin-bottom: 20px;
}
.selector-card {
  margin-bottom: 20px;
}
.filter-card {
  margin-bottom: 20px;
}
.issue-card {
  margin-bottom: 15px;
}
.issue-hidden {
  display: none;
}

.code-block {
  background-color: #f8f9fa;
  padding: 10px;
  border-radius: 4px;
  overflow-x: auto;
}

.css-selector {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.css-selector code {
  flex: 1;
  min-width: 0;
}

.copy-btn {
  border: none;
  background: none;
  cursor: pointer;
  padding: 2px 6px;
  font-size: 0.8rem;
  color: #6c757d;
  border-radius: 3px;
}

.copy-btn:hover {
  background-color: #e9ecef;
  color: #212529;
}

.highlight-btn {
  border: none;
  background: none;
  cursor: pointer;
  padding: 2px 6px;
  font-size: 0.8rem;
  color: #dc3545;
  border-radius: 3px;
}

.highlight-btn:hover {
  background-color: #f8d7da;
  color: #721c24;
}

.issue-number {
  display: inline-block;
  background-color: #6c757d;
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.875rem;
  margin-right: 10px;
}

/* ==========================================================================
   Issue Type Badges
   ========================================================================== */

.badge-error {
  background-color: #dc3545;
}
.badge-warning {
  background-color: #ffc107;
  color: #000;
}
.badge-notice {
  background-color: #0dcaf0;
}
.badge-critical {
  background-color: #8b0000;
}
.badge-high {
  background-color: #ff4500;
}
.badge-medium {
  background-color: #ffa500;
}

/* ==========================================================================
   Issue Type - Border variant (cards, detail groups)
   ========================================================================== */

.issue-type-error {
  border-left: 4px solid #dc3545;
}
.issue-type-warning {
  border-left: 4px solid #ffc107;
}
.issue-type-notice {
  border-left: 4px solid #0dcaf0;
}

/* Issue Type - Text color variant (tables, inline spans) */
td.issue-type-error,
span.issue-type-error {
  color: #dc3545;
  font-weight: bold;
  border-left: none;
}

td.issue-type-warning,
span.issue-type-warning {
  color: #ffc107;
  font-weight: bold;
  border-left: none;
}

td.issue-type-notice,
span.issue-type-notice {
  color: #0dcaf0;
  font-weight: bold;
  border-left: none;
}

/* ==========================================================================
   Tester Notes & Recommendations
   ========================================================================== */

.tester-note {
  background-color: #fff3cd;
  border-left: 4px solid #ffc107;
  padding: 10px;
  margin-top: 10px;
  border-radius: 4px;
}

.recommendation {
  background-color: #d1ecf1;
  border-left: 4px solid #0dcaf0;
  padding: 10px;
  margin-top: 10px;
  border-radius: 4px;
}

/* ==========================================================================
   Accordion View
   ========================================================================== */

.principle-card {
  margin-bottom: 15px;
}
.guideline-section {
  margin-left: 20px;
  margin-bottom: 15px;
}
.sc-section {
  margin-left: 20px;
  margin-bottom: 10px;
}
.technique-section {
  margin-left: 20px;
  margin-bottom: 10px;
}
.badge {
  margin-left: 10px;
}
.collapse-btn {
  cursor: pointer;
}
.stats {
  font-size: 0.9em;
  color: #6c757d;
}

/* ==========================================================================
   Table View
   ========================================================================== */

.table-container {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
}

.principle-row {
  background-color: #e7f3ff;
  font-weight: bold;
}
.guideline-row {
  background-color: #f0f8ff;
  padding-left: 20px;
}
.sc-row {
  background-color: #f8f9fa;
  padding-left: 40px;
}

/* ==========================================================================
   URLs List View
   ========================================================================== */

.url-link {
  word-break: break-all;
}

/* ==========================================================================
   Details/Summary Chevron
   ========================================================================== */

.group-header::before,
.criteria-header::before,
.selector-header::before,
.url-header::before {
  content: '\276F';
  display: inline-block;
  margin-right: 8px;
  transition: transform 0.2s ease;
  font-size: 0.85em;
}

details[open] > .group-header::before,
details[open] > .criteria-header::before,
details[open] > .selector-header::before,
details[open] > .url-header::before {
  transform: rotate(90deg);
}

/* ==========================================================================
   Grouped Report View
   ========================================================================== */

.issue-group {
  margin-bottom: 20px;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  background-color: #ffffff;
}

.group-header {
  background-color: #e9ecef;
  padding: 15px;
  cursor: pointer;
  list-style: none;
}

.group-header::-webkit-details-marker {
  display: none;
}

.group-header h5 {
  margin: 0;
  display: inline;
}

.instances-container {
  padding: 15px;
  background-color: #f8f9fa;
}

.instance-item {
  background-color: #ffffff;
  padding: 15px;
  margin-bottom: 10px;
  border-radius: 4px;
  border: 1px solid #dee2e6;
}

/* ==========================================================================
   Criteria Report View
   ========================================================================== */

.criteria-group {
  margin-bottom: 20px;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  background-color: #ffffff;
}

.criteria-header {
  background-color: #e9ecef;
  padding: 15px;
  cursor: pointer;
  list-style: none;
}

.criteria-header::-webkit-details-marker {
  display: none;
}

.criteria-header h5 {
  margin: 0;
  display: inline;
}

.selector-group {
  margin-bottom: 20px;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  background-color: #ffffff;
}

.selector-header {
  background-color: #e9ecef;
  padding: 15px;
  cursor: pointer;
  list-style: none;
}

.selector-header::-webkit-details-marker {
  display: none;
}

.selector-header h5 {
  margin: 0;
  display: inline;
}

.selector-content {
  padding: 15px;
  background-color: #f8f9fa;
}

.criteria-content {
  padding: 15px;
  background-color: #f8f9fa;
}

.url-group {
  margin-bottom: 15px;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  background-color: #ffffff;
}

.url-header {
  background-color: #f8f9fa;
  padding: 12px 15px;
  cursor: pointer;
  list-style: none;
  border-bottom: 1px solid #dee2e6;
}

.url-header::-webkit-details-marker {
  display: none;
}

.url-header h6 {
  margin: 0;
  display: inline;
}

.url-instances {
  padding: 15px;
}

/* ==========================================================================
   Mobile App Report View
   ========================================================================== */

.priority-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: bold;
  margin-left: 10px;
}

.mobile-notes {
  background-color: #e7f3ff;
  border-left: 4px solid #0066cc;
  padding: 15px;
  margin-top: 20px;
  border-radius: 4px;
}

footer .logo {
  max-width: 90px;
}

footer .footer-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.demo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* ==========================================================================
   Company Logo in Header
   ========================================================================== */

.company-logo {
  height: 36px;
  width: auto;
}

.ing .company-logo {
  max-width: 150px;
  object-fit: cover;
  object-position: left;
}
