/* NT Cycling Model Custom Styles */

:root {
    --primary-color: #1769ec;
    --secondary-color: #6c757d;
    --background-color: #f8f9fa;
    --card-background: #ffffff;
    --header-bg: #1a1a2e;
}

body {
    background-color: var(--background-color);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Header */
.app-header {
    background-color: var(--header-bg);
    color: white;
    padding: 1rem 0;
}

.app-header img {
    max-height: 40px;
}

.app-header h1 {
    font-size: 1.5rem;
    margin: 0;
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.card-header {
    background-color: var(--card-background);
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
}

/* Tabs */
.nav-tabs .nav-link {
    border: none;
    color: var(--secondary-color);
    font-weight: 500;
    padding: 0.75rem 1rem;
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    background: transparent;
}

.nav-tabs .nav-link:hover {
    border-bottom: 2px solid #dee2e6;
}

/* Tables */
.table-sm th,
.table-sm td {
    padding: 0.4rem;
    font-size: 0.875rem;
}

.table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
}

/* Form controls */
.form-select-sm,
.form-control-sm {
    font-size: 0.875rem;
}

/* Condition toggle */
.condition-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.condition-toggle .form-check-input {
    width: 2.5rem;
    height: 1.25rem;
}

/* State chips */
.state-chip {
    display: inline-flex;
    align-items: center;
    background-color: #e9ecef;
    border-radius: 16px;
    padding: 0.25rem 0.75rem;
    margin: 0.125rem;
    font-size: 0.8125rem;
}

.state-chip.selected {
    background-color: var(--primary-color);
    color: white;
}

.state-chip .remove-btn {
    margin-left: 0.375rem;
    cursor: pointer;
    opacity: 0.7;
}

.state-chip .remove-btn:hover {
    opacity: 1;
}

/* Plot containers */
.plot-container {
    width: 100%;
    height: 280px;
}

.plot-container-bar {
    width: 100%;
    height: 350px;
}

/* Example buttons */
.btn-example {
    margin-right: 0.5rem;
}

/* Condition name inputs */
.condition-name-input {
    max-width: 150px;
}

/* Reference data table */
.reference-table input {
    width: 100%;
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Loading overlay */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .app-header h1 {
        font-size: 1.2rem;
    }

    .plot-container {
        height: 220px;
    }
}

/* Search input for tables */
.table-search {
    max-width: 200px;
}

/* Button spacing */
.btn-group-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
