/* Core Variables - TGH Theme */
:root {
    --bg-main: #0a0a0a;
    --bg-panel: #141414;
    --bg-lighter: #1e1e1e;
    --tgh-gold: #f2c94c;
    --tgh-gold-dim: #b89732;
    --text-main: #e0e0e0;
    --text-muted: #999999;
    --link-color: #6cb4ee; 
    --border-color: #333333;
    --error-red: #ff4d4d;
    --success-green: #00cc66;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
}

a {
    color: var(--link-color);
    text-decoration: none;
    font-weight: 500;
}

a:hover {
    text-decoration: underline;
    color: #90e0ef;
}

/* Header */
.top-bar {
    background-color: var(--bg-panel);
    border-bottom: 2px solid var(--tgh-gold);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.top-bar h1 {
    color: var(--tgh-gold);
    font-size: 1.5rem;
    margin: 0;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.header-actions {
    align-items: center;
    display: flex;
    gap: 0.75rem;
}

.header-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 4px;
}


button {
    cursor: pointer;
    font-family: inherit;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    padding: 0.6rem 1.2rem;
    transition: all 0.2s ease;
}

.btn-home {
    background: transparent;
    border: 1px solid var(--tgh-gold);
    color: var(--tgh-gold);
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.btn-home:hover {
    background: var(--tgh-gold);
    color: var(--bg-main);
    text-decoration: none;
}

.btn-primary {
    background-color: var(--tgh-gold);
    color: #000;
}

.btn-primary:hover {
    background-color: #ffd866;
}

.btn-secondary {
    background-color: var(--bg-lighter);
    color: var(--tgh-gold);
    border: 1px solid var(--tgh-gold);
    margin-bottom: 0.5rem;
}

.btn-secondary:hover {
    background-color: #2a2a2a;
}

.btn-secondary-short {
    background-color: var(--bg-lighter);
    color: var(--tgh-gold);
    border: 1px solid var(--tgh-gold);
    margin-bottom: 0.5rem;
    padding-bottom: 2px;
}

.btn-secondary-short:hover {
    background-color: #2a2a2a;
}


.input-section {
    background-color: var(--bg-panel);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

#nationIdInput {
    flex: 1;
    padding: 0.6rem;
    border: 1px solid var(--border-color);
    background-color: var(--bg-main);
    color: white;
    border-radius: 4px;
    font-size: 1rem;
}

#nationIdInput:focus {
    outline: none;
    border-color: var(--tgh-gold);
}


.layout-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.content-zone {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.box {
    background-color: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.section-header {
    background-color: var(--bg-lighter);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
}

.section-header h2 {
    color: var(--tgh-gold);
    font-size: 1.25rem;
}

.lightbox {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.lightbox:last-child {
    border-bottom: none;
}

.lightbox h4 {
    color: var(--tgh-gold);
    margin-bottom: 0.5rem;
}

.lightbox ul {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

.lightbox2 {
    background-color: var(--bg-lighter);
    padding: 1rem;
    padding-left: 2.5rem;
    margin-top: 0.5rem;
    border-radius: 4px;
    border-left: 3px solid var(--tgh-gold-dim);
}

ul, ol {
    padding-left: 0px;
    margin-left: 22px;
}

.warning {
    color: red;
}

.note {
    color: yellow;
}


.status-indicator {
    display: inline-block;
    margin-top: 0.3rem;
    font-weight: bold;
}


.code-block {
    background-color: #000;
    color: #f2c94c;
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    overflow-x: auto;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

code {
    color: #f2c94c;
}


.sidebar-menu {
    position: relative;
}

.sticky-sidebar {
    position: sticky;
    top: 2rem;
    background-color: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--tgh-gold);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.sticky-sidebar h3 {
    color: var(--tgh-gold);
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.report-content p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.placeholder-text {
    color: var(--text-muted);
    font-style: italic;
}

.footer-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 1rem;
}

/* Site Footer */
.site-footer {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 2rem 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    margin-top: 2rem;
}

.site-footer a {
    color: var(--tgh-gold-dim);
    transition: color 0.2s;
}

.site-footer a:hover {
    color: var(--tgh-gold);
}

/* Tags & Badges */
.tag {
    display: inline-block;
    background: rgba(242, 201, 76, 0.12);
    border: 1px solid var(--tgh-gold-dim);
    color: var(--tgh-gold);
    font-size: 0.8rem;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 4px;
    vertical-align: middle;
}

/* Standalone Page Containers (Privacy & Credits) */
.page-container {
    max-width: 860px;
    margin: 2rem auto;
    padding: 0 2rem 4rem;
}

.page-container h1 {
    color: var(--tgh-gold);
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.info-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
}

.info-card h2 {
    color: var(--tgh-gold);
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.info-card p, .info-card li {
    color: var(--text-main);
    font-size: 0.95rem;
    line-height: 1.7;
}

.credits-simple-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.credits-simple-list li {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
}

.credits-simple-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.credits-simple-list li:first-child {
    padding-top: 0;
}

.credits-role {
    color: var(--text-muted);
}

.credits-name {
    color: var(--tgh-gold);
    font-weight: 600;
}
/* --- Accordion Styles --- */

/* Details container box reset */
details.box {
  border: 1px solid #333;
  border-radius: 8px;
  background-color: #1a1a1a; /* Match your background */
  margin-bottom: 1.5rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

/* Header style & cursor interaction */
summary.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  cursor: pointer;
  user-select: none;
  list-style: none; /* Hide default arrow in Chrome/Firefox */
  background-color: #242424;
}

/* Remove default marker icon in WebKit browsers (Safari, older Chrome) */
summary.section-header::-webkit-details-marker {
  display: none;
}

summary.section-header:hover {
  background-color: #2e2e2e;
}

summary.section-header h2 {
  margin: 0;
  font-size: 1.25rem;
}

/* Custom indicator arrow */
summary.section-header .chevron {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(45deg);
  transition: transform 0.25s ease-in-out;
  margin-right: 5px;
}

/* Rotate arrow when open */
details[open] summary.section-header .chevron {
  transform: rotate(-135deg);
}

/* Padding for content inside the box */
.box-content {
  padding: 1rem 1.25rem;
}


/* Prevent any element from causing page-wide horizontal scroll */
body {
    overflow-x: hidden;
}

pre, .code-block {
    max-width: 100%;
    word-break: break-all;
}

@media (max-width: 900px) {
    .layout-wrapper {
        grid-template-columns: 1fr; 
        margin: 1rem auto;
        padding: 0 0.75rem;
    }
    
    .sidebar-menu {
        order: -1;
    }

    .sticky-sidebar {
        position: relative;
        top: 0;
    }

    .top-bar {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }

    .header-brand {
        justify-content: center;
    }

    .header-actions {
        justify-content: center;
        width: 100%;
    }

    .input-section {
        flex-direction: column;
    }

    .input-section button {
        width: 100%;
    }

    .lightbox2 {
        padding-left: 1rem;
    }
}
