/* KPIs Manual Dashboard - Clean & Minimal Design */

/* Section Headers - Clean Style */
.section-header {
    background: #2c3e50;
    border-radius: 8px;
    padding: 16px 20px;
    border-left: 3px solid #007bff;
    margin-bottom: 24px;
}

.section-icon {
    background: rgba(0, 123, 255, 0.1);
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #007bff;
}

.section-title {
    color: #ffffff;
    font-weight: 600;
    font-size: 1.2rem;
    margin: 0;
}

.section-subtitle {
    color: #adb5bd;
    font-size: 0.85rem;
    margin: 0;
    font-weight: 400;
}

/* Clean Metric Cards */
.metric-card {
    background: #343a40;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #495057;
    transition: all 0.2s ease;
    position: relative;
    height: 100%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #6c757d;
}

/* Card Color Variants - Subtle Accents */
.metric-primary { border-left: 3px solid #007bff; }
.metric-success { border-left: 3px solid #28a745; }
.metric-warning { border-left: 3px solid #ffc107; }
.metric-danger { border-left: 3px solid #dc3545; }
.metric-info { border-left: 3px solid #17a2b8; }
.metric-secondary { border-left: 3px solid #6c757d; }

/* Metric Header - Clean Layout */
.metric-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.metric-icon {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #ffffff;
}

.metric-trend {
    background: rgba(40, 167, 69, 0.1);
    border-radius: 4px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #28a745;
}

.metric-trend.negative {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.metric-badge {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 500;
    color: #ffffff;
}

.metric-badge.simple {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.metric-badge.complex {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.metric-unit {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 500;
    color: #adb5bd;
}

.metric-range {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 11px;
    color: #adb5bd;
}

.range-separator {
    color: #6c757d;
}

.metric-comparison {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    padding: 2px 6px;
}

.ratio-text {
    font-size: 10px;
    font-weight: 500;
    color: #ffffff;
}

.metric-status {
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-indicator.warning {
    background: #ffc107;
}

.status-indicator.danger {
    background: #dc3545;
}

.status-text {
    font-size: 10px;
    font-weight: 500;
    color: #adb5bd;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Metric Content - Clean Typography */
.metric-content {
    color: #ffffff;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 6px;
    color: #ffffff;
}

.metric-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 4px;
}

.metric-subtitle {
    font-size: 0.75rem;
    color: #adb5bd;
    line-height: 1.4;
    font-weight: 400;
}

/* Progress Bars - Minimal Style */
.metric-progress {
    margin-top: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    height: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: #007bff;
    border-radius: 2px;
    transition: width 0.6s ease;
}

.metric-success .progress-bar { background: #28a745; }
.metric-warning .progress-bar { background: #ffc107; }
.metric-danger .progress-bar { background: #dc3545; }
.metric-info .progress-bar { background: #17a2b8; }
.metric-secondary .progress-bar { background: #6c757d; }

/* Large Cards - Simplified */
.metric-large {
    min-height: 140px;
}

.metric-large .metric-value {
    font-size: 2.25rem;
}

.metric-large .metric-content {
    padding-top: 4px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .metric-card {
        padding: 16px;
        margin-bottom: 12px;
    }
    
    .metric-value {
        font-size: 1.75rem;
    }
    
    .metric-large .metric-value {
        font-size: 2rem;
    }
    
    .section-header {
        padding: 12px 16px;
    }
    
    .section-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}

/* Executive Dashboard Header */
.executive-dashboard .executive-header {
    background: #2c3e50;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
}

.executive-title {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.executive-subtitle {
    color: #adb5bd;
    font-size: 0.9rem;
    margin: 0;
    font-weight: 400;
}

/* Filter Buttons */
.btn-outline-info {
    border-color: #17a2b8;
    color: #17a2b8;
}

.btn-outline-info:hover {
    background-color: #17a2b8;
    border-color: #17a2b8;
}

.btn-info {
    background-color: #17a2b8;
    border-color: #17a2b8;
}

/* Tables - Clean Style */
.table-dark {
    background-color: #343a40;
}

.table-dark th {
    border-color: #495057;
    font-weight: 500;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #adb5bd;
}

.table-dark td {
    border-color: #495057;
    font-size: 0.875rem;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
