/* CSS for ORC Job Runner interface */

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

.status-running {
    background-color: #0d6efd;
    animation: pulse 2s infinite;
}

.status-idle {
    background-color: #6c757d;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

/* Job cards */
.job-card {
    transition: box-shadow 0.2s ease-in-out;
    background-color: #fff;
}

.job-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Toast notifications */
.toast-container {
    z-index: 1100;
}

/* Modal improvements */
.modal-xl {
    max-width: 90%;
}

/* Code blocks */
pre {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.85em;
}

/* Table improvements */
.table th {
    border-top: none;
    font-weight: 600;
    color: #495057;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

/* Button improvements */
.btn-group-sm > .btn, .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Badge improvements */
.badge {
    font-size: 0.75em;
}

.badge i {
    margin-right: 3px;
}

/* Form improvements */
.form-label {
    font-weight: 500;
    color: #495057;
}

.form-text {
    font-size: 0.8rem;
}

/* Card improvements */
.card-header h5, .card-header h6 {
    margin-bottom: 0;
}

.card-header i {
    margin-right: 5px;
}

/* Navbar improvements */
.navbar-brand i {
    margin-right: 5px;
}

/* Loading states */
.spinner-border {
    width: 2rem;
    height: 2rem;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .job-card .col-md-3.text-end {
        text-align: start !important;
        margin-top: 1rem;
    }
    
    .btn-group-vertical .btn {
        margin-bottom: 0.25rem;
    }
    
    .table-responsive {
        font-size: 0.9rem;
    }
}

/* Custom scrollbar for code blocks */
pre::-webkit-scrollbar {
    height: 8px;
    width: 8px;
}

pre::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

pre::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

pre::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Icon spacing */
.fas, .far {
    margin-right: 3px;
}

.btn .fas, .btn .far {
    margin-right: 5px;
}

/* Alert improvements */
.alert i {
    margin-right: 8px;
}

/* Filter section */
.card-header h6 i {
    color: #6c757d;
}

/* Job parameters section */
#job-parameters h6 {
    color: #495057;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

/* Run details styling */
#run-details-content .table td:first-child {
    width: 120px;
    color: #6c757d;
}

/* Success/error states */
.text-success {
    color: #198754 !important;
}

.text-danger {
    color: #dc3545 !important;
}

/* Empty state */
.fa-inbox {
    color: #dee2e6;
}

/* Navigation active state */
.nav-link.active {
    font-weight: 600;
}