/* Dark Mode Override Styles */

body {
    background-color: #1a1f25; /* Dark blue-grey background */
    color: #d1d5db; /* Light grey text for readability */
}

main {
    background-color: #23282e; /* Slightly lighter card background */
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    border: 1px solid #3a4149;
}

main h2 {
    color: #ecf0f1; /* Light text for headings */
    border-bottom: 2px solid #3a4149;
}

main h3 {
    color: #bdc3c7; /* Softer text for subheadings */
}

main p strong {
    color: #ecf0f1; /* Emphasized text should be bright */
}

/* Table styles for dark mode */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

th, td {
    border: 1px solid #3a4149;
    padding: 12px 15px;
    text-align: left;
}

th {
    background-color: #2c3e50; /* Using a color from the header gradient */
    color: #ecf0f1;
    font-weight: 600;
}

tbody tr {
    transition: background-color 0.3s ease;
}

tbody tr:nth-of-type(even) {
    background-color: #2c333a;
}

tbody tr:hover {
    background-color: #3e454c;
}

/* Code block styles for dark mode */
pre {
    background-color: #1a1f25;
    color: #d1d5db;
    padding: 20px;
    margin: 20px 0;
    border-radius: 6px;
    border: 1px solid #3a4149;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

code {
    font-family: 'Consolas', 'Menlo', 'Courier New', monospace;
    background-color: #3a4149;
    padding: 3px 6px;
    border-radius: 4px;
}

pre code {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
}
