/* Scorecards Page Styles */

/* Scorecards Icon */
.scorecards-icon {
    color: #10b981 !important;
}

.scorecards-icon:hover {
    color: #059669 !important;
}

/* Scorecards Page */
#scorecards {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    min-height: 100vh;
    padding: 2rem;
}

#scorecards .page-header {
    margin-bottom: 3rem;
    text-align: center;
}

#scorecards .page-title {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    animation: titleGlow 3s ease-in-out infinite;
}

#scorecards .page-subtitle {
    font-size: 1.2rem;
    color: #94a3b8;
    margin-bottom: 2rem;
}

/* Search Container */
.search-container {
    display: flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    padding: 0.5rem;
    margin-right: 1rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.search-container:focus-within {
    border-color: #10b981;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.search-input {
    background: transparent;
    border: none;
    color: #f1f5f9;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    width: 300px;
    outline: none;
}

.search-input::placeholder {
    color: #64748b;
}

.search-btn {
    background: #10b981;
    border: none;
    border-radius: 8px;
    padding: 0.75rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 0.5rem;
}

.search-btn:hover {
    background: #059669;
    transform: scale(1.05);
}

/* Metrics Grid */
.scorecards-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Renewal Metrics Grid - 7 cards in one row */
.renewal-metrics-grid {
    grid-template-columns: repeat(7, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1920px) {
    .renewal-metrics-grid {
        grid-template-columns: repeat(7, 1fr);
        gap: 1.25rem;
    }
}

@media (max-width: 1600px) {
    .renewal-metrics-grid {
        grid-template-columns: repeat(7, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 1400px) {
    .renewal-metrics-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .renewal-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .renewal-metrics-grid {
        grid-template-columns: 1fr;
    }
}

.metric-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Compact metric cards for renewal metrics grid */
.renewal-metrics-grid .metric-card {
    padding: 1.5rem;
}

.renewal-metrics-grid .metric-card .metric-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 0.75rem;
}

.renewal-metrics-grid .metric-card .metric-value {
    font-size: 1.5rem;
}

.renewal-metrics-grid .metric-card .metric-label {
    font-size: 0.85rem;
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #10b981, #059669, #047857);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-5px);
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.metric-card:hover::before {
    opacity: 1;
}

.metric-card .metric-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: white;
}

.metric-content h4 {
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-value {
    color: #f1f5f9;
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.metric-label {
    color: #94a3b8;
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 0.5rem;
    text-transform: none;
    line-height: 1.4;
}

.metric-subvalue {
    color: #a5b4fc;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 0.25rem;
    opacity: 0.9;
}

.metric-content {
    display: flex;
    flex-direction: column;
}

/* Scorecards Container */
.scorecards-container {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

/* Carousel Controls */
.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.carousel-btn {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    padding: 1rem;
    color: #10b981;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: rgba(16, 185, 129, 0.2);
    border-color: #10b981;
    transform: scale(1.05);
}

.carousel-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.carousel-info {
    color: #94a3b8;
    font-weight: 500;
}

/* Scorecards Carousel */
.scorecards-carousel {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    min-height: 600px;
    transition: opacity 0.2s ease, transform 0.2s ease;
    overflow: visible;
    opacity: 1;
    transform: translateY(0);
}

.scorecards-carousel.fade-out {
    opacity: 0;
    transform: translateY(10px);
}

/* Individual Scorecard */
.scorecard {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(15px);
    transition: all 0.4s ease;
    position: relative;
    overflow: visible;
    animation: scorecardSlideIn 0.6s ease-out;
    pointer-events: auto; /* Ensure card receives mouse events */
}

.scorecard::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #10b981, #059669, #047857, #065f46);
    background-size: 200% 100%;
    animation: gradientShift 3s ease-in-out infinite;
    pointer-events: none; /* Don't block mouse events */
}

/* Health ribbon and badge should not block events */
.scorecard .health-ribbon,
.scorecard .health-badge {
    pointer-events: none;
}

.scorecard:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

/* Health Ribbon System */
.health-ribbon {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 8px;
    border-radius: 0 20px 0 0;
    z-index: 15;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    pointer-events: none; /* Don't block mouse events */
}

.health-excellent {
    background: linear-gradient(90deg, #10B981, #059669);
}

.health-good {
    background: linear-gradient(90deg, #3B82F6, #2563EB);
}

.health-fair {
    background: linear-gradient(90deg, #F59E0B, #D97706);
}

.health-poor {
    background: linear-gradient(90deg, #EF4444, #DC2626);
}

.health-critical {
    background: linear-gradient(90deg, #7C2D12, #991B1B);
}

.health-unknown {
    background: linear-gradient(90deg, #6B7280, #4B5563);
}

/* Health Score Badge */
.health-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 30;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border-radius: 0 20px 0 20px;
    transform: rotate(0deg);
    transform-origin: top right;
    pointer-events: none; /* Don't block mouse events on the card */
}

.health-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -8px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 8px 16px 0;
    border-color: transparent #667eea transparent transparent;
    pointer-events: none;
}

.health-badge::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: -8px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 16px 0 0 8px;
    border-color: #764ba2 transparent transparent transparent;
    pointer-events: none;
}

.health-badge.excellent { 
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}
.health-badge.excellent::before { border-color: transparent #10b981 transparent transparent; }
.health-badge.excellent::after { border-color: #059669 transparent transparent transparent; }

.health-badge.good { 
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}
.health-badge.good::before { border-color: transparent #3b82f6 transparent transparent; }
.health-badge.good::after { border-color: #2563eb transparent transparent transparent; }

.health-badge.fair { 
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}
.health-badge.fair::before { border-color: transparent #f59e0b transparent transparent; }
.health-badge.fair::after { border-color: #d97706 transparent transparent transparent; }

.health-badge.poor { 
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}
.health-badge.poor::before { border-color: transparent #ef4444 transparent transparent; }
.health-badge.poor::after { border-color: #dc2626 transparent transparent transparent; }

.health-badge.critical { 
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
}
.health-badge.critical::before { border-color: transparent #dc2626 transparent transparent; }
.health-badge.critical::after { border-color: #991b1b transparent transparent transparent; }

.health-badge.unknown { 
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}
.health-badge.unknown::before { border-color: transparent #6b7280 transparent transparent; }
.health-badge.unknown::after { border-color: #4b5563 transparent transparent transparent; }

/* Health Tooltip - Updated to match Salesforce tooltip system */
.health-tooltip {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #1a1a24 0%, #2d2d3a 100%);
    color: #ffffff;
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
    max-width: 400px;
    min-width: 300px;
    z-index: 999999;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 215, 0, 0.3);
    border: 2px solid #FFD700;
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateX(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.health-tooltip.show {
    opacity: 1;
    transform: translateX(0) scale(1);
    animation: tooltipGlow 2s ease-in-out infinite alternate;
}

.health-tooltip::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #FFD700;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
}

@keyframes tooltipGlow {
    0% {
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 215, 0, 0.3);
        border-color: #FFD700;
    }
    100% {
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 215, 0, 0.6);
        border-color: #FFA500;
    }
}

.health-tooltip-title {
    font-weight: 600;
    margin-bottom: 8px;
    color: #F3F4F6;
}

.health-tooltip-breakdown {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 8px;
    font-size: 11px;
}

.health-tooltip-breakdown .label {
    color: #D1D5DB;
}

.health-tooltip-breakdown .score {
    color: #F3F4F6;
    font-weight: 500;
}

.health-tooltip-risk {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #374151;
}

.health-tooltip-risk-title {
    font-weight: 600;
    color: #FCA5A5;
    margin-bottom: 4px;
}

/* Health Score Documentation Modal */
.health-score-modal {
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 20px;
    backdrop-filter: blur(15px);
    padding: 2rem;
    position: relative;
    z-index: inherit;
    margin: auto;
    transform: scale(0.95);
    transition: transform 0.2s ease;
}

.health-score-modal::-webkit-scrollbar {
    width: 8px;
}

.health-score-modal::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.health-score-modal::-webkit-scrollbar-thumb {
    background: rgba(16, 185, 129, 0.5);
    border-radius: 4px;
}

.health-score-modal::-webkit-scrollbar-thumb:hover {
    background: rgba(16, 185, 129, 0.7);
}

/* Health Score Modal Specific Styles */
#healthScoreModal {
    z-index: 1000001 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(10px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: auto !important;
}

#healthScoreModal .modal-content {
    pointer-events: auto;
    position: relative;
    z-index: 1000002;
}

#healthScoreModal .modal-close {
    z-index: 1000003;
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#healthScoreModal .modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.health-score-intro {
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 8px;
    border-left: 4px solid #10B981;
}

.health-score-intro p {
    margin: 0;
    color: #E2E8F0;
    line-height: 1.6;
}

.health-score-breakdown {
    margin-bottom: 2rem;
}

.health-score-breakdown h3 {
    color: #F1F5F9;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.score-components {
    display: grid;
    gap: 1rem;
}

.score-component {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.score-component:hover {
    border-color: rgba(16, 185, 129, 0.4);
    background: rgba(15, 23, 42, 0.8);
}

.component-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.component-name {
    color: #F1F5F9;
    font-weight: 600;
    font-size: 1rem;
}

.component-weight {
    color: #10B981;
    font-weight: 700;
    font-size: 0.875rem;
    background: rgba(16, 185, 129, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.component-description {
    color: #CBD5E1;
    font-size: 0.875rem;
    line-height: 1.5;
}

.health-score-levels {
    margin-bottom: 2rem;
}

.health-score-levels h3 {
    color: #F1F5F9;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.health-levels {
    display: grid;
    gap: 0.75rem;
}

.health-level {
    display: flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 8px;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.health-level:hover {
    background: rgba(15, 23, 42, 0.8);
}

.level-ribbon {
    width: 20px;
    height: 8px;
    border-radius: 4px;
    margin-right: 1rem;
    flex-shrink: 0;
}

.health-level.excellent .level-ribbon {
    background: linear-gradient(90deg, #10B981, #059669);
}

.health-level.good .level-ribbon {
    background: linear-gradient(90deg, #3B82F6, #2563EB);
}

.health-level.fair .level-ribbon {
    background: linear-gradient(90deg, #F59E0B, #D97706);
}

.health-level.poor .level-ribbon {
    background: linear-gradient(90deg, #EF4444, #DC2626);
}

.health-level.critical .level-ribbon {
    background: linear-gradient(90deg, #7C2D12, #991B1B);
}

.level-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.level-name {
    color: #F1F5F9;
    font-weight: 600;
    font-size: 1rem;
}

.level-range {
    color: #10B981;
    font-size: 0.875rem;
    font-weight: 500;
}

.level-description {
    color: #CBD5E1;
    font-size: 0.875rem;
    line-height: 1.4;
}

.health-score-usage {
    margin-bottom: 2rem;
}

.health-score-usage h3 {
    color: #F1F5F9;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.health-score-usage ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.health-score-usage li {
    color: #CBD5E1;
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.5;
}

.health-score-usage li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10B981;
    font-weight: bold;
}

.health-score-usage strong {
    color: #F1F5F9;
}

.health-score-note {
    display: flex;
    align-items: flex-start;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.note-icon {
    font-size: 1.25rem;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.note-content {
    color: #CBD5E1;
    line-height: 1.5;
}

.note-content strong {
    color: #3B82F6;
}

/* Scorecard Header */
.scorecard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.scorecard-title {
    color: #f1f5f9;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.scorecard-id {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Scorecard Metrics */
.scorecard-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.scorecard-metric {
    text-align: center;
    padding: 1rem;
    background: rgba(16, 185, 129, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(16, 185, 129, 0.1);
}

.scorecard-metric-value {
    color: #f1f5f9;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.scorecard-metric-label {
    color: #94a3b8;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Product Groups */
.product-groups {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.product-groups-title {
    color: #f1f5f9;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.product-groups-title::before {
    content: '📊';
    margin-right: 0.5rem;
}

.product-groups-content {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.product-groups-chart {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
}

.product-groups-list {
    flex: 1;
    min-width: 0;
}

.products-list {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.products-list-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.products-list-items {
    font-size: 0.75rem;
    color: #cbd5e1;
    line-height: 1.4;
    word-wrap: break-word;
}

.product-item {
    display: inline-block;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    margin: 0.125rem 0.25rem 0.125rem 0;
    font-size: 0.7rem;
    color: #e2e8f0;
    transition: all 0.2s ease;
}

.product-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.product-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: rgba(16, 185, 129, 0.05);
    border-radius: 8px;
    border-left: 3px solid #10b981;
    transition: all 0.3s ease;
}

.product-group:hover {
    background: rgba(16, 185, 129, 0.1);
    transform: translateX(5px);
}

.product-group-name {
    color: #f1f5f9;
    font-weight: 600;
    font-size: 0.9rem;
}

.product-group-metrics {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
    font-size: 0.8rem;
    min-width: 120px;
}

.product-group-tcv {
    color: #10b981;
    font-weight: 600;
}

.product-group-arr {
    color: #10b981;
    font-weight: 600;
}

.product-group-percentage {
    color: #f59e0b;
    font-weight: 600;
}

.product-group-transactions {
    color: #94a3b8;
}

/* Customer Timeline */
.customer-timeline {
    border-top: 1px solid rgba(16, 185, 129, 0.2);
    padding-top: 1rem;
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.timeline-label {
    color: #94a3b8;
}

.timeline-value {
    color: #f1f5f9;
    font-weight: 600;
}

/* Animations */
@keyframes scorecardSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    /* On mobile, show 1 card per row */
    .scorecards-carousel {
        grid-template-columns: 1fr;
    }
    
    .scorecard-metrics {
        grid-template-columns: 1fr;
    }
    
    .search-input {
        width: 200px;
    }
    
    #scorecards .page-title {
        font-size: 2rem;
    }
}

/* Loading States */
.scorecards-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    color: #94a3b8;
    font-size: 1.1rem;
}

.scorecards-loading::before {
    content: '';
    width: 40px;
    height: 40px;
    border: 3px solid rgba(16, 185, 129, 0.3);
    border-top: 3px solid #10b981;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 1rem;
}

/* Empty State */
.scorecards-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: #94a3b8;
}

.scorecards-empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.scorecards-empty-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #f1f5f9;
}

.scorecards-empty-message {
    font-size: 1rem;
    opacity: 0.8;
}