/* Playground-specific styles */

.playground-flex-container {
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Fill the main container */
    min-height: 0;
}

/* New Two-Column Layout */
.playground-flex-container .row {
    flex-grow: 1;
    min-height: 0; /* Prevents overflow issues in flex children */
}

.col-lg-9 {
    display: flex;
    flex-direction: column;
}

.graph-panel {
    flex-grow: 1; /* Make graph panel fill vertical space */
    position: relative;
    height: 600px;
    background-color: #1b2735;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

#refresh-layout-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    padding: 0.2rem 0.4rem;
    font-size: 0.8rem;
}

#cy, #graph-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

#graph-container {
    display: none;
}

#cy.active, #graph-container.active {
    display: block !important;
}

/* General Control Panel Styling */
.control-panel {
    background-color: rgba(27, 39, 53, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.control-panel h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

/* Control rows and inputs */
.control-row {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.control-label {
    font-weight: 500;
    flex-basis: 80px; /* Consistent label width */
}

.control-input {
    flex-grow: 1;
    background: rgba(33, 37, 41, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    width: auto;
}

.control-input:focus {
    outline: none;
    border-color: rgba(71, 118, 230, 0.8);
    box-shadow: 0 0 0 2px rgba(71, 118, 230, 0.3);
}

.btn-group .btn,
.control-row .btn {
    flex-grow: 1;
}

/* Override some old styles */
#saveGraphModal .form-check-label {
    padding-left: 0.5em;
    line-height: 1.2em;
} 