/* Container holding the table */
.ropme-ebird-table-container {
    max-height: 500px;
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid #eaedf2;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    margin: 20px 0;
    font-family: inherit;
}

/* Table styling */
.ropme-ebird-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

/* Sticky Headers */
.ropme-ebird-table th {
    background-color: #ffffff;
    color: #21305C; /* Dark blue matching ROPME header scheme */
    font-weight: 600;
    padding: 16px 20px;
    text-align: left;
    border-bottom: 2px solid #eaedf2;
    position: sticky;
    top: 0;
    z-index: 10;
}

/* Fixes a browser bug where sticky headers lose bottom border */
.ropme-ebird-table th::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    border-bottom: 2px solid #eaedf2;
}

/* Rows and Cells */
.ropme-ebird-table td {
    padding: 12px 20px;
    border-bottom: 1px solid #f0f2f5;
    color: #4a5568; 
    font-size: 14px;
}

.ropme-ebird-table tr:last-child td {
    border-bottom: none;
}

.ropme-ebird-table tr:hover {
    background-color: #f7f9fc;
}

/* Sleek custom scrollbar for webkit browsers */
.ropme-ebird-table-container::-webkit-scrollbar {
    width: 6px;
}
.ropme-ebird-table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 0 8px 8px 0;
}
.ropme-ebird-table-container::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}
.ropme-ebird-table-container::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Status messages (loading, empty, error) */
.ropme-loading, .ropme-message {
    color: #4a5568;
    font-style: italic;
    padding: 10px 0;
}
.ropme-error {
    color: #e53e3e;
    font-weight: 500;
    padding: 10px 0;
}
