/* Overall styling with focus on catalog results */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f7f7;
    /* Light, soft background */
    margin: 0;
    padding: 20px;
    color: #333;
    font-size: 16px;
}

h1 {
    text-align: left;
    margin-bottom: 20px;
    color: #009688;
    /* Teal title */
    font-size: 24px;
    font-weight: bold;
}

h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #009688;
    /* Teal title */
    font-size: 24px;
    font-weight: bold;
}

.last-updated {
    text-align: center;
    margin-top: 40px;
    font-style: italic;
    font-size: 14px;
    color: #666;
}

.ocp-version-container, .toc {
    margin-bottom: 40px;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.ocp-version-header {
    font-size: 22px;
    margin-bottom: 15px;
    color: #333;
    background-color: #e0f2f1;
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: bold;
    position: relative;
}

.section-label {
    font-size: 16px;
    font-weight: bold;
    color: #009688;
    margin-bottom: 10px;
    text-align: left;
}

/* Enhanced notes styling to make them stand out */
.note-items {
    background-color: #fff9e6;
    border: 1px solid #ffd54f;
    border-left: 4px solid #ff9800;
    border-radius: 6px;
    padding: 15px 20px;
    margin: 10px 0 20px 0;
    box-shadow: 0 2px 4px rgba(255, 152, 0, 0.1);
}

.note-items ul {
    margin: 0;
    padding: 0;
}

.note-item {
    list-style: none;
    margin-bottom: 8px;
    padding: 5px 0;
    font-weight: 500;
    color: #e65100;
    transition: background-color 0.2s ease;
}

.note-item:last-child {
    margin-bottom: 0;
}

.note-item::before {
    content: "\0026A0";  /* Warning triangle symbol */
    padding-right: 10px;
    color: #ff9800;
    font-weight: bold;
    font-size: 16px;
}

.note-item:hover {
    background-color: rgba(255, 152, 0, 0.05);
    border-radius: 3px;
    padding-left: 5px;
    padding-right: 5px;
}

table {
    width: 95%;
    margin: 20px auto;
    border-collapse: collapse;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

th,
td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
    font-size: 16px;
    transition: background-color 0.2s ease;
}

th {
    background-color: #009688;
    color: #fff;
    font-size: 18px;
    position: relative;
}

th:hover {
    background-color: #00796b;
}

td {
    background-color: #fff;
}

td:hover {
    background-color: #fafafa;
    cursor: pointer;
}

.version-cell {
    min-width: 150px;
    white-space: nowrap;
}

/* Styling for successful and failed result links */
a.success-link {
    color: #009688;
    text-decoration: none;
    font-weight: normal;
}

a.success-link:hover {
    color: #00796b;
    text-decoration: underline;
}

a.failed-link {
    color: #f44336;
    text-decoration: none;
    font-weight: bold;
    background-color: #ffebee;
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid #ffcdd2;
}

a.failed-link:hover {
    color: #d32f2f;
    text-decoration: underline;
    background-color: #ffcdd2;
}

/* History bar styling for GPU bundle (de-emphasized) */
.history-bar-outer {
    margin: 20px auto;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #f7f7f7;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    opacity: 0.7;
}

.history-bar-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 4px;
    color: #888;
    font-size: 0.9em;
    flex-wrap: wrap;
}

.history-square {
    width: 20px;
    height: 20px;
    border-radius: 2px;
    cursor: pointer;
    transition: transform 0.1s ease;
    border: 1px solid #ccc;
    position: relative;
    box-shadow: none;
}

.history-square:hover {
    transform: scale(1.1);
}

.history-success {
    background-color: #009688;
}

.history-failure {
    background-color: #f44336;
}

.history-aborted {
    background-color: #ffc107;
}

.history-square-tooltip {
    visibility: hidden;
    position: absolute;
    background-color: #333;
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 10;
    transform: translate(-50%, -120%);
    white-space: nowrap;
}

.history-square:hover .history-square-tooltip {
  visibility: visible;
}

@media screen and (max-width: 768px) {
    table {
        font-size: 14px;
    }

    .history-bar {
        flex-wrap: wrap;
        justify-content: center;
    }

    .history-square {
        width: 25px;
        height: 25px;
    }
}
