body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #1a1a1b;
    color: #d7dadc;
    margin: 0;
    padding: 20px;
    display: grid;
    grid-template-columns: 350px 1fr; /* Fixed controls, flexible logs */
    gap: 20px;
    height: calc(100vh - 40px);
}
.controls {
    background-color: #272729;
    border: 1px solid #343536;
    border-radius: 8px;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.logs-container {
    background-color: #1a1a1b;
    padding: 0;
    overflow: auto; 
    border: none;
    padding: 0 20px 20px 20px;
    display: flex;
    flex-direction: column;
}
.header-padding { /* New class for internal padding */
    padding: 0 0 10px 0;
    margin: 0 0 20px 0;
}
h1, h2, h3 { padding-bottom: 10px; margin-top: 0; }
.control-group { margin-bottom: 15px; }

label { display: block; margin-bottom: 5px; font-weight: bold; }
button {
    background-color: #0079d3;
    color: white;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #343536;
    font-size: 14px;
}
#logout-button {
    background-color: #c9302c;
}
#runs-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
#runs-list li:hover {
    background-color: #343536;
}
#runs-list li.selected-run {
    background-color: #0079d3;
    color: white;
}
#runs-list li.selected-run p {
    color: #eee;
}

.chart-box {
    /* This is now just a visual wrapper */
    background-color: #272729;
    border: 1px solid #343536;
    border-radius: 8px;       
    padding: 1px 1px 10px 10px; /* Top, right bottom, left */
    box-sizing: border-box; /* Back to border-box */
}

.no-wrap-title {
    /* Prevents the text inside the h4 tag from breaking onto a new line */
    white-space: nowrap; 
    width: fit-content;
    margin: 10px;
    font-size: 24px; /* You can adjust this value */
}

/* Style for the run action buttons */
.run-action-btn {
    width: auto;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: bold;
}

/* New style for the "Shared" state */
#share-run-button.shared {
    background-color: #4eff4e; /* Green */
    color: #1a1a1b; /* Dark text for contrast */
}

.prox-glitch {
    position: relative;
    color: #d1d5db;
}
.prox-glitch::before,
.prox-glitch::after {
    content: 'prox';
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    background: #111827;
}
.prox-glitch::before {
    left: 2px;
    text-shadow: -2px 0 #ef4444;
    animation: glitch-anim-1 2s linear infinite reverse;
}
.prox-glitch::after {
    left: -2px;
    text-shadow: -2px 0 #3b82f6;
    animation: glitch-anim-2 2s linear infinite reverse;
}
@keyframes glitch-anim-1 {
    0% { clip-path: inset(45% 0 50% 0); } 5% { clip-path: inset(65% 0 20% 0); } 10% { clip-path: inset(30% 0 60% 0); } 15% { clip-path: inset(90% 0 5% 0); } 20% { clip-path: inset(40% 0 45% 0); } 25% { clip-path: inset(50% 0 50% 0); } 30% { clip-path: inset(20% 0 70% 0); } 35% { clip-path: inset(85% 0 10% 0); } 40% { clip-path: inset(10% 0 88% 0); } 45% { clip-path: inset(70% 0 25% 0); } 50% { clip-path: inset(45% 0 50% 0); } 55% { clip-path: inset(15% 0 80% 0); } 60% { clip-path: inset(80% 0 15% 0); } 65% { clip-path: inset(30% 0 65% 0); } 70% { clip-path: inset(90% 0 8% 0); } 75% { clip-path: inset(5% 0 92% 0); } 80% { clip-path: inset(40% 0 40% 0); } 85% { clip-path: inset(60% 0 30% 0); } 90% { clip-path: inset(25% 0 70% 0); } 95% { clip-path: inset(75% 0 5% 0); } 100% { clip-path: inset(45% 0 50% 0); }
}
@keyframes glitch-anim-2 {
    0% { clip-path: inset(80% 0 10% 0); } 5% { clip-path: inset(10% 0 85% 0); } 10% { clip-path: inset(60% 0 30% 0); } 15% { clip-path: inset(20% 0 75% 0); } 20% { clip-path: inset(70% 0 5% 0); } 25% { clip-path: inset(40% 0 55% 0); } 30% { clip-path: inset(95% 0 2% 0); } 35% { clip-path: inset(50% 0 45% 0); } 40% { clip-path: inset(5% 0 90% 0); } 45% { clip-path: inset(75% 0 20% 0); } 50% { clip-path: inset(80% 0 10% 0); } 55% { clip-path: inset(35% 0 60% 0); } 60% { clip-path: inset(90% 0 5% 0); } 65% { clip-path: inset(15% 0 80% 0); } 70% { clip-path: inset(55% 0 30% 0); } 75% { clip-path: inset(25% 0 70% 0); } 80% { clip-path: inset(85% 0 10% 0); } 85% { clip-path: inset(20% 0 78% 0); } 90% { clip-path: inset(65% 0 25% 0); } 95% { clip-path: inset(45% 0 50% 0); } 100% { clip-path: inset(80% 0 10% 0); }
}