/* ---------------------------------------------------
   Base Styles
--------------------------------------------------- */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #f0f0f0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

/* ---------------------------------------------------
   Main Container
--------------------------------------------------- */
.main-container {
  display: flex;
  flex-direction: column;
  width: 95%;
  max-width: 1600px; /* Increased to accommodate wider containers */
  background: #ffffff;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;

  /* WebKit Rounded Corners */
  -webkit-border-radius: 15px;
  -moz-border-radius: 15px;
  border-radius: 15px;
}

/* Header */
h1 {
  text-align: center;
  margin: 20px 0;
  color: #333333;
}

/* Panels Container */
.panels-container {
  display: flex;
  flex-wrap: nowrap; /* Prevent wrapping to keep containers side by side */
  padding: 20px;
  box-sizing: border-box;
  gap: 20px; /* Space between containers */
}

/* Left Panel, Right Panel, and Report Container */
.left-panel, .right-panel, .report-container {
  padding: 20px;
  box-sizing: border-box;
  background: #ffffff;
  border: 1px solid #ccc;
  border-radius: 10px;
  flex: 1 1 400px; /* Increased from 350px to 400px */
  min-width: 380px; /* Increased from 330px to 380px */

  /* WebKit Rounded Corners */
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  border-radius: 10px;
}

/* Right Panel */
.right-panel {
  flex: 2 1 600px; /* Increased from 550px to 600px */
  min-width: 580px; /* Increased from 530px to 580px */
}

/* Report Container */
.report-container {
  flex: 1 1 400px; /* Ensures same width as left-panel */
  min-width: 380px; /* Ensures same width as left-panel */
  background: #fafafa;
  overflow-y: auto;
  /* max-height: 800px; */
}

.report-container h2 {
  margin-top: 0;
  color: #555555;
}

/* Sections within Panels */
.section, .channel-container {
  border: 1px solid #ccc;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 8px;
  background: #ffffff;

  /* WebKit Rounded Corners */
  -webkit-border-radius: 8px;
  -moz-border-radius: 8px;
  border-radius: 8px;
}

.section h3, .channel-container h2 {
  margin-top: 0;
  color: #555555;
}

/* Control Rows */
.control-row {
  display: flex;
  align-items: center;
  margin: 8px 0;
}

.control-row label {
  width: 150px; /* Increased label width for better alignment */
  color: #666666;
}

.control-row input[type="range"] {
  flex: 1;
  margin: 0 10px;
}

.checkbox-row label {
  margin-right: 12px;
  color: #666666;
}

.radio-row, .checkbox-row {
  margin: 8px 0;
}

/* Buttons */
#generateBtn, #generateChordsMelodyBtn, #generateInstrumentsBtn, #toggleBtn {
  font-size: 1rem;
  padding: 0.6rem 1.2rem;
  margin-right: 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

#generateBtn {
  background: #6c5ce7;
  color: #ffffff;
}

#generateBtn:hover {
  background: #5a4dcf;
}

#generateChordsMelodyBtn {
  background: #0984e3;
  color: #ffffff;
}

#generateChordsMelodyBtn:hover {
  background: #086cb0;
}

#generateInstrumentsBtn {
  background: #d63031;
  color: #ffffff;
}

#generateInstrumentsBtn:hover {
  background: #b52425;
}

#toggleBtn {
  background: #00b894;
  color: #ffffff;
}

#toggleBtn:hover {
  background: #009785;
}

/* Status Log */
.report-container pre {
  margin: 0;
  font-family: monospace;
  white-space: pre-wrap;
  word-wrap: break-word;
  background: #ffffff;
  padding: 10px;
  border-radius: 5px;

  /* WebKit Box Shadow */
  -webkit-box-shadow: inset 0 0 5px rgba(0,0,0,0.1);
  box-shadow: inset 0 0 5px rgba(0,0,0,0.1);
}

/* Responsive Design */
@media (max-width: 1600px) {
  .main-container {
    flex-direction: row;
  }
}

@media (max-width: 1300px) {
  .main-container {
    flex-direction: column; /* Stack containers vertically */
  }

  .panels-container {
    flex: none;
    width: 100%;
  }

  .left-panel, .right-panel, .report-container {
    min-width: 100%;
    flex: 1 1 100%;
  }
}

@media (max-width: 768px) {
  .control-row label {
    width: 120px; /* Adjust label width for smaller screens */
  }

  #generateBtn, #generateChordsMelodyBtn, #generateInstrumentsBtn, #toggleBtn {
    margin-bottom: 10px;
    width: 100%;
  }
}
