@scope (#original-content) {

    #binary-calculator * {
      box-sizing: border-box;
    }
    #binary-calculator h1 {
      font-size: 2.5em;
      font-weight: 800;
      color: #1a1a1a;
      margin-bottom: 20px;
      text-align: center;
      line-height: 1.3;
    }
    #binary-calculator h2 {
      font-size: 1.8em;
      font-weight: 700;
      color: #2c3e50;
      margin-top: 40px;
      margin-bottom: 20px;
      border-bottom: 3px solid #e8eaf6;
      padding-bottom: 10px;
    }
    #binary-calculator h3 {
      font-size: 1.4em;
      font-weight: 700;
      color: #34495e;
      margin-top: 25px;
      margin-bottom: 15px;
    }
    #binary-calculator h4 {
      font-size: 1.2em;
      font-weight: 700;
      color: #455a64;
      margin-top: 20px;
      margin-bottom: 12px;
    }
    #binary-calculator p {
      font-size: 1.05em;
      line-height: 1.8;
      margin-bottom: 16px;
      font-weight: 500;
      color: #444;
    }
    #binary-calculator strong {
      font-weight: 700;
      color: #2c3e50;
    }
    .calculator-tabs {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
      gap: 10px;
      margin-bottom: 30px;
    }
    .tab-btn {
      padding: 15px 12px;
      background: #f5f5f5;
      border: 2px solid #e0e0e0;
      border-radius: 8px;
      cursor: pointer;
      font-weight: 700;
      font-size: 0.95em;
      color: #666;
      transition: all 0.3s ease;
      text-align: center;
    }
    .tab-btn:hover {
      background: #e8eaf6;
    }
    .tab-btn.active {
      background: linear-gradient(135deg, #5e35b1 0%, #7e57c2 100%);
      color: white;
      border-color: #5e35b1;
    }
    .calculator-container {
      background: linear-gradient(135deg, #e8eaf6 0%, #f3f4fb 100%);
      border-radius: 16px;
      padding: 35px;
      margin: 30px 0;
      box-shadow: 0 4px 20px rgba(0,0,0,0.08);
      display: none;
    }
    .calculator-container.active {
      display: block;
    }
    .calculator-header {
      text-align: center;
      margin-bottom: 30px;
    }
    .calculator-header h2 {
      color: #5e35b1;
      margin: 0 0 10px 0;
      border: none;
      font-size: 2em;
    }
    .calculator-header p {
      color: #555;
      font-weight: 600;
      margin: 0;
      font-size: 1.05em;
    }
    .input-container {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 25px;
      margin-bottom: 30px;
    }
    .input-group {
      background: #ffffff;
      border-radius: 12px;
      padding: 20px;
      border: 2px solid #d1c4e9;
      transition: all 0.3s ease;
    }
    .input-group:hover {
      border-color: #5e35b1;
      box-shadow: 0 2px 10px rgba(94,53,177,0.15);
    }
    .input-group label {
      display: block;
      font-weight: 700;
      margin-bottom: 10px;
      color: #2c3e50;
      font-size: 1em;
    }
    .input-group input,
    .input-group select {
      width: 100%;
      
      border: 2px solid #e0e0e0;
      border-radius: 8px;
      font-size: 1.05em;
      font-weight: 600;
      transition: all 0.3s ease;
      background-color: #fafafa;
      font-family: 'Courier New', monospace;
    }
    .input-group input:focus,
    .input-group select:focus {
      outline: none;
      border-color: #5e35b1;
      box-shadow: 0 0 0 3px rgba(94,53,177,0.1);
      background-color: #ffffff;
    }
    .input-group .input-hint {
      font-size: 0.85em;
      color: #666;
      margin-top: 6px;
      font-weight: 500;
    }
    .calculate-btn {
      background: linear-gradient(135deg, #5e35b1 0%, #7e57c2 100%);
      color: white;
      border: none;
      padding: 18px 40px;
      border-radius: 12px;
      cursor: pointer;
      font-weight: 800;
      font-size: 1.2em;
      width: 100%;
      margin-top: 20px;
      transition: all 0.3s ease;
      text-transform: uppercase;
      letter-spacing: 1px;
    }
    .calculate-btn:hover {
      transform: translateY(-3px);
      box-shadow: 0 8px 25px rgba(94,53,177,0.4);
    }
    .result-box {
      background: linear-gradient(135deg, #c5e1a5 0%, #dcedc8 100%);
      border-radius: 12px;
      padding: 30px;
      margin-top: 30px;
      border: 3px solid #7cb342;
      display: none;
    }
    .result-box.show {
      display: block;
      animation: slideIn 0.5s ease;
    }
    @keyframes slideIn {
      from {
        opacity: 0;
        transform: translateY(-20px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }
    .result-box h3 {
      color: #558b2f;
      font-size: 1.8em;
      margin-top: 0;
      margin-bottom: 20px;
      text-align: center;
    }
    .result-item {
      background: #ffffff;
      padding: 20px;
      border-radius: 10px;
      margin-bottom: 15px;
      border: 2px solid #aed581;
    }
    .result-label {
      font-size: 0.95em;
      color: #666;
      font-weight: 600;
      margin-bottom: 8px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }
    .result-value {
      font-size: 1.8em;
      font-weight: 800;
      color: #558b2f;
      margin: 5px 0;
      word-break: break-all;
      font-family: 'Courier New', monospace;
    }
    .steps-box {
      background: #fff;
      padding: 20px;
      border-radius: 10px;
      margin-top: 20px;
      border: 2px solid #d1c4e9;
    }
    .steps-box h4 {
      color: #5e35b1;
      margin-top: 0;
    }
    .step-item {
      padding: 12px;
      margin: 10px 0;
      background: #f5f5f5;
      border-left: 4px solid #7e57c2;
      border-radius: 4px;
      font-family: 'Courier New', monospace;
    }
    .comparison-table {
      width: 100%;
      border-collapse: collapse;
      margin: 25px 0;
      background-color: #ffffff;
      border-radius: 10px;
      overflow: hidden;
      box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    }
    .comparison-table thead {
      background: linear-gradient(135deg, #5e35b1 0%, #7e57c2 100%);
      color: white;
    }
    .comparison-table th {
      padding: 18px;
      text-align: left;
      font-weight: 700;
      font-size: 1.05em;
    }
    .comparison-table td {
      padding: 16px 18px;
      border-bottom: 1px solid #ecf0f1;
      font-weight: 600;
      color: #2c3e50;
      font-family: 'Courier New', monospace;
    }
    .comparison-table tr:nth-child(even) {
      background-color: #fafbfd;
    }
    .comparison-table tr:hover {
      background-color: #e8eaf6;
    }
    .formula-box {
      background: linear-gradient(135deg, #fff3e0 0%, #fffaf0 100%);
      border-left: 5px solid #ff9800;
      padding: 25px;
      margin: 25px 0;
      border-radius: 8px;
      font-size: 1.05em;
    }
    .formula-box strong {
      color: #e65100;
      font-size: 1.1em;
    }
    .math-formula {
      font-size: 1.3em;
      font-weight: 700;
      color: #e65100;
      text-align: center;
      padding: 25px;
      background-color: #ffffff;
      border-radius: 10px;
      margin: 20px 0;
      border: 2px dashed #ffb74d;
      font-family: 'Courier New', monospace;
      letter-spacing: 1px;
    }
    .info-box {
      background: linear-gradient(135deg, #e0f2f1 0%, #f0f9f8 100%);
      border-left: 5px solid #00897b;
      padding: 20px 25px;
      margin: 25px 0;
      border-radius: 8px;
    }
    .warning-box {
      background: linear-gradient(135deg, #fff3e0 0%, #fffaf0 100%);
      border-left: 5px solid #f57c00;
      padding: 20px 25px;
      margin: 25px 0;
      border-radius: 8px;
    }
    .faq-item {
      background: #f3f4fb;
      border-radius: 10px;
      padding: 20px 25px;
      margin-bottom: 20px;
      border: 2px solid #e8eaf6;
      transition: all 0.3s ease;
    }
    .faq-item:hover {
      border-color: #5e35b1;
      box-shadow: 0 2px 10px rgba(94,53,177,0.1);
    }
    .faq-question {
      font-weight: 700;
      color: #5e35b1;
      font-size: 1.15em;
      margin-bottom: 12px;
    }
    .faq-answer {
      color: #555;
      line-height: 1.7;
      font-weight: 500;
    }
    ul {
      margin: 20px 0;
      padding-left: 25px;
    }
    ul li {
      margin-bottom: 12px;
      line-height: 1.7;
      font-weight: 500;
      color: #444;
    }
    @media (max-width: 768px) {
      #binary-calculator h1 {
        font-size: 1.8em;
      }
      #binary-calculator h2 {
        font-size: 1.4em;
      }
      .calculator-container {
        padding: 20px;
      }
      .calculator-tabs {
        grid-template-columns: repeat(2, 1fr);
      }
      .input-container {
        grid-template-columns: 1fr;
      }
      .comparison-table {
        font-size: 0.85em;
      }
      .comparison-table th, .comparison-table td {
        padding: 10px 8px;
      }
    }
    @media (max-width: 480px) {
      #binary-calculator {
        padding: 20px 10px;
      }
      #binary-calculator h1 {
        font-size: 1.5em;
      }
      .calculator-container {
        padding: 15px;
      }
      .calculator-tabs {
        grid-template-columns: 1fr;
      }
    }
  
}
