body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    background-color: #f3f4f6;
}

header {
    background-color: #3b82f6;
    color: white;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.container {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.left-panel {
    width: 240px;
    min-width: 240px; 
    background-color: #ffffff;
    border-right: 1px solid #e5e7eb;
    overflow-y: auto;
    padding: 0 1rem 1rem 1rem;
}

.left-panel a {
    display: block;
    padding: 0.5rem 1rem;
    color: #3b82f6;
    text-decoration: none;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    transition: background-color 0.2s;
}

.left-panel a:hover {
    background-color: #f1f5f9;
}

.right-panel {
    flex-grow: 1;
    padding: 1rem 2rem 2rem 2rem;
    overflow-y: auto;
    background-color: #f9fafb;
}

.right-panel h2 {
    color: #1e3a8a;
    margin-bottom: 1rem;
}

.right-panel p {
    margin-bottom: 1rem;
    line-height: 1.5;
}

footer {
    background-color: #2c3e50;
    color: #9ca3af;
    font-size: 0.8em;
    padding: 1rem;
    border-top: 1px solid #e5e7eb;
    text-align: center;
    margin-top: auto;
}

footer a {
    color: #9ca3af;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

header a {
    text-decoration: none; 
    color: inherit;
}

header a h1 {
    color: white;
    margin: 0;
}

.right-panel dl {
    margin: 1rem 0;
}

.right-panel dt {
    font-weight: bold;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.right-panel dd {
    margin-left: 1rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.search-container {
    position: sticky;
    top: 0;
    background-color: #ffffff;
    z-index: 100;
    margin-bottom: 1rem;
    padding: 1.5rem 0 0.5rem;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.search-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-25%);
    color: #888;
    pointer-events: none;
    font-size: 1rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f2f2f2;
    font-weight: 600;
}

tr:hover {
    background-color: #f5f5f5;
}

.error {
    background-color: #ffebee;
    color: #c62828;
    padding: 10px;
    border-left: 4px solid #c62828;
    margin: 10px 0;
}

pre {
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 4px;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
}

ul {
    background-color: white;
    padding: 15px 30px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    list-style-type: none;
    margin: 0;
}

.table-full {
    width: 100%;
    border-collapse: collapse;
}
.table-wrapper {
    background: white;
    border-radius: 6px;
    overflow: hidden;
}
.mb-15 {
    margin-bottom: 1.5em;
}

/* Utility classes for templates */
.title-large {
    font-size: 2em;
    color: #1e3a8a;
    margin-bottom: 0.5em;
}
.mb-1 {
    margin-bottom: 1em;
}
.mb-05 {
    margin-bottom: 0.5em;
}
.mt-0 {
    margin-top: 0;
}
.link-primary {
    color: #1e3a8a;
    text-decoration: none;
    transition: color 0.2s;
}
.link-primary:hover {
    text-decoration: underline;
}
.underline {
    text-decoration: underline;
}
.summary-box {
    margin-bottom: 2em;
    padding: 1em;
    background-color: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #1e3a8a;
}
.intro-summary {
    margin-top: 2em;
    padding: 1.5em;
    background-color: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #1e3a8a;
}
.card {
    background: white;
    padding: 1em;
    border-radius: 6px;
}
.text-center {
    text-align: center;
}
.font-bold {
    font-weight: bold;
}
.text-primary {
    color: #1e3a8a;
}
.text-green {
    color: #059669;
}
.text-red {
    color: #7c2d12;
}
.grid-auto-fit {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1em;
}
.grid-auto-fit-200 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1em;
    margin-bottom: 1.5em;
}
.grid-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2em;
}
.table-border {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    background: white;
}
.table-header {
    background-color: #f1f5f9;
}
.table-header th {
    padding: 0.75em;
    text-align: left;
    font-weight: 600;
    color: #475569;
}
/* Table utility classes */
.sticky-header {
    position: sticky;
    top: 0;
}
.text-right {
    text-align: right !important;
}
.table-row {
    border-top: 1px solid #e2e8f0;
}
.table-cell {
    padding: 0.75em;
    color: #334155;
}
.text-2xl {
    font-size: 2em;
}
.text-muted {
    color: #64748b;
}
.text-sm {
    font-size: 0.9em;
}

li {
    padding: 5px 0;
}