/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #1a1a2e;
    --color-surface: #16213e;
    --color-surface-light: #1f2b4a;
    --color-primary: #3b82f6;
    --color-primary-dark: #2563eb;
    --color-success: #22c55e;
    --color-warning: #f59e0b;
    --color-danger: #ef4444;
    --color-text: #e5e7eb;
    --color-text-muted: #9ca3af;
    --color-border: #374151;

    /* Map layer colors */
    --layer-usgs-ept: #22c55e;
    --layer-karst: #f97316;
    --layer-pending: #9ca3af;
    --layer-pending-karst: #bfdbfe;
    --layer-queued: #60a5fa;
    --layer-downloading: #3b82f6;
    --layer-processing: #1d4ed8;
    --layer-complete: #22c55e;
    --layer-failed: #ef4444;
    --layer-our-ept: #14b8a6;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
}

.header h1 {
    font-size: 1.25rem;
    font-weight: 600;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#user-email {
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

.logout-btn {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s;
}

.logout-btn:hover {
    color: var(--color-text);
    background: var(--color-surface-light);
}

/* Main content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
}

/* Map */
#map {
    flex: 1;
    min-height: 400px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--color-border);
}

/* Leaflet overrides for dark theme */
.leaflet-container {
    background: #1a1a2e;
}

.leaflet-control-zoom a,
.leaflet-control-layers {
    background: var(--color-surface) !important;
    color: var(--color-text) !important;
    border-color: var(--color-border) !important;
}

.leaflet-control-zoom a:hover {
    background: var(--color-surface-light) !important;
}

.leaflet-control-layers-list {
    color: var(--color-text);
}

.leaflet-control-layers-separator {
    border-top-color: var(--color-border);
}

.leaflet-popup-content-wrapper {
    background: var(--color-surface);
    color: var(--color-text);
    border-radius: 8px;
}

.leaflet-popup-tip {
    background: var(--color-surface);
}

.leaflet-popup-content {
    margin: 0.75rem 1rem;
}

/* Bottom panels */
.bottom-panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

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

/* Panel */
.panel {
    background: var(--color-surface);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid var(--color-border);
}

.panel h3 {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
}

/* Status items */
.status-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.status-item .label {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    min-width: 40px;
}

.status-item .value {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    white-space: nowrap;
    min-width: 160px;
}

/* Progress bar */
.progress-bar {
    flex: 1;
    height: 8px;
    background: var(--color-bg);
    border-radius: 4px;
    overflow: hidden;
}

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

.progress-fill.warning {
    background: var(--color-warning);
}

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

/* Status grid */
.status-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.stat {
    text-align: center;
    padding: 0.5rem;
    background: var(--color-bg);
    border-radius: 4px;
}

.stat-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 600;
}

.stat-label {
    font-size: 0.625rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Queue list */
#queue-list {
    min-height: 80px;
    margin-bottom: 0.75rem;
}

.queue-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: var(--color-bg);
    border-radius: 4px;
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
    cursor: pointer;
}

.queue-item:hover {
    background: var(--color-bg-secondary);
}

.queue-item .status-icon {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.queue-item .status-icon.running {
    background: var(--color-primary);
    animation: pulse 1s infinite;
    box-shadow: 0 0 4px var(--color-primary);
}

.queue-item .status-icon.queued {
    background: var(--color-text-muted);
}

.queue-item .status-icon.pending {
    background: var(--color-text-muted);
    opacity: 0.6;
}

/* Running job progress bar */
.queue-item .progress-bar-container {
    margin-left: auto;
    width: 80px;
    height: 6px;
    background: var(--color-border);
    border-radius: 3px;
    overflow: hidden;
}

.queue-item .progress-bar-fill {
    height: 100%;
    background: var(--color-primary);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.queue-item .progress-text {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    margin-left: 0.5rem;
    min-width: 28px;
}

.queue-item .pending-label {
    margin-left: auto;
    font-size: 0.7rem;
    color: var(--color-text-muted);
    font-weight: 400;
}

/* Pending items - subtle styling */
.queue-item.pending {
    cursor: pointer;
    opacity: 0.8;
}

.queue-item.pending:hover {
    background: var(--color-bg-secondary);
    opacity: 1;
}

/* Running items - attention-grabbing */
.queue-item.running {
    background: linear-gradient(90deg,
        var(--color-bg) 0%,
        rgba(59, 130, 246, 0.05) 50%,
        var(--color-bg) 100%);
    background-size: 200% 100%;
    animation: shimmer 2s ease-in-out infinite;
    border-left: 2px solid var(--color-primary);
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.queue-more {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-align: right;
    padding: 0.25rem 0.5rem;
    margin: 0;
}

.empty-state {
    color: var(--color-text-muted);
    font-size: 0.875rem;
    text-align: center;
    padding: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--color-primary-dark);
}

.btn-secondary {
    background: var(--color-surface-light);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background: var(--color-bg);
}

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

.btn-danger:hover {
    background: #dc2626;
}

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

.btn-success:hover {
    background: #16a34a;
}

/* Modal Overlay (new pattern) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-overlay .modal {
    /* Reset legacy .modal positioning */
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    /* Modal styles */
    background: var(--color-surface);
    border-radius: 12px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-border);
}

.modal-overlay .modal-header {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--color-border);
}

.modal-overlay .modal-header h3 {
    flex: 1;
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

.modal-overlay .modal-body {
    flex: 1;
    padding: 1.25rem;
    overflow-y: auto;
}

.modal-overlay .modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--color-border);
}

/* Legacy Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--color-surface);
    border-radius: 12px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-border);
}

.modal-content.modal-large {
    max-width: 720px;
}

.modal-header {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--color-border);
}

.modal-header h2 {
    flex: 1;
    font-size: 1.125rem;
    font-weight: 600;
}

.modal-actions {
    display: flex;
    gap: 0.5rem;
    margin-right: 0.75rem;
}

.modal-close {
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
}

.modal-close:hover {
    color: var(--color-text);
}

.modal-body {
    flex: 1;
    padding: 1.25rem;
    overflow-y: auto;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--color-border);
}

/* Form elements */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: 0.375rem;
}

.form-group input[type="number"],
.form-group input[type="text"],
.form-group select {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 0.5rem 0.75rem;
    color: var(--color-text);
    font-size: 0.875rem;
    width: 100%;
}

.form-group input[type="checkbox"] {
    margin-right: 0.5rem;
}

.input-group {
    display: flex;
    gap: 0.5rem;
}

.input-group input {
    flex: 1;
}

select {
    background: var(--color-surface-light);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 0.375rem 0.5rem;
    color: var(--color-text);
    font-size: 0.75rem;
}

/* Ensure dropdown options have proper contrast in dark mode */
select option {
    background: var(--color-surface);
    color: var(--color-text);
}

select option:checked {
    background: var(--color-primary);
    color: white;
}

/* Settings sections */
.settings-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.settings-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.settings-section h4 {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

/* Project cards */
.project-card {
    background: var(--color-bg);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    border: 1px solid var(--color-border);
}

.project-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.project-card-title {
    font-weight: 600;
    font-size: 0.9375rem;
}

.project-card-status {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

.project-card-status .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.project-card-status .dot.usgs { background: var(--layer-usgs-ept); }
.project-card-status .dot.pending { background: var(--layer-pending); }
.project-card-status .dot.processing { background: var(--layer-processing); }
.project-card-status .dot.complete { background: var(--layer-complete); }
.project-card-status .dot.failed { background: var(--layer-failed); }

.project-card-meta {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.project-card-progress {
    margin-top: 0.5rem;
}

.project-card-progress .progress-bar {
    height: 6px;
    margin-bottom: 0.25rem;
}

.project-card-progress .progress-text {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* Activity items */
.activity-day {
    margin-bottom: 1.5rem;
}

.activity-day h4 {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-border);
}

.activity-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.activity-time {
    color: var(--color-text-muted);
    font-size: 0.75rem;
    min-width: 50px;
}

.activity-icon {
    font-size: 0.875rem;
}

.activity-icon.success { color: var(--color-success); }
.activity-icon.running { color: var(--color-primary); }
.activity-icon.queued { color: var(--color-text-muted); }
.activity-icon.failed { color: var(--color-danger); }
.activity-icon.sync { color: var(--color-warning); }

/* Job detail sections */
.job-detail {
    margin-bottom: 1.5rem;
}

.job-detail-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.job-detail-row .label {
    color: var(--color-text-muted);
    min-width: 100px;
}

.job-phases {
    margin-top: 1rem;
}

.job-phase {
    margin-bottom: 0.75rem;
}

.job-phase-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.8125rem;
    margin-bottom: 0.25rem;
}

.job-phase-progress {
    height: 4px;
}

/* Storage breakdown */
.storage-total {
    margin-bottom: 1.5rem;
}

.storage-total-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.storage-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-border);
}

.storage-item:last-child {
    border-bottom: none;
}

.storage-item-name {
    flex: 1;
    font-size: 0.8125rem;
}

.storage-item-size {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    min-width: 80px;
    text-align: right;
}

.storage-item-bar {
    width: 100px;
}

.storage-item-bar .progress-bar {
    height: 6px;
}

/* Popup styles */
.popup-title {
    font-weight: 600;
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-border);
}

.popup-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8125rem;
    margin-bottom: 0.375rem;
}

.popup-row .label {
    color: var(--color-text-muted);
}

.popup-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--color-border);
}

.popup-actions .btn {
    flex: 1;
    font-size: 0.75rem;
    padding: 0.375rem 0.5rem;
}

/* Estimate box in process modal */
.estimate-box {
    background: var(--color-bg);
    border-radius: 6px;
    padding: 1rem;
    margin-top: 1rem;
}

.estimate-box h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
}

.estimate-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    margin-bottom: 0.375rem;
}

.estimate-row .check {
    color: var(--color-success);
}

.estimate-row .warning {
    color: var(--color-warning);
}

/* Animations */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.pulse-animation {
    animation: pulse 2s ease-in-out infinite;
}

/* Leaflet pulse for active tiles */
.leaflet-interactive.pulse-animation {
    animation: leaflet-pulse 2s ease-in-out infinite;
}

@keyframes leaflet-pulse {
    0%, 100% { fill-opacity: 0.6; }
    50% { fill-opacity: 0.9; }
}

/* Worker Panel */
#workers-panel {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--color-border);
}

#workers-panel h4 {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

#workers-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

#workers-list .empty-state {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.worker-item {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0.35rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    background: var(--color-surface-light);
}

.worker-item .worker-icon {
    font-size: 0.75rem;
}

.worker-item .worker-name {
    flex: 1;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.worker-item .worker-status {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.worker-idle {
    border-left: 3px solid var(--color-success);
}

.worker-idle .worker-status {
    color: var(--color-success);
}

.worker-busy {
    border-left: 3px solid var(--color-primary);
}

.worker-busy .worker-status {
    color: var(--color-primary);
}

.worker-offline {
    border-left: 3px solid var(--color-text-muted);
    opacity: 0.6;
}

.worker-offline .worker-status {
    color: var(--color-text-muted);
}

.worker-item.clickable {
    cursor: pointer;
}

.worker-item.clickable:hover {
    background: var(--color-surface-light);
}

.worker-delete {
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    font-size: 14px;
    padding: 2px 6px;
    margin-left: auto;
    border-radius: 3px;
    opacity: 0.6;
}

.worker-delete:hover {
    background: var(--color-error);
    color: white;
    opacity: 1;
}

/* Worker header row */
.worker-header {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
}

/* Worker stats with sparklines */
.worker-stats {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 4px;
    padding-left: 20px;
    font-size: 11px;
}

.stat-row {
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-label {
    color: var(--color-text-muted);
    font-weight: 500;
    width: 10px;
}

.sparkline {
    font-family: monospace;
    letter-spacing: -1px;
    font-size: 10px;
    line-height: 1;
}

.sparkline-cpu {
    color: var(--color-primary);
}

.sparkline-mem {
    color: var(--color-success);
}

.stat-value {
    color: var(--color-text-muted);
    font-size: 10px;
    min-width: 28px;
    text-align: right;
}

/* Worker Detail Modal */
.worker-detail-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-section {
    background: var(--color-surface-light);
    padding: 0.75rem;
    border-radius: 6px;
}

.detail-section h4 {
    margin: 0 0 0.5rem 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0;
    font-size: 0.85rem;
}

.detail-label {
    color: var(--color-text-muted);
}

.detail-value {
    font-weight: 500;
}

.detail-value.mono {
    font-family: monospace;
    font-size: 0.8rem;
}

.detail-value a {
    color: var(--color-primary);
    text-decoration: none;
}

.detail-value a:hover {
    text-decoration: underline;
}

.status-idle { color: var(--color-success); }
.status-busy { color: var(--color-warning); }
.status-offline { color: var(--color-text-muted); }

.time-series {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.series-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.series-label {
    width: 40px;
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.series-chart {
    flex: 1;
    font-family: monospace;
    font-size: 12px;
    letter-spacing: -1px;
}

.sparkline-net {
    color: var(--color-warning);
}

.btn-danger {
    background: var(--color-error);
    color: white;
}

.btn-danger:hover {
    background: #b91c1c;
}

/* Job Logs Viewer */
.job-logs-container {
    max-height: 200px;
    overflow-y: auto;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 0.5rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.8rem;
    line-height: 1.4;
}

.log-empty {
    color: var(--color-text-muted);
    text-align: center;
    padding: 1rem;
    font-style: italic;
}

.log-entry {
    padding: 0.25rem 0;
    border-bottom: 1px solid var(--color-border);
}

.log-entry:last-child {
    border-bottom: none;
}

.log-time {
    color: var(--color-text-muted);
    margin-right: 0.5rem;
}

.log-info {
    color: var(--color-text);
}

.log-warning {
    color: var(--color-warning);
}

.log-error {
    color: var(--color-danger);
}

/* Panel header with button */
.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.panel-header h4 {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Cluster management */
.cluster-item {
    background: var(--color-bg);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    border: 1px solid var(--color-border);
}

.cluster-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.cluster-name {
    font-weight: 600;
    font-size: 1rem;
    flex: 1;
}

.cluster-status {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.cluster-status.status-active {
    background: rgba(34, 197, 94, 0.2);
    color: var(--color-success);
}

.cluster-status.status-warning {
    background: rgba(245, 158, 11, 0.2);
    color: var(--color-warning);
}

.cluster-status.status-offline {
    background: rgba(156, 163, 175, 0.2);
    color: var(--color-text-muted);
}

.cluster-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cluster-delete {
    margin-left: auto;
}

/* Copy field styling */
.copy-field {
    display: flex;
    gap: 0.5rem;
}

.copy-field input {
    flex: 1;
    font-family: monospace;
    font-size: 0.875rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 0.5rem 0.75rem;
    color: var(--color-text);
}

.copy-field .btn {
    white-space: nowrap;
}
