body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #f7f7f7;
    color: #0a2d4a;
}

header {
    text-align: center;
    padding: 40px 20px;
}

.logo {
    width: 150px;
}

h1 {
    margin: 10px 0 0 0;
    font-size: 42px;
    font-weight: 800;
    color: #0a2d4a;
}

h2 {
    margin: 5px 0 0 0;
    font-size: 20px;
    color: #ff7b00;
    font-weight: 600;
}

.hero {
    text-align: center;
    padding: 30px 20px;
    font-size: 20px;
}

.features {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 40px 20px;
    flex-wrap: wrap;
}

.feature {
    background: white;
    border-radius: 10px;
    padding: 20px;
    width: 280px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.feature h3 {
    margin-top: 0;
    color: #ff7b00;
}

footer {
    text-align: center;
    margin-top: 50px;
    padding: 20px;
    background: #0a2d4a;
    color: white;
}
/* --- Top navigation --- */

.top-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 10px 0 30px 0;
    flex-wrap: wrap;
}

.top-nav a {
    text-decoration: none;
    color: #0a2d4a;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 999px;
    background: #e4edf7;
    font-size: 14px;
}

.top-nav a.active {
    background: #ff7b00;
    color: #ffffff;
}

/* --- AI Troubleshooting layout --- */

.ai-layout {
    max-width: 1100px;
    margin: 0 auto 40px auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.ai-panel {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 20px 24px;
}

.ai-form-panel {
    flex: 1 1 360px;
}

.ai-response-panel {
    flex: 1 1 360px;
}

.ai-subtext {
    font-size: 13px;
    color: #60738a;
    margin-top: 4px;
    margin-bottom: 16px;
}

.ai-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

.ai-form input,
.ai-form select,
.ai-form textarea {
    width: 100%;
    margin-top: 4px;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #c3cfdd;
    font-size: 14px;
    box-sizing: border-box;
}

.ai-form textarea {
    resize: vertical;
}

.ai-button {
    margin-top: 12px;
    width: 100%;
    padding: 10px;
    border-radius: 999px;
    border: none;
    background: #ff7b00;
    color: #ffffff;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
}

.ai-button:hover {
    filter: brightness(0.95);
}

.ai-demo-note {
    font-size: 11px;
    color: #60738a;
    margin-top: 6px;
}

/* --- AI response side --- */

.ai-response-box {
    background: #f7f7f7;
    border-radius: 8px;
    padding: 15px 18px;
    margin-top: 10px;
    border: 1px solid #dde3ea;
}

.ai-response-intro {
    margin-top: 0;
    font-size: 14px;
    color: #32455a;
}

.ai-steps {
    font-size: 14px;
    padding-left: 20px;
}

.ai-note {
    font-size: 12px;
    color: #60738a;
    margin-top: 10px;
}

.ai-examples {
    margin-top: 18px;
}

.ai-examples h4 {
    margin: 0 0 6px 0;
}

.ai-examples ul {
    padding-left: 18px;
    margin: 0;
    font-size: 13px;
}

/* Responsive */

@media (max-width: 800px) {
    .ai-layout {
        flex-direction: column;
    }
}
/* --- Case list / forum style --- */

.case-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 22px;
    margin-bottom: 8px;
}

.case-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.case-filter-button {
    border: 1px solid #c3cfdd;
    background: #eef3fa;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 11px;
    cursor: pointer;
}

.case-filter-active {
    background: #ff7b00;
    border-color: #ff7b00;
    color: #fff;
}

.case-list {
    margin-top: 6px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 4px;
}

.case-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #e2e6ee;
    padding: 10px 0;
    font-size: 13px;
}

.case-main {
    flex: 1;
}

.case-title {
    margin-bottom: 2px;
}

.case-error {
    color: #ff7b00;
}

.case-meta {
    color: #7a8aa0;
    font-size: 11px;
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.case-symptom {
    margin-top: 4px;
}

.case-checked {
    margin-top: 4px;
    font-size: 12px;
    color: #3d4b5f;
}

.case-actions {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.case-btn {
    border-radius: 6px;
    border: none;
    padding: 4px 8px;
    font-size: 11px;
    cursor: pointer;
}

.resolve-btn {
    background: #28a745;
    color: #fff;
}

.not-resolve-btn {
    background: #dc3545;
    color: #fff;
}

.case-empty {
    font-size: 12px;
    color: #7a8aa0;
    margin-top: 6px;
}
/* --- Manuals page --- */

.manuals-intro {
    max-width: 900px;
    margin: 0 auto 20px auto;
    padding: 0 20px;
    text-align: center;
    font-size: 15px;
    color: #32455a;
}

.brand-section {
    max-width: 900px;
    margin: 0 auto 30px auto;
    padding: 0 20px;
}

.brand-section h2 {
    margin-bottom: 4px;
}

.brand-note {
    font-size: 13px;
    color: #60738a;
    margin-bottom: 12px;
}

.model-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.model-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 16px 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    flex: 1 1 260px;
    min-width: 260px;
}

.model-info {
    font-size: 13px;
    color: #3d4b5f;
}

.model-button {
    display: inline-block;
    margin-top: 10px;
}

/* --- Manual detail page --- */

.manual-detail {
    max-width: 900px;
    margin: 0 auto 25px auto;
    padding: 0 20px;
}

.manual-meta {
    list-style: none;
    padding-left: 0;
    font-size: 14px;
    color: #3d4b5f;
}

.manual-meta li {
    margin-bottom: 4px;
}

.manual-note {
    font-size: 13px;
    color: #60738a;
    margin-bottom: 10px;
}

.error-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-top: 10px;
}

.error-table th,
.error-table td {
    border: 1px solid #dde3ea;
    padding: 8px;
    vertical-align: top;
}

.error-table th {
    background: #eef3fa;
    text-align: left;
}
.btn {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 16px;
    background-color: #0d3b66;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.2s;
}

.btn:hover {
    background-color: #12508c;
}
.cases-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.case-card {
  border: 1px solid #d3dbe5;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  background-color: #f8fafc;
}

.case-card h4 {
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
}

.case-card p {
  margin: 0.15rem 0;
  font-size: 0.9rem;
}

.case-meta {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: #6b7280;
  display: flex;
  gap: 0.75rem;
}
.case-form {
  max-width: 960px;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.form-field {
  flex: 1;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.form-field label {
  font-weight: 600;
  font-size: 0.9rem;
}

.case-form input[type="text"],
.case-form input[type="date"],
.case-form select,
.case-form textarea {
  padding: 0.5rem 0.6rem;
  border-radius: 4px;
  border: 1px solid #ccd3dd;
  font-size: 0.9rem;
}

.case-form textarea {
  resize: vertical;
}

.case-form .btn.primary {
  align-self: flex-start;
  margin-top: 0.5rem;
}

.hidden {
  display: none;
}

.checkbox {
  font-weight: normal;
  display: flex;
  gap: 0.4rem;
  align-items: center;
}
