/* EagleIV Performance Dashboard Styles */

/* Remove left color borders from stat cards on performance page */
.performance-page .stat-card {
    border-left: 1px solid #e0e0e0;
}

/* Performance Grid Layouts */
.perf-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.perf-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.perf-grid-4 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

/* Locked Technician Field */
.perf-locked-field {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 12px;
    font-family: 'Inter', sans-serif;
    color: #333;
    background: #fafafa;
    min-width: 110px;
    user-select: none;
}

.perf-lock-icon {
    font-size: 11px;
    color: #999;
}

/* Compare Against Checkboxes */
.perf-compare-checks {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.perf-check-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #333;
    cursor: pointer;
    white-space: nowrap;
}

.perf-check-label input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 13px;
    height: 13px;
    margin: 0;
    border: 1.5px solid #ccc;
    border-radius: 3px;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    transition: all 0.15s;
    background: white;
}

.perf-check-label input[type="checkbox"]:checked {
    background: #00bfa5;
    border-color: #00bfa5;
}

.perf-check-label input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 1px;
    width: 4px;
    height: 7px;
    border: solid white;
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
}

.perf-check-hint {
    color: #999;
    font-size: 10px;
}

/* Top Line Celebratory Banner */
.perf-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    background: linear-gradient(135deg, #f0fdf4 0%, #e8f5e9 100%);
    border: 1px solid #a5d6a7;
    border-left: 4px solid #2e7d32;
    border-radius: 10px;
    margin-bottom: 20px;
}

.perf-banner-trophy {
    font-size: 32px;
    flex-shrink: 0;
}

.perf-banner-items {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    flex: 1;
}

.perf-banner-item {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.perf-banner-divider {
    width: 1px;
    height: 28px;
    background: #a5d6a7;
    flex-shrink: 0;
}

.perf-banner-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.perf-banner-value {
    font-size: 28px;
    font-weight: 700;
    color: #2e7d32;
    line-height: 1;
}

.perf-banner-value-sm {
    font-size: 22px;
}

.perf-kudos-link {
    font-size: 12px;
    color: #1976d2;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.2s;
}

.perf-kudos-link:hover {
    color: #0d47a1;
}

.perf-banner-milestone {
    font-size: 13px;
    font-weight: 600;
    color: #2e7d32;
}

/* Complexity Bars */
.perf-complexity-bars {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.perf-complexity-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.perf-complexity-label {
    font-size: 10px;
    color: #666;
    width: 200px;
    flex-shrink: 0;
    line-height: 1.3;
}

.perf-complexity-bar-wrap {
    flex: 1;
    height: 12px;
    background: #f0f0f0;
    border-radius: 6px;
    overflow: hidden;
}

.perf-complexity-bar {
    height: 100%;
    border-radius: 6px;
    transition: width 0.6s ease;
}

.perf-complexity-high {
    background: #d32f2f;
}

.perf-complexity-med {
    background: #ffc107;
}

.perf-complexity-low {
    background: #00bfa5;
}

.perf-complexity-pct {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    width: 36px;
    text-align: right;
    flex-shrink: 0;
}

/* Gauge */
.perf-gauge-wrap {
    margin-top: 10px;
}

.perf-gauge-track {
    position: relative;
    height: 10px;
    background: #e0e0e0;
    border-radius: 5px;
    overflow: visible;
}

.perf-gauge-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffc107 0%, #00bfa5 60%, #2e7d32 100%);
    border-radius: 5px;
    transition: width 0.6s ease;
}

.perf-gauge-marker {
    position: absolute;
    top: -4px;
    width: 3px;
    height: 18px;
    border-radius: 1px;
    transform: translateX(-50%);
}

.perf-gauge-marker-pb {
    background: #1976d2;
}

.perf-gauge-marker-goal {
    background: #d32f2f;
}

.perf-gauge-labels {
    display: flex;
    justify-content: space-between;
    font-size: 9px;
    color: #999;
    margin-top: 4px;
}

/* Meta Row */
.perf-meta-row {
    display: flex;
    gap: 16px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.perf-meta-item {
    font-size: 11px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 4px;
}

.perf-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.perf-dot-pb {
    background: #1976d2;
}

.perf-dot-goal {
    background: #d32f2f;
}

/* Status Badge */
.perf-status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-top: 6px;
}

.perf-status-success {
    background: #e8f5e9;
    color: #2e7d32;
}

.perf-status-warn {
    background: #fff8e1;
    color: #e6a700;
}

/* Warning Note */
.perf-warning-note {
    margin-top: 8px;
    padding: 8px 10px;
    background: #fff8e1;
    border-left: 3px solid #ffc107;
    border-radius: 4px;
    font-size: 11px;
    color: #666;
    line-height: 1.5;
}

.perf-warning-icon {
    color: #e6a700;
    margin-right: 4px;
}

/* Check mark and warning indicator */
.perf-check-mark {
    color: #2e7d32;
    font-size: 18px;
    font-weight: 700;
}

.perf-warning-indicator {
    color: #e6a700;
    font-size: 16px;
}

/* Subsection Label */
.perf-subsection-label {
    font-size: 12px;
    font-weight: 500;
    color: #666;
    margin-bottom: 10px;
    padding-left: 4px;
}

/* Chart row variants */
.chart-row-2 {
    grid-template-columns: 1fr 1fr;
}

.chart-row-1 {
    grid-template-columns: 1fr;
}

.chart-body-tall {
    height: 260px;
}

.chart-body-short {
    height: 160px;
}

/* Chart legend for sterility section */
.perf-chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 8px 18px 14px;
    font-size: 11px;
    color: #666;
}

.perf-legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.perf-legend-swatch {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    display: inline-block;
}

.perf-legend-swatch-line {
    width: 16px;
    height: 0;
    border-top: 2px dashed;
    border-radius: 0;
    background: none !important;
}

.perf-legend-status {
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 10px;
}

.perf-legend-warn {
    background: #fff8e1;
    color: #e6a700;
}

.perf-legend-ok {
    background: #e8f5e9;
    color: #2e7d32;
}

/* Training Cards */
.perf-training-card {
    background: white;
    border-radius: 10px;
    padding: 20px 24px;
    border: 1px solid #e0e0e0;
    transition: all 0.2s;
}

.perf-training-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.perf-training-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.perf-training-primary {
    background: #e3f2fd;
    color: #1565c0;
}

.perf-training-secondary {
    background: #fff8e1;
    color: #e6a700;
}

.perf-training-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.perf-training-why {
    font-size: 12px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 14px;
}

.perf-training-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    color: #1976d2;
    text-decoration: none;
    transition: all 0.2s;
}

.perf-training-link:hover {
    background: #e3f2fd;
    border-color: #90caf9;
}

.perf-training-link-icon {
    font-size: 14px;
    flex-shrink: 0;
}

/* Kudos Modal Items */
.perf-kudos-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.perf-kudos-item {
    padding: 14px 16px;
    background: #fafafa;
    border-left: 3px solid #00bfa5;
    border-radius: 6px;
}

.perf-kudos-quote {
    font-size: 13px;
    color: #333;
    line-height: 1.6;
    font-style: italic;
}

.perf-kudos-author {
    font-size: 11px;
    color: #999;
    margin-top: 6px;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 1200px) {
    .perf-grid-4 {
        grid-template-columns: 1fr 1fr;
    }

    .perf-grid-3 {
        grid-template-columns: 1fr 1fr;
    }

    .chart-row-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .perf-grid-4,
    .perf-grid-3,
    .perf-grid-2 {
        grid-template-columns: 1fr;
    }

    .perf-banner-items {
        flex-direction: column;
        align-items: flex-start;
    }

    .perf-banner-divider {
        width: 100%;
        height: 1px;
    }

    .perf-complexity-label {
        width: 140px;
    }
}
