/* Modern styling for serial number pages */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    /* Removed background-color to keep main.css background */
}

.timestamp {
    font-size: 0.8em;
    color: #666;
    margin: 5px 0 0 5px;
    opacity: 0.8;
}

h1, h2 {
    color: #2c3e50;
}

h1 {
    font-size: 2em;
    margin-bottom: 0.5em;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.2em;
}

h2 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

h2 a:hover {
    color: #3498db;
}

.intro-text {
    font-size: 1.2em;
    margin: 1em 0;
}

#index {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

#index li {
    background: white;
    padding: 10px 15px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#index li:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

#index a {
    color: #2c3e50;
    text-decoration: none;
    display: block;
    padding: 5px;
}

#index a:hover {
    color: #3498db;
}

#footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    text-align: center;
}

#footer a {
    color: #2c3e50;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

#footer a:hover {
    color: #3498db;
}

/* For manufacturer-specific pages */
.table-container {
    width: 100%;
    overflow-x: auto;
    margin: 20px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    /* Removed background: white to use main.css background */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

th, td {
    padding: 12px 15px;
    text-align: center;
    border: 1px solid #666;  /* Darker border to match the theme */
    min-width: 100px;
}

th {
    background-color: #2c3e50;
    color: white;
    font-weight: bold;
    white-space: nowrap;
}

td:first-child {
    /* Using the same background as the main serial list */
    font-weight: bold;
}

tr:nth-child(even) td {
    background-color: rgba(255, 255, 255, 0.1);  /* Subtle alternating rows */
}

tr:hover {
    background-color: #f5f5f5;
}

/* Empty cells styling */
td:empty::after {
    content: "—";
    color: #ccc;
}

/* Significant events highlighting */
tr.significant-event {
    background-color: rgba(255, 255, 200, 0.2) !important;
}

tr.significant-event td {
    font-weight: bold;
}

/* Section breaks */
.section-break {
    margin: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Secondary tables */
.secondary-table {
    max-width: 800px;
    margin: 20px auto;
}

/* Notes section */
.notes-section {
    margin: 40px 0;
    line-height: 1.8;
    font-size: 1.1em;
}

.notes-section p {
    margin: 1.2em 0;
}

.notes-section a {
    color: #3498db;
    text-decoration: none;
}

.notes-section a:hover {
    text-decoration: underline;
    color: #2980b9;
}

/* Headings outside tables */
body > h1 {
    font-size: 2.2em;
    margin: 1em 0 0.8em;
}

body > h2 {
    font-size: 1.8em;
    margin: 1.5em 0 1em;
    color: #34495e;
}

/* Make the table responsive */
@media (max-width: 768px) {
    .table-container {
        margin: 0 -15px;
    }
    
    th, td {
        padding: 8px 10px;
        font-size: 0.9em;
    }
    
    .notes-section {
        padding: 0 15px;
    }
}