/* ChemCloud Custom Styles - Consistent UI Components */

/* ==========================================================================
   CARDS - Consistent card styling across all pages
   ========================================================================== */

.chemcloud-card {
    background-color: white !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
}

.chemcloud-card .card-body {
    padding: 1.25rem !important;
}

.chemcloud-card .card-title {
    color: #6c757d !important;
    font-weight: normal !important;
    font-size: 1rem !important;
    margin-bottom: 1rem !important;
}

/* ==========================================================================
   TABLES - Consistent table styling across all pages
   ========================================================================== */

.chemcloud-table {
    margin-bottom: 0 !important;
    font-size: 0.875rem !important;
}

.chemcloud-table thead th {
    border: 0 !important;
    color: #6c757d !important;
    font-weight: normal !important;
    font-size: 0.875rem !important;
    padding: 0.5rem !important;
}

.chemcloud-table tbody td {
    border-top: 1px solid #dee2e6 !important;
    color: #6c757d !important;
    font-size: 0.875rem !important;
    padding: 0.75rem 0.5rem !important;
    vertical-align: middle !important;
}

.chemcloud-table tbody td .text-muted {
    color: #6c757d !important;
    font-size: 0.875rem !important;
}

.chemcloud-table tbody td .small {
    font-size: 0.875rem !important;
    color: #6c757d !important;
}

/* ==========================================================================
   BUTTONS - Consistent button styling
   ========================================================================== */

.chemcloud-btn {
    border: 1px solid #6c757d !important;
    color: #6c757d !important;
    background-color: transparent !important;
    font-size: 0.875rem !important;
    padding: 0.25rem 0.75rem !important;
    border-radius: 0.25rem !important;
}

.chemcloud-btn:hover {
    background-color: #6c757d !important;
    color: white !important;
}

/* ==========================================================================
   STATUS BADGES - Consistent badge styling
   ========================================================================== */

.chemcloud-status {
    border: 1px solid #6c757d !important;
    color: #6c757d !important;
    background-color: transparent !important;
    font-size: 0.875rem !important;
    padding: 0.25rem 0.75rem !important;
    border-radius: 0.25rem !important;
    display: inline-block !important;
    font-weight: normal !important;
}

/* ==========================================================================
   FILTERS - Consistent filter card styling
   ========================================================================== */

.chemcloud-filter-card {
    background-color: white !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 8px !important;
    margin-bottom: 1.5rem !important;
}

.chemcloud-filter-card .card-body {
    padding: 1.25rem !important;
}

.chemcloud-filter-card .form-label {
    color: #6c757d !important;
    font-size: 0.875rem !important;
    font-weight: normal !important;
    margin-bottom: 0.5rem !important;
}

/* ==========================================================================
   PAGINATION - Consistent pagination styling
   ========================================================================== */

.chemcloud-pagination {
    padding-top: 1rem !important;
    margin-top: 1.5rem !important;
}

.chemcloud-pagination .pagination-sm .page-link {
    color: #6c757d !important;
    border-color: #dee2e6 !important;
    font-size: 0.875rem !important;
}

.chemcloud-pagination .pagination-sm .page-item.active .page-link {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    color: white !important;
}

/* ==========================================================================
   TEXT UTILITIES - Consistent text styling
   ========================================================================== */

.chemcloud-text-muted {
    color: #6c757d !important;
    font-size: 0.875rem !important;
}

.chemcloud-text-small {
    font-size: 0.875rem !important;
    color: #6c757d !important;
}

/* ==========================================================================
   BREADCRUMBS - Consistent breadcrumb styling
   ========================================================================== */

.chemcloud-breadcrumb {
    margin-bottom: 0 !important;
}

.chemcloud-breadcrumb .breadcrumb-item {
    font-size: 0.875rem !important;
}

.chemcloud-breadcrumb .breadcrumb-item a {
    color: #6c757d !important;
    text-decoration: none !important;
}

.chemcloud-breadcrumb .breadcrumb-item.active {
    color: #6c757d !important;
}

/* ==========================================================================
   DETAIL TABLES - Consistent detail view table styling
   ========================================================================== */

.chemcloud-detail-table {
    margin-bottom: 0 !important;
}

.chemcloud-detail-table td {
    border: none !important;
    padding: 0.5rem 0 !important;
    font-size: 0.875rem !important;
    vertical-align: top !important;
}

.chemcloud-detail-table td:first-child {
    color: #6c757d !important;
    font-weight: normal !important;
    width: 40% !important;
}

.chemcloud-detail-table td:last-child {
    color: #495057 !important;
    font-weight: normal !important;
}

/* ==========================================================================
   QUEUE DETAIL STYLES - Consistent queue message styling
   ========================================================================== */

.queue-message-card {
    height: 500px !important;
}

.queue-message-content {
    overflow-y: auto !important;
}

.queue-payload-content {
    overflow-y: auto !important;
    max-height: 430px !important;
}

.queue-pre-code {
    white-space: pre-wrap !important;
    word-break: break-word !important;
    margin-bottom: 0 !important;
}

.queue-empty-state {
    text-align: center !important;
    color: #6c757d !important;
    padding: 3rem 0 !important;
}

.queue-btn-square {
    min-height: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    border-radius: 6px !important;
    padding: 12px 8px !important;
}

/* ==========================================================================
   PROGRESS INDICATORS - 3-stage workflow visualization
   ========================================================================== */

.progress-container {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.progress-stage {
    flex: 1 !important;
    padding: 12px !important;
    border-radius: 4px !important;
    border: 1px solid #dee2e6 !important;
    background-color: #f8f9fa !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

.progress-stage.active-success {
    border-color: #28a745 !important;
    background-color: #d4edda !important;
}

.progress-stage.active-warning {
    border-color: #ffc107 !important;
    background-color: #fff3cd !important;
}

.progress-stage.active-success-alt {
    border-color: #28a745 !important;
    background-color: #d4edda !important;
}

.progress-stage-title {
    font-weight: bold !important;
    margin-bottom: 0.25rem !important;
    font-size: 0.875rem !important;
}

.progress-stage-title.text-success {
    color: #155724 !important;
}

.progress-stage-title.text-warning {
    color: #856404 !important;
}

.progress-stage-title.text-muted {
    color: #6c757d !important;
}

.progress-stage-time {
    font-size: 0.75rem !important;
}

.progress-stage-time.text-success {
    color: #155724 !important;
}

.progress-stage-time.text-warning {
    color: #856404 !important;
}

.progress-stage-time.text-muted {
    color: #6c757d !important;
}

.progress-arrow {
    color: #dee2e6 !important;
}

.progress-arrow.active-success {
    color: #28a745 !important;
}

/* ==========================================================================
   TIMELINE - Status history visualization
   ========================================================================== */

.timeline-marker {
    width: 12px !important;
    height: 12px !important;
    background-color: #6c757d !important;
    border-radius: 50% !important;
    margin-right: 0.75rem !important;
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

.gap-8 {
    gap: 8px !important;
}

.inline-form {
    display: inline !important;
}

.word-break-all {
    word-break: break-word !important;
}

.detail-table-label {
    width: 40% !important;
}

.text-truncate-200 {
    max-width: 200px !important;
}

.json-pre {
    padding: 1rem !important;
    border-radius: 4px !important;
    overflow-y: auto !important;
}