/* MSB Middleware Foundation UI - Custom Styles */

/* Error UI */
#blazor-error-ui {
    background: #ff4444;
    color: white;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    font-family: Roboto, sans-serif;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
    color: white;
    opacity: 0.8;
}

#blazor-error-ui .dismiss:hover {
    opacity: 1;
}

#blazor-error-ui .reload {
    color: white;
    text-decoration: underline;
    margin-left: 0.5rem;
}

/* Custom utility classes */
.cursor-pointer {
    cursor: pointer;
}

.text-overflow-ellipsis {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Card hover effect */
.mud-card.hover-effect:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease-in-out;
}

/* Status indicators */
.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

.status-indicator.active {
    background-color: #4caf50;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.5);
}

.status-indicator.inactive {
    background-color: #9e9e9e;
}

.status-indicator.error {
    background-color: #f44336;
    box-shadow: 0 0 8px rgba(244, 67, 54, 0.5);
}

.status-indicator.warning {
    background-color: #ff9800;
    box-shadow: 0 0 8px rgba(255, 152, 0, 0.5);
}

/* Live indicator animation */
.live-indicator {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

/* Timeline styles for Job History */
.job-timeline {
    position: relative;
    padding-left: 30px;
}

.job-timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #e0e0e0;
}

.job-timeline-item {
    position: relative;
    margin-bottom: 20px;
}

.job-timeline-item::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #003B6D;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #003B6D;
}

.job-timeline-item.success::before {
    background-color: #4caf50;
    box-shadow: 0 0 0 2px #4caf50;
}

.job-timeline-item.error::before {
    background-color: #f44336;
    box-shadow: 0 0 0 2px #f44336;
}

/* Responsive table fixes */
@media (max-width: 600px) {
    .mud-table-container {
        overflow-x: auto;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }

    .mud-drawer {
        display: none !important;
    }

    .mud-appbar {
        display: none !important;
    }

    .mud-main-content {
        margin-left: 0 !important;
        padding-top: 0 !important;
    }
}
