﻿.card.bg-warning {
    color: #322461;
}

.card.bg-primary,
.card.bg-success,
.card.bg-info {
    color: #ffffff;
}

.report-link.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
    position: relative;
}

    .report-link.disabled::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.05);
        border-radius: 4px;
    }

.report-link i.fa-lock {
    font-size: 0.8em;
    margin-left: 5px;
    color: #6c757d;
}


.nav-flow-status.processing {
    color: #727cf5;
}

.nav-flow-status.error {
    color: #fa5c7c;
}
        
.flow-monitor {
/*    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;*/
}

.flow-container {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.flow-step {
    display: flex;
    align-items: center;
    position: relative;
}

.flow-node {
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 250px;
    transition: all 0.3s ease;
}

.flow-connector {
    flex: 1;
    height: 2px;
    background: #dee2e6;
    margin: 0 1rem;
    position: relative;
}

    .flow-connector::after {
        content: '';
        position: absolute;
        right: -6px;
        top: -4px;
        width: 10px;
        height: 10px;
        border-right: 2px solid #dee2e6;
        border-bottom: 2px solid #dee2e6;
        transform: rotate(-45deg);
    }

/* Status Classes */
.flow-step.pending .flow-node {
    border-color: #6c757d;
}

.flow-step.processing .flow-node {
    border-color: #0d6efd;
    animation: pulse 2s infinite;
}

.flow-step.completed .flow-node {
    border-color: #198754;
}

.flow-step.error .flow-node {
    border-color: #dc3545;
}

.flow-step.manual-review .flow-node {
    border-color: #ffc107;
}

/* Status Badge */
.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    margin-left: auto;
}

    .status-badge.pending {
        background: #e9ecef;
        color: #495057;
    }

    .status-badge.processing {
        background: #cfe2ff;
        color: #084298;
    }

    .status-badge.completed {
        background: #d1e7dd;
        color: #0f5132;
    }

    .status-badge.error {
        background: #f8d7da;
        color: #842029;
    }

    .status-badge.manual-review {
        background: #fff3cd;
        color: #664d03;
    }

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
    }
}

.timeline {
    position: relative;
    padding: 20px 0;
}

    .timeline::before {
        content: '';
        position: absolute;
        top: 0;
        left: 15px;
        height: 100%;
        width: 2px;
        background: #dee2e6;
    }

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding-left: 40px;
}

.timeline-marker {
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #dee2e6;
    z-index: 1;
}

.timeline-content {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Timeline Status States */
.timeline-item.pending .timeline-marker {
    border-color: #6c757d;
}

.timeline-item.processing .timeline-marker {
    border-color: #0d6efd;
    animation: pulse 2s infinite;
}

.timeline-item.completed .timeline-marker {
    border-color: #198754;
    background: #198754;
}

.timeline-item.error .timeline-marker {
    border-color: #dc3545;
    background: #dc3545;
}

.timeline-item.manual-review .timeline-marker {
    border-color: #ffc107;
    background: #ffc107;
}

/* Timeline Progress Line */
.timeline-item.completed::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 30px;
    height: calc(100% + 30px);
    width: 2px;
    background: #198754;
}

.timeline-time {
    display: flex;
    justify-content: space-between;
    color: #6c757d;
    font-size: 0.875rem;
    margin-top: 5px;
}

.timeline-status {
    margin-top: 10px;
}

.analytics-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    height: 100%;
}

    .analytics-card h5 {
        color: #495057;
        margin-bottom: 1rem;
    }

    .analytics-card ul li {
        margin-bottom: 0.5rem;
        color: #6c757d;
    }

        .analytics-card ul li strong {
            color: #212529;
        }

#timelineChart {
    height: 300px;
}

.pulse {
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {

    0% {
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(13, 110, 253, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0);
    }
}

/*Add Debug Styles*/

.debug-panel {
    max-height: 500px;
    overflow: hidden;
    background: #1e1e1e;
    color: #d4d4d4;
}

.debug-log-container {
    height: 400px;
    overflow-y: auto;
    background: #1e1e1e;
    padding: 1rem;
    font-family: 'Consolas', monospace;
    font-size: 0.9rem;
}

.debug-entry {
    margin-bottom: 0.5rem;
    white-space: pre-wrap;
    word-break: break-all;
}

.debug-timestamp {
    color: #569cd6;
    margin-right: 0.5rem;
}

.debug-type {
    color: #4ec9b0;
    margin-right: 0.5rem;
}

.debug-log .debug-message {
    color: #d4d4d4;
}

.debug-warn .debug-message {
    color: #dcdcaa;
}

.debug-error .debug-message {
    color: #f14c4c;
}

.debug-info .debug-message {
    color: #9cdcfe;
}

.debug-controls {
    border-top: 1px solid #333;
    padding-top: 1rem;
}


/*Add Notification Styles*/

.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.notification {
    background: white;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    margin-bottom: 10px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 300px;
    max-width: 450px;
    transition: all 0.3s ease;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification-success {
    border-left: 4px solid #28a745;
}

.notification-error {
    border-left: 4px solid #dc3545;
}

.notification-warning {
    border-left: 4px solid #ffc107;
}

.notification-info {
    border-left: 4px solid #17a2b8;
}

.notification.fade-in {
    animation: fadeIn 0.3s ease-in;
}

.notification.fade-out {
    animation: fadeOut 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/*Add Analytics Dashboard Styles*/

.analytics-dashboard {
    background: #f8f9fa;
}

.metric-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    text-align: center;
}

    .metric-card h6 {
        color: #6c757d;
        margin-bottom: 0.5rem;
    }

.metric-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: #212529;
}

.timeline-item-completed {
    background-color: rgba(40, 167, 69, 0.5);
    border-color: rgba(40, 167, 69, 1);
}

.timeline-item-processing {
    background-color: rgba(0, 123, 255, 0.5);
    border-color: rgba(0, 123, 255, 1);
}

.timeline-item-error {
    background-color: rgba(220, 53, 69, 0.5);
    border-color: rgba(220, 53, 69, 1);
}

.timeline-item-pending {
    background-color: rgba(108, 117, 125, 0.5);
    border-color: rgba(108, 117, 125, 1);
}

/*Add Health Check Styles*/

.health-indicator {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 1rem;
    background: white;
    border-radius: 4px;
    margin-left: auto;
}

.health-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.status-healthy {
    background-color: #28a745;
}

.status-warning {
    background-color: #ffc107;
}

.status-critical {
    background-color: #dc3545;
}

.health-details {
    font-size: 0.875rem;
    color: #6c757d;
}
/*Add Dependency Visualizer Styles*/

#dependencyGraph {
    height: 600px !important;
    min-height: 600px !important;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

    #dependencyGraph .vis-network {
        height: 600px !important;
    }

    #dependencyGraph canvas {
        height: 600px !important;
    }

.step-details {
    padding: 1rem;
}

.processing-time {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.metric-item {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.metric-label {
    color: #6c757d;
    font-size: 0.875rem;
}

.metric-value {
    font-weight: 500;
}

.dependencies-section h7 {
    font-weight: 600;
    color: #495057;
    display: block;
    margin-bottom: 0.5rem;
}

.dependencies-section ul li {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0;
}

.dependencies-section .bi {
    font-size: 1.25rem;
    color: #6c757d;
}

/* Auto-Refresh Styles*/

.auto-refresh-control {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: 1rem;
}

    .auto-refresh-control .form-select {
        width: auto;
    }

/* Error Boundary Styles*/

.error-analysis {
    font-size: 0.9rem;
}

.error-stack {
    max-height: 200px;
    overflow-y: auto;
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    font-family: monospace;
}

.error-analysis h6 {
    color: #495057;
    margin-bottom: 1rem;
}

.error-analysis h7 {
    font-weight: 600;
    color: #495057;
    display: block;
    margin-bottom: 0.5rem;
}

.error-analysis dl {
    margin-bottom: 0;
}

.error-analysis dt {
    font-weight: 600;
    color: #6c757d;
}

.error-analysis dd {
    margin-bottom: 0.5rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.recovery-attempts {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
}

/* Error Monitoring Styles*/

.error-monitoring-dashboard {
    background: #fff;
    margin-top: 2rem;
}

.alert-container {
    max-height: 300px;
    overflow-y: auto;
}

.alert {
    margin-bottom: 0.5rem;
}

    .alert:last-child {
        margin-bottom: 0;
    }

.error-chart {
    height: 250px;
}

.error-alert {
    border-left: 4px solid;
    padding: 1rem;
    margin-bottom: 1rem;
    background: #f8f9fa;
}

    .error-alert.severity-danger {
        border-left-color: #dc3545;
    }

    .error-alert.severity-warning {
        border-left-color: #ffc107;
    }

    .error-alert.severity-info {
        border-left-color: #17a2b8;
    }

/* recovery strategy styles */

.validation-error {
    border: 2px solid #dc3545;
    animation: pulse-error 2s infinite;
}

@keyframes pulse-error {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

.recovery-attempt {
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    border-left: 4px solid #ffc107;
    background: #fff3cd;
}

.recovery-success {
    border-left-color: #28a745;
    background: #d4edda;
}

.recovery-failure {
    border-left-color: #dc3545;
    background: #f8d7da;
}

/* recovery tracking styles */

.recovery-status-panel {
    background: #fff;
    margin-top: 2rem;
}

.recovery-attempt {
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.trend-card {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.trend-improving {
    border-left: 4px solid #28a745;
}

.trend-degrading {
    border-left: 4px solid #dc3545;
}

.trend-stable {
    border-left: 4px solid #17a2b8;
}

.trend-neutral {
    border-left: 4px solid #6c757d;
}

.recommendation-card {
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 4px;
    background: #f8f9fa;
}

    .recommendation-card.priority-critical {
        border-left: 4px solid #dc3545;
    }

    .recommendation-card.priority-high {
        border-left: 4px solid #ffc107;
    }

    .recommendation-card.priority-medium {
        border-left: 4px solid #17a2b8;
    }

    .recommendation-card.priority-low {
        border-left: 4px solid #6c757d;
    }

.stat-card {
    background: white;
    padding: 1rem;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    text-align: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: #212529;
}

.recovery-attempts {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 1rem;
}

.trend-value {
    font-size: 1.1rem;
    font-weight: 500;
    margin-top: 0.5rem;
}

    .trend-value i {
        margin-right: 0.5rem;
    }

/* recovery metrics styles */

.impact-metric-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    height: 100%;
}

    .impact-metric-card .metric-value {
        font-size: 1.5rem;
        font-weight: 600;
        margin: 1rem 0;
    }

.strategy-item {
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
}

    .strategy-item:last-child {
        border-bottom: none;
    }

.timeline-chart-container {
    height: 300px;
}

.affected-operations .progress {
    width: 100px;
}

.analysis-container {
    max-height: 80vh;
    overflow-y: auto;
}

.resource-metrics .chart-container {
    height: 200px;
}

.impact-timeline {
    position: relative;
}

.concurrent-operations {
    margin-top: 2rem;
}

.recommendation-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

    .recommendation-card:last-child {
        margin-bottom: 0;
    }

/* real-time monitoring styles */

.realtime-dashboard {
    background: #fff;
}

.metric-tile {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.metric-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.metric-info {
    flex: 1;
}

.metric-label {
    font-size: 0.875rem;
    color: #6c757d;
}

.metric-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
}

.chart-container {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
}

.alerts-panel {
    max-height: 300px;
    overflow-y: auto;
}

.health-indicator {
    padding: 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

    .health-indicator.healthy {
        background-color: rgba(40, 167, 69, 0.1);
        border-left: 4px solid #28a745;
    }

    .health-indicator.degraded {
        background-color: rgba(255, 193, 7, 0.1);
        border-left: 4px solid #ffc107;
    }

    .health-indicator.critical {
        background-color: rgba(220, 53, 69, 0.1);
        border-left: 4px solid #dc3545;
    }

.indicator-label {
    font-size: 0.875rem;
    color: #6c757d;
}

.indicator-value {
    font-weight: 500;
}

/* chart styles */

.chart-container {
    position: relative;
    margin: auto;
    height: 300px;
    width: 100%;
}

    .chart-container canvas {
        width: 100% !important;
        height: 100% !important;
    }

.chart-container {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.analytics-dashboard .row {
    margin-bottom: 2rem;
}

canvas {
    width: 100% !important;
    height: 100% !important;
}


@media print {
    .no-print {
        display: none;
    }

    body {
        /*margin: 1in;*/
    }
}
