/* Benchmark List/View Page Styles */

.benchmark-summary {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.execution-item {
    border-left: 4px solid var(--primary-color);
    padding-left: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

/* Fixed dropdown positioning for table actions */
.benchmark-list-table .dropdown {
    position: relative;
}

/* Ensure dropdowns in the actions column are properly positioned */
.benchmark-list-table .col-actions .dropdown-menu {
    position: absolute !important;
    z-index: 1060 !important;
    min-width: 180px;
}

/* Ensure proper z-index for fixed positioned dropdowns */
.benchmark-list-table .dropdown-menu {
    z-index: 1070 !important;
}

/* Let Popper.js handle positioning but ensure proper z-index */
.benchmark-list-table .dropdown-menu.show {
    z-index: 1070 !important;
}

/* Ensure table cells containing dropdowns have proper stacking context */
.benchmark-list-table .align-middle.text-end {
    position: relative;
}

/* Prevent table overflow issues with dropdowns */
.benchmark-list-table {
    overflow: visible;
}

/* Allow dropdowns to overflow the table container vertically */
.table-responsive {
    overflow-x: auto;
    overflow-y: visible;
    position: relative;
}

/* Ensure dropdowns are properly styled and positioned */
.benchmark-list-table .dropdown-menu {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.15);
}

.benchmark-card {
    transition: transform 0.3s ease;
    height: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--card-bg);
}

.benchmark-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Inner Benchmark Card Styles (Restored) */
.benchmark-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--border-color);
}

.benchmark-title {
    font-weight: var(--font-weight-bold);
    font-size: 18px;
}

.benchmark-info {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

.benchmark-description {
    margin-bottom: 15px;
    color: var(--text-subtle);
    height: 80px; /* Limit height */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Show approx 3 lines */
    line-clamp: 3;
    -webkit-box-orient: vertical;
    line-height: 1.5;
}

.benchmark-stats {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-lighter);
    margin-top: auto; /* Push stats to the bottom if card height allows */
    padding-top: 10px; /* Add some space above stats */
    border-top: 1px solid var(--border-color);
}

.benchmark-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

@media (max-width: 767.98px) {
    .benchmark-details-grid {
        grid-template-columns: 1fr;
    }
}

/* Force consistent height for action buttons on benchmark view */
.benchmark-action-button {
    min-height: 31px !important; /* Approximate height for btn-sm */
    height: 31px !important; /* Force height */
    line-height: normal !important; /* Override lh-1 if it causes issues */
    padding-top: 0.25rem !important; /* Standard btn-sm padding */
    padding-bottom: 0.25rem !important; /* Standard btn-sm padding */
    box-sizing: border-box !important; /* Ensure padding is included */
}

/* Styles for the benchmark list table */
.benchmark-list-table th.col-name {
    min-width: 250px;
}

.benchmark-list-table th.col-favourite {
    width: 50px;
}

.benchmark-list-table th.col-actions {
    width: 100px;
}

/* Dark Theme Overrides for Benchmark List Table */
.dark-theme .benchmark-list-table thead th,
:root.auto-dark-theme .benchmark-list-table thead th {
    background-color: var(--table-header-bg);
    color: var(--table-header-color);
    border-color: var(--table-border-color);
}

/* Ensure input group in header is themed */
.dark-theme .benchmark-list-table thead .input-group-text,
:root.auto-dark-theme .benchmark-list-table thead .input-group-text {
    background-color: rgba(var(--light-color-rgb), 0.1);
    color: var(--text-muted);
    border-color: var(--border-color);
}

.dark-theme .benchmark-list-table thead .btn,
:root.auto-dark-theme .benchmark-list-table thead .btn {
    /* Assuming btn-secondary is used */
    background-color: var(--card-bg);
    color: var(--light-color);
    border-color: var(--border-color);
}

.dark-theme .benchmark-list-table thead .btn:hover,
:root.auto-dark-theme .benchmark-list-table thead .btn:hover {
    background-color: rgba(var(--light-color-rgb), 0.1);
    border-color: rgba(var(--light-color-rgb), 0.3);
}

@media (max-width: 992px) {
    .table-responsive {
        overflow-x: auto; /* Keep horizontal scrolling on small screens */
    }
} 