/* Boring 90s Academic Website */
body {
    font-family: 'Times New Roman', Times, serif;
    font-size: 14px;
    background-color: #ffffff;
    color: #000000;
    margin: 20px;
    padding: 0;
}

/* Header */
header {
    border-bottom: 1px solid #000000;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

header h1 {
    font-size: 24px;
    font-weight: bold;
    margin: 0 0 5px 0;
}

header .subtitle {
    font-size: 14px;
    color: #333333;
}

/* Main content */
main {
    max-width: 800px;
}

/* Filters */
.filters {
    margin-bottom: 20px;
    padding: 10px;
    background-color: #f0f0f0;
    border: 1px solid #cccccc;
}

.filter-group {
    display: inline;
    margin-right: 20px;
}

.filter-group label {
    font-weight: bold;
}

.filter-group select {
    font-family: 'Times New Roman', Times, serif;
    font-size: 14px;
}

.filter-info {
    display: block;
    margin-top: 10px;
    font-size: 12px;
    color: #666666;
}

/* Table */
.table-container {
    margin-top: 10px;
}

#plant-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

#plant-table th,
#plant-table td {
    border: 1px solid #000000;
    padding: 5px 8px;
    text-align: left;
    vertical-align: top;
}

#plant-table thead {
    background-color: #e0e0e0;
}

#plant-table th {
    font-weight: bold;
    cursor: pointer;
}

#plant-table th:hover {
    background-color: #d0d0d0;
}

#plant-table th.sorted-asc,
#plant-table th.sorted-desc {
    background-color: #cccccc;
}

.sort-icon {
    font-size: 10px;
}

.sort-icon::after {
    content: '';
}

th.sorted-asc .sort-icon::after {
    content: ' [asc]';
}

th.sorted-desc .sort-icon::after {
    content: ' [desc]';
}

#plant-table tbody tr:hover {
    background-color: #ffffcc;
}

#plant-table td:nth-child(2) {
    font-style: italic;
}

#plant-table th:nth-child(4),
#plant-table td:nth-child(4),
#plant-table th:nth-child(5),
#plant-table td:nth-child(5),
#plant-table th:nth-child(6),
#plant-table td:nth-child(6) {
    min-width: 180px;
}

/* Badges - just plain text labels */
.badge {
    font-size: 12px;
}

.badge-status,
.badge-area {
    /* No styling - just text */
}

/* Footer */
footer {
    margin-top: 30px;
    padding-top: 10px;
    border-top: 1px solid #000000;
    font-size: 12px;
    color: #666666;
}

/* No results */
.no-results {
    padding: 20px;
    color: #666666;
}

/* Links */
a {
    color: #0000ff;
}

a:visited {
    color: #800080;
}

a:hover {
    color: #ff0000;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    background-color: #ffffff;
    border: 3px outset #cccccc;
    padding: 15px;
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    box-sizing: border-box;
}

.lightbox-close {
    float: right;
    color: #0000ff;
    cursor: pointer;
    font-size: 14px;
}

.lightbox-close:hover {
    color: #ff0000;
}

#lightbox-title {
    font-size: 18px;
    margin: 0 0 10px 0;
    padding-right: 50px;
}

#lightbox-image {
    max-width: 100%;
    max-height: 65vh;
    width: auto;
    height: auto;
    display: block;
    border: 1px solid #000000;
    object-fit: contain;
}

#lightbox-caption {
    margin-top: 8px;
    font-size: 12px;
    color: #666666;
    font-style: italic;
}

/* Tab navigation */
.tab-nav {
    margin-bottom: 15px;
    border-bottom: 2px solid #000000;
}

.tab-btn {
    font-family: 'Times New Roman', Times, serif;
    font-size: 14px;
    background: #e0e0e0;
    border: 1px solid #000000;
    border-bottom: none;
    padding: 4px 12px;
    cursor: pointer;
    margin-right: 4px;
    position: relative;
    top: 2px;
}

.tab-btn.active {
    background: #ffffff;
    font-weight: bold;
}

.tab-btn:hover:not(.active) {
    background: #d0d0d0;
}

/* Tab content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Log controls */
.log-controls {
    margin-bottom: 10px;
    font-size: 12px;
    color: #666666;
}

/* Log table */
#log-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

#log-table th,
#log-table td {
    border: 1px solid #000000;
    padding: 5px 8px;
    text-align: left;
    vertical-align: top;
}

#log-table thead {
    background-color: #e0e0e0;
}

#log-table th {
    font-weight: bold;
}

#log-table tbody tr:hover {
    background-color: #ffffcc;
}

/* Clickable rows */
#plant-table tbody tr {
    cursor: pointer;
}

/* Responsive */
@media (max-width: 600px) {
    .filter-group {
        display: block;
        margin: 5px 0;
    }

    .table-container {
        overflow-x: auto;
    }
}
