/* ============================================
   SLOPE GAUGE CARD STYLES
   ============================================ */

   .slope-gauge-card {
    background: var(--theme-bgCard, #1e2436);
    border-radius: 20px;
    padding: 30px 10px;
    border: 1px solid var(--theme-borderLight, #2a3040);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.slope-gauge-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--slope-color, #4dabf7);
}

.slope-gauge-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--theme-shadow, 0 8px 24px rgba(0, 0, 0, 0.2));
}

.slope-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.slope-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--theme-textSecondary, #8e9aaf);
}

.slope-title i {
    font-size: 0.9rem;
}

.slope-value-large {
    font-size: 2.5rem;
    font-weight: 700;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.slope-value-large .value {
    font-size: 2.8rem;
    font-weight: 800;
}

.slope-value-large .unit {
    font-size: 0.9rem;
    color: var(--theme-textSecondary, #8e9aaf);
}

.slope-category {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* Gauge visualization */
.slope-gauge {
    margin: 15px 0;
    position: relative;
}

.gauge-track {
    height: 8px;
    background: linear-gradient(to right, 
        #ff6b6b 0%, #ff9f4a 20%, #ffd93d 40%, 
        #4dabf7 50%, #69db7e 60%, #ffd93d 80%, #ff6b6b 100%);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.gauge-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.gauge-indicator {
    position: absolute;
    top: -12px;
    width: 4px;
    height: 32px;
    background: white;
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
    transform: translateX(-50%);
    transition: left 0.3s ease;
}

.gauge-indicator::after {
    content: '▼';
    position: absolute;
    bottom: -14px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    color: white;
}

.gauge-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    font-size: 0.6rem;
    color: var(--theme-textMuted, #6c7a8e);
}

.gauge-label {
    text-align: center;
    flex: 1;
}

.gauge-label.steep-down { color: #ff6b6b; }
.gauge-label.down { color: #ff9f4a; }
.gauge-label.slight-down { color: #ffd93d; }
.gauge-label.flat { color: #4dabf7; }
.gauge-label.slight-up { color: #69db7e; }
.gauge-label.up { color: #ff9f4a; }
.gauge-label.steep-up { color: #ff6b6b; }

/* Slope stats grid */
.slope-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 12px;
}

.slope-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid var(--theme-borderLight, rgba(255,255,255,0.05));
    font-size: 0.75rem;
}

.slope-stat-label {
    color: var(--theme-textSecondary, #8e9aaf);
}

.slope-stat-value {
    font-weight: 600;
    color: var(--theme-textPrimary, #eef2ff);
}

.slope-description {
    font-size: 0.65rem;
    color: var(--theme-textMuted, #6c7a8e);
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid var(--theme-borderLight, rgba(255,255,255,0.05));
}

.slope-description i {
    margin-right: 4px;
}

/* Slope compact display for instant metrics */
.slope-instant {
    position: relative;
}

.slope-arrow {
    transition: transform 0.3s ease;
}

.slope-arrow.up {
    transform: rotate(0deg);
}

.slope-arrow.down {
    transform: rotate(180deg);
}

/* ============================================
   SLOPE SPLIT LAYOUT - Two Cells (50% each)
   ============================================ */

   .slope-split-container {
    display: flex;
    gap: 16px;
    background: var(--theme-bgCard, #1e2436);
    border-radius: 12px;
    padding: 12px 20px;
    border: 1px solid var(--theme-borderLight, #2a3040);
}

/* LEFT CELL - Slope Gauge (50% width) */
.slope-left-cell {
    flex: 1;
    display: flex;
    align-items: center;
}

.slope-gauge-compact {
    width: 100%;
}

.slope-gauge-compact .slope-gauge {
    margin: 0;
}

.slope-gauge-compact .gauge-track {
    height: 8px;
    background: linear-gradient(to right, 
        #ff6b6b 0%, #ff9f4a 20%, #ffd93d 40%, 
        #4dabf7 50%, #69db7e 60%, #ffd93d 80%, #ff6b6b 100%);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.slope-gauge-compact .gauge-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.slope-gauge-compact .gauge-indicator {
    position: absolute;
    top: -12px;
    width: 4px;
    height: 32px;
    background: white;
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
    transform: translateX(-50%);
    transition: left 0.3s ease;
}

.slope-gauge-compact .gauge-indicator::after {
    content: '▼';
    position: absolute;
    bottom: -14px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    color: white;
}

.slope-gauge-compact .gauge-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
    font-size: 0.55rem;
    color: var(--theme-textMuted, #6c7a8e);
}

.slope-gauge-compact .gauge-label {
    text-align: center;
    flex: 1;
}

/* RIGHT CELL (50% width) - Split into two columns */
.slope-right-cell {
    flex: 1;
    display: flex;
    gap: 20px;
}

/* Column 1: Large Value + Category + Description */
.slope-info-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.slope-value-large {
    display: flex;
    align-items: baseline;
    gap: 4px;
    font-size: 1.8rem;
    font-weight: 700;
}

.slope-value-large .value {
    font-size: 2.2rem;
    font-weight: 800;
}

.slope-value-large .unit {
    font-size: 0.8rem;
    color: var(--theme-textSecondary, #8e9aaf);
}

.slope-value-large .slope-direction {
    font-size: 1.2rem;
    margin-left: 4px;
}

.slope-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    width: fit-content;
}

.slope-category i {
    font-size: 0.65rem;
}

.slope-description {
    font-size: 0.65rem;
    color: var(--theme-textMuted, #6c7a8e);
}

.slope-description i {
    margin-right: 4px;
    font-size: 0.6rem;
}

/* Column 2: 2x2 Stats Grid */
.slope-stats-column {
    flex: 1;
    display: flex;
    align-items: center;
}

.slope-stats-grid-2x2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
}

.slope-stat-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: var(--theme-bgControl, #151a28);
    border-radius: 10px;
    transition: all 0.2s;
}

.slope-stat-card:hover {
    transform: translateY(-2px);
    background: var(--theme-bgHover, rgba(255,255,255,0.05));
}

.slope-stat-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 159, 74, 0.15);
    border-radius: 8px;
}

.slope-stat-icon i {
    font-size: 0.8rem;
    color: var(--theme-accent, #ff9f4a);
}

.slope-stat-content {
    flex: 1;
}

.slope-stat-label {
    font-size: 0.55rem;
    color: var(--theme-textMuted, #6c7a8e);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.slope-stat-value {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--theme-textPrimary, #eef2ff);
}

/* Slope arrow animation */
.slope-arrow {
    transition: transform 0.3s ease;
}

.slope-arrow.up {
    transform: rotate(0deg);
}

.slope-arrow.down {
    transform: rotate(180deg);
}

/* Responsive */
@media (max-width: 900px) {
    .slope-split-container {
        flex-direction: column;
        gap: 16px;
    }
    
    .slope-right-cell {
        flex-direction: column;
        gap: 16px;
    }
    
    .slope-info-column {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 12px;
    }
    
    .slope-stats-grid-2x2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .slope-stats-grid-2x2 {
        grid-template-columns: 1fr;
    }
    
    .slope-info-column {
        justify-content: space-between;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .slope-gauge-card {
        padding: 12px 16px;
    }
    
    .slope-value-large .value {
        font-size: 2rem;
    }
    
    .slope-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .gauge-labels {
        font-size: 0.5rem;
    }
}