/* Electrochemistry Controls Styling */

.electrochemistry-controls-compact {
    background: linear-gradient(135deg, #1a2332 0%, #2a3f5f 100%);
    border: 1px solid #4a9eff;
    border-radius: 8px;
    padding: 12px;
    margin: 16px 0;
    box-shadow: 0 4px 12px rgba(74, 158, 255, 0.2);
}

.electrochemistry-compact-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
    margin-bottom: 8px;
}

.electrochemistry-compact-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 120px;
}

.electrochemistry-compact-group label {
    font-size: 11px;
    color: #a8c5e6;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.electrochemistry-compact-input,
.electrochemistry-compact-select {
    padding: 6px 8px;
    border: 1px solid #4a9eff;
    border-radius: 4px;
    background: rgba(22, 29, 39, 0.8);
    color: #e6ecf5;
    font-size: 13px;
    transition: all 0.2s ease;
}

.electrochemistry-compact-input:focus,
.electrochemistry-compact-select:focus {
    outline: none;
    border-color: #66b3ff;
    box-shadow: 0 0 0 2px rgba(74, 158, 255, 0.2);
    background: rgba(22, 29, 39, 0.95);
}

.electrochemistry-compact-input:hover,
.electrochemistry-compact-select:hover {
    border-color: #66b3ff;
}

.electrochemistry-compact-select {
    cursor: pointer;
    min-width: 140px;
}

.electrochemistry-compact-select option {
    background: #1a2332;
    color: #e6ecf5;
}

.electrochemistry-compact-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-left: auto;
}

.electrochemistry-compact-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.electrochemistry-compact-btn.primary-btn {
    background: linear-gradient(135deg, #4a9eff 0%, #357abd 100%);
    color: white;
    box-shadow: 0 2px 6px rgba(74, 158, 255, 0.3);
}

.electrochemistry-compact-btn.primary-btn:hover {
    background: linear-gradient(135deg, #66b3ff 0%, #4a9eff 100%);
    box-shadow: 0 3px 8px rgba(74, 158, 255, 0.4);
    transform: translateY(-1px);
}

.electrochemistry-compact-btn.primary-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(74, 158, 255, 0.3);
}

.electrochemistry-compact-btn.clear-btn {
    background: rgba(255, 102, 102, 0.15);
    color: #ff6666;
    border: 1px solid #ff6666;
}

.electrochemistry-compact-btn.clear-btn:hover {
    background: rgba(255, 102, 102, 0.25);
    border-color: #ff8888;
    color: #ff8888;
}

.electrochemistry-compact-info {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 8px;
    border-top: 1px solid rgba(74, 158, 255, 0.3);
    font-size: 12px;
    color: #a8c5e6;
}

.electrochemistry-compact-info span {
    background: rgba(22, 29, 39, 0.6);
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid rgba(74, 158, 255, 0.4);
    font-family: 'Courier New', monospace;
    white-space: nowrap;
}

/* Specific groups for different modes */
.electro-specific-group {
    display: none;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
}

/* Standard potential display */
#standard-potential-display {
    font-size: 12px;
    color: #4a9eff;
    font-weight: 600;
    padding: 6px 12px;
    background: rgba(74, 158, 255, 0.1);
    border-radius: 4px;
    border: 1px solid rgba(74, 158, 255, 0.3);
    font-family: 'Courier New', monospace;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .electrochemistry-compact-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .electrochemistry-compact-group {
        min-width: 100%;
    }
    
    .electrochemistry-compact-buttons {
        margin-left: 0;
        justify-content: stretch;
    }
    
    .electrochemistry-compact-btn {
        flex: 1;
    }
}
