/* Default body style for the main report */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 20px;
    color: #333;
    background-color: #f8f9fa;
}

/* Overrides for the centered attribute pages */
body.attribute-page {
    max-width: 1000px;
    margin: 20px auto; /* This centers the content horizontally */
    background-color: #f8f9fa;
}

/* Wiktionary-style layout for attribute pages */
.attribute-page .header, .attribute-page .content, .attribute-page .pages-list {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.attribute-page .header h1 {
    margin: 0 0 10px 0;
    font-size: 2.2em;
}

.attribute-page .path {
    color: #666;
    font-size: 0.9em;
    font-family: monospace;
    background-color: #f1f3f4;
    padding: 5px 10px;
    border-radius: 4px;
    display: inline-block;
}

.attribute-page .field {
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.attribute-page .field:last-child {
    border-bottom: none;
}

.attribute-page .field-label {
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 5px;
}

.attribute-page .field-value {
    margin-left: 20px;
    color: #555;
}

.attribute-page .back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.attribute-page .back-link:hover {
    text-decoration: underline;
}

h1 {
    color: #2c3e50;
    text-align: center;
}

.controls {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    justify-content: space-between;
}

.controls label {
    font-size: 14px;
    cursor: pointer;
}

.controls button,
#search-bar {
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#search-bar {
    width: 350px;
    background-color: #fff;
}

.controls button {
    cursor: pointer;
    background-color: #f0f0f0;
}

.download-buttons {
    display: flex;
    gap: 8px;
}

.download-buttons button {
    border-color: #28a745;
    color: #28a745;
    background-color: #fff;
    transition: all 0.2s;
}

.download-buttons button:hover {
    background-color: #28a745;
    color: #fff;
}

.view-options {
    display: flex;
    gap: 8px;
}

.view-options button {
    border-color: #6c757d;
    color: #6c757d;
}

.view-options button:hover {
    background-color: #6c757d;
    color: #fff;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background-color: white;
}

th,
td {
    padding: 10px 14px;
    border: 1px solid #dee2e6;
    text-align: left;
    vertical-align: top;
    word-wrap: break-word;
}

thead tr {
    background-color: #343a40;
    color: white;
}

table.table-striped tbody tr:nth-of-type(even) {
    background-color: #DDD;
}

.show-de .lang-en,
.show-en .lang-de {
    display: none;
}



/* Custom Tooltip Styles */

td .tooltip-wrapper {
    position: relative;
    display: inline-block;
}

td .tooltip-wrapper .tooltip-text {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 110%;
    /* Position above the cell */
    left: 50%;
    transform: translateX(-50%);
    background-color: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 8px 12px;
    border-radius: 6px;
    z-index: 10;
    white-space: normal;
    max-width: 450px;
    transition: opacity 0.2s;
    pointer-events: none;
    /* Allow clicking through the tooltip */
}

td .tooltip-wrapper:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}


/* View Attribute Button Styles */

.view-attr-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.2s;
}

.view-attr-btn:hover {
    background-color: #0056b3;
}

/* Gray styling for identical definitions */
.gray-definition {
    color: #888;
    font-style: italic;
}
