/* ===== MINIMALIST FULL-WIDTH LAYOUT ===== */
body, html {
    overflow-x: hidden;
}

.webjobs-container {
    /*width: 100%;
    max-width: 1400px;*/ /* Add max-width */
    width: 100vw;
    max-width: 100%;
    margin: 0 auto; /* Center it */
    padding: 2rem;
    min-height: 100vh;
    background-color: #f8f9fa;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    position: relative;
}

/* ===== HEADER ===== */
.header-section {
    background: white;
    border-bottom: 1px solid #e0e0e0;
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.page-title {
    font-weight: 500;
    color: #1a1a1a;
    font-size: 1.75rem;
    margin: 0;
    display: flex;
    align-items: center;
}

.lead {
    color: #666;
    margin-top: 0.25rem;
    font-weight: 400;
    font-size: 1rem;
}

.header-actions {
    display: flex;
    gap: 0.75rem;
}

/* ===== BUTTONS ===== */
.btn {
    font-weight: 400;
    border-radius: 6px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-primary {
    background: #007bff;
    border-color: #007bff;
    color: white;
}

.btn-outline-secondary {
    background: transparent;
    color: #666;
    border-color: #ddd;
}

.btn-outline-success {
    background: transparent;
    color: #28a745;
    border-color: #28a745;
}

.btn-outline-warning {
    background: transparent;
    color: #ffc107;
    border-color: #ffc107;
}

.btn-outline-danger {
    background: transparent;
    color: #dc3545;
    border-color: #dc3545;
}

.btn-success {
    background: #28a745;
    border-color: #28a745;
    color: white;
}

.btn-warning {
    background: #ffc107;
    border-color: #ffc107;
    color: #212529;
}

.btn-info {
    background: #17a2b8;
    border-color: #17a2b8;
    color: white;
}

.btn-secondary {
    background: #6c757d;
    border-color: #6c757d;
    color: white;
}

.btn-group-sm .btn {
    padding: 0.375rem 0.5rem;
    font-size: 0.875rem;
}

/* ===== TABLE FIXES ===== */
.jobs-section {
    margin: 0;
    position: relative;
}

.card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.card-body.p-0 {
    position: relative;
}

.table-responsive {
    overflow-x: auto;
    position: relative;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
}

    .table thead th {
        background: #f8f9fa;
        border-bottom: 2px solid #dee2e6;
        padding: 1rem 1.5rem;
        font-weight: 500;
        color: #495057;
        position: sticky;
        top: 0;
        z-index: 10;
    }

    .table tbody td {
        padding: 1rem 1.5rem;
        border-bottom: 1px solid #f0f0f0;
        vertical-align: middle;
        background: white;
    }

/* Action column */
.text-end {
    text-align: right;
}

/* ===== JOB STATUS ===== */
.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.status-running {
    background: #28a745;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.2);
}

.status-stopped {
    background: #6c757d;
}

.status-error {
    background: #dc3545;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.2);
}

/* ===== BADGES ===== */
.badge {
    font-weight: 400;
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    border-radius: 4px;
}

.bg-info {
    background-color: #17a2b8 !important;
}

.bg-secondary {
    background-color: #6c757d !important;
}

.bg-success {
    background-color: #28a745 !important;
}

.bg-dark {
    background-color: #343a40 !important;
}

/* ===== OTHER STYLES ===== */
.job-name {
    font-weight: 400;
    color: #333;
    margin-bottom: 0.25rem;
}

.job-path {
    font-size: 0.875rem;
    color: #666;
    font-family: 'Consolas', monospace;
}

.upload-time {
    color: #666;
    font-size: 0.875rem;
}

.file-size {
    color: #666;
    font-family: 'Consolas', monospace;
}

/* ===== LOADING & EMPTY STATES ===== */
.spinner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    color: #666;
}

.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-radius: 8px;
    margin: 1rem 0;
    border: 2px dashed #e0e0e0;
}

.empty-state-icon {
    color: #ccc;
    margin-bottom: 1.5rem;
}

.empty-state-title {
    font-weight: 500;
    color: #333;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.empty-state-description {
    color: #666;
    max-width: 400px;
    margin: 0 auto 1.5rem;
    line-height: 1.5;
}

/* ===== SAMPLE JOBS ===== */
.samples-section {
    margin: 0;
}

.sample-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: transform 0.2s;
    height: 100%;
    background: white;
}

    .sample-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

/* ===== MODALS ===== */
.modal.show {
    display: block !important;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .webjobs-container {
        padding: 1rem;
    }

    .header-section {
        padding: 1rem;
    }

    .header-actions {
        flex-direction: column;
        width: 100%;
    }

        .header-actions .btn {
            width: 100%;
            margin-bottom: 0.5rem;
        }

    .jobs-section {
        margin: 0;
    }

    .samples-section {
        margin: 0;
    }

    .table-responsive {
        margin: 0 -1rem;
        padding: 0 1rem;
    }

    .table thead th,
    .table tbody td {
        padding: 0.75rem 1rem;
    }
}

/* ===== UTILITY CLASSES ===== */
.d-flex {
    display: flex;
}

.justify-content-between {
    justify-content: space-between;
}

.align-items-center {
    align-items: center;
}

.text-muted {
    color: #6c757d !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mt-5 {
    margin-top: 3rem !important;
}

.ms-2 {
    margin-left: 0.5rem !important;
}

.me-2 {
    margin-right: 0.5rem !important;
}

.pe-4 {
    padding-right: 1.5rem !important;
}

.ps-4 {
    padding-left: 1.5rem !important;
}

.p-0 {
    padding: 0 !important;
}

.w-100 {
    width: 100% !important;
}

.h-100 {
    height: 100% !important;
}

.small {
    font-size: 0.875rem;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* Delete button states */
.btn-outline-danger:disabled,
.btn-danger:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Pulsing effect for deleting jobs */
@keyframes pulse-deleting {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }

    100% {
        opacity: 1;
    }
}

.job-row.deleting {
    animation: pulse-deleting 1.5s infinite;
    background-color: rgba(220, 53, 69, 0.05);
}

/* Progress modal styling */
.modal.show {
    display: block;
    background-color: rgba(0,0,0,0.5);
}

/* Ensure proper z-index for modals */
.modal {
    z-index: 1050;
}

.toast {
    z-index: 1060;
}
 
/* Pulsing animation for deleting rows */
 
@keyframes pulse-deleting {
    0% {
        background-color: rgba(220, 53, 69, 0.05);
    }

    50% {
        background-color: rgba(220, 53, 69, 0.1);
    }

    100% {
        background-color: rgba(220, 53, 69, 0.05);
    }
}

.job-row.deleting {
    animation: pulse-deleting 1.5s infinite;
}

.page-title:focus {
    outline: none;
    box-shadow: none;
}

/* Schedule/Cron styling */
.schedule-cron {
    font-size: 0.8rem;
    background-color: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid #dee2e6;
    color: #495057;
}

/* Description column */
.job-description {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

    .job-description:hover {
        white-space: normal;
        overflow: visible;
        background: white;
        position: relative;
        z-index: 10;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        padding: 5px;
        border-radius: 3px;
    }

/* Last run time */
.last-run-time {
    font-size: 0.9rem;
}

.cron-diagram {
    overflow-x: auto;
    white-space: pre;
    font-family: monospace;
    font-size: 0.85rem;
    margin: 0; /* remove top/bottom margin */
    padding-left: 0; /* remove extra left padding if any */
}
.cron-help pre.cron-diagram {
    margin: 0; /* remove top/bottom margin */
    padding: 0.25rem 0; /* optional padding inside the box */
    font-family: monospace;
    font-size: 0.85rem;
    white-space: pre; /* preserve line breaks exactly */
    overflow-x: auto; /* allow horizontal scroll if needed */
}

.status-scheduled {
    background-color: #0dcaf0; /* Bootstrap info color */
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}


/* Real Time Clock */
.time-display-card {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

    .time-display-card .card-body {
        padding: 0.75rem 1.25rem;
    }

.time-text {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: 500;
    color: #495057;
}

.time-display-card .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}


