/* === AI Code Beautifier Tool — Blue Glass Button Version (No Color Change) === */

#cb-tool {
  max-width: 1200px;
  margin: 40px auto;
  background: #f9f9fb;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  font-family: 'Poppins', sans-serif;
  overflow: hidden;
  transition: all 0.3s ease;
}

/* === HEADER === */
.cb-header {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(90deg, #6B4AF7 0%, #8E69F8 100%);
  color: #fff;
  border-bottom: 4px solid rgba(255, 255, 255, 0.2);
}

.cb-header h2 {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.cb-header p {
  font-weight: 500;
  opacity: 0.9;
  margin-bottom: 10px;
  font-size: 1rem;
}

/* === TOP BUTTONS === */
/* === BUTTONS FIXED (No Red, Apple-Glass Style) === */
.cb-top-buttons button,
.cb-bottom-buttons button {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  padding: 10px 22px;
  border-radius: 12px;
  margin: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

/* Smooth lift on hover, NO color change */
.cb-top-buttons button:hover,
.cb-bottom-buttons button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.2);
}

/* Remove red active/focus states completely */
.cb-top-buttons button:focus,
.cb-top-buttons button:active,
.cb-bottom-buttons button:focus,
.cb-bottom-buttons button:active {
  outline: none !important;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.15) !important;
  color: #fff !important;
}


/* === MAIN CONTAINER === */
.cb-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  padding: 30px;
}

@media (max-width: 768px) {
  .cb-main {
    grid-template-columns: 1fr;
  }
}

.cb-main label {
  font-weight: 600;
  margin-bottom: 6px;
  color: #333;
}

/* === CODE EDITORS === */
.CodeMirror {
  height: 450px !important;
  max-height: 500px;
  overflow: auto !important;
  border-radius: 10px;
  border: 1px solid #ddd;
  background: #fafafa;
  font-family: "Fira Code", monospace;
  font-size: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* === CHAR COUNT === */
#cb-char-count {
  text-align: right;
  font-size: 13px;
  color: #666;
  margin-top: 6px;
  font-family: 'Fira Code', monospace;
}

/* === BOTTOM BUTTONS === */
/* === BOTTOM BUTTONS === */
.cb-bottom-buttons {
  text-align: center;
  padding: 25px;
  border-top: 1px solid #eee;
  background: #fff;
}

/* Base Style */
.cb-bottom-buttons button {
  background: rgba(107, 74, 247, 0.1);
  border: 1px solid rgba(107, 74, 247, 0.3);
  color: #6B4AF7; /* text color stays same always */
  padding: 12px 26px;
  margin: 6px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

/* Hover — only animation, no color change */
.cb-bottom-buttons button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(107, 74, 247, 0.25);
  background: rgba(107, 74, 247, 0.18);
  color: #6B4AF7; /* force text color to remain same */
}

/* Active/Focus — no color change or flash */
.cb-bottom-buttons button:focus,
.cb-bottom-buttons button:active {
  outline: none !important;
  transform: translateY(0px);
  box-shadow: 0 4px 10px rgba(107, 74, 247, 0.2);
  background: rgba(107, 74, 247, 0.1) !important;
  color: #6B4AF7 !important;
}


/* === Remove Old AI Section === */
.cb-fix-errors,
#cb-fix-errors-btn,
#cb-fix-status {
  display: none !important;
}
