:root {
    --primary: #0072ce;
    --secondary: #03244d;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --dark: #343a40;
    --light: #f8f9fa;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background-color: var(--secondary);
    color: white;
    padding: 15px 0;
    text-align: center;
    border-bottom: 5px solid var(--primary);
    margin-bottom: 20px;
}

header h1 {
    margin: 0;
    font-size: 2em;
}



header p {
    margin: 5px 0 0;
    opacity: 0.8;
}

.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr;
    }
}

.panel {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.panel-title {
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    color: var(--secondary);
    font-size: 1.2em;
}

.visualization-container {
    height: 400px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fafafa;
}

.control-panel {
    grid-column: span 2;
}

@media (max-width: 768px) {
    .control-panel {
        grid-column: span 1;
    }
}

.tab-container {
    margin-bottom: 15px;
}

.tab-buttons {
    display: flex;
    border-bottom: 1px solid #ddd;
}

.tab-button {
    padding: 10px 15px;
    background-color: #00008B;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    font-weight: 600;
    border-radius: 0; /* Ensure no rounded edges */
}

.tab-button:hover {
    background-color: #0000CD; /* Medium Blue */
    color: white;
}

.tab-button.active {
    background-color: #4169E1; /* Royal Blue */
    color: white;
    border-top: 2px solid #FFD700; /* Gold */
    border-left: 1px solid #4169E1;
    border-right: 1px solid #4169E1;
    border-bottom: 1px solid #4169E1;
    margin-bottom: -1px;
}

.tab-content {
    display: none;
    padding: 15px;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    background-color: white;
}

.tab-content.active {
    display: block;
}

form {
    margin-bottom: 0;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

input[type="text"],
input[type="number"],
select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

button, .button {
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

button:hover, .button:hover {
    background-color: #005bb5;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.button-secondary {
    background-color: var(--secondary);
}

.button-secondary:hover {
    background-color: #021b36;
}

.button-success {
    background-color: var(--success);
}

.button-success:hover {
    background-color: #218838;
}

.button-warning {
    background-color: var(--warning);
    color: #212529;
}

.button-warning:hover {
    background-color: #e0a800;
}

.button-danger {
    background-color: var(--danger);
}

.button-danger:hover {
    background-color: #c82333;
}

.log-container {
    height: 300px;
    overflow-y: auto;
    background-color: #1e1e1e;
    color: #f0f0f0;
    padding: 10px;
    font-family: Consolas, Monaco, 'Andale Mono', monospace;
    border-radius: 4px;
}

.log-entry {
    margin: 5px 0;
    padding: 3px 0;
    border-bottom: 1px solid #333;
    line-height: 1.4;
}

.log-command {
    color: #569cd6;
    font-weight: bold;
}

.log-info {
    color: #9cdcfe;
}

.log-success {
    color: #4ec9b0;
}

.log-warning {
    color: #d7ba7d;
}

.log-error {
    color: #f44747;
}

.log-header {
    color: #ce9178;
    font-weight: bold;
}

.log-metric {
    color: #b5cea8;
}

.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.job-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.job-table th,
.job-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.job-table th {
    background-color: #f2f2f2;
    font-weight: 600;
}

.job-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.job-table tr:hover {
    background-color: #f1f1f1;
}

.job-table .status-running {
    background-color: rgba(40, 167, 69, 0.2);
}

.job-table .status-waiting {
    background-color: rgba(255, 193, 7, 0.2);
}

.job-table .status-completed {
    background-color: rgba(108, 117, 125, 0.1);
}

.status-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 600;
}

.badge-running {
    background-color: var(--success);
    color: white;
}

.badge-waiting {
    background-color: var(--warning);
    color: #212529;
}

.badge-completed {
    background-color: #6c757d;
    color: white;
}

.progress-container {
    margin-top: 15px;
    display: none;
}

.progress-bar-container {
    width: 100%;
    height: 20px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.progress-text {
    margin-top: 5px;
    text-align: center;
    font-weight: 600;
}

.hidden {
    display: none;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.stat-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 15px;
    text-align: center;
}

.stat-value {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--primary);
    margin: 5px 0;
}

.stat-label {
    color: #6c757d;
    font-size: 0.9em;
}

/* Tooltips */
.tooltip {
    position: relative;
    display: inline-block;
    margin-left: 5px;
    cursor: help;
}

.tooltip .tooltip-icon {
    color: #6c757d;
    background-color: #e9ecef;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
    pointer-events: none;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}