 * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --primary-color: #2563eb;
            --secondary-color: #1e40af;
            --accent-color: #60a5fa;
            --background: #ffffff;
            --surface: #f8fafc;
            --text-primary: #1e293b;
            --text-secondary: #64748b;
            --border-color: #e2e8f0;
            --success-color: #10b981;
            --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
            --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
            --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
            --shadow-xl: 0 20px 40px rgba(0,0,0,0.1);

    --rcc-text-color: #334155;
    --rcc-heading-color: #0f172a;
    --rcc-bg-color: #ffffff;
    --rcc-accent-color: #3b82f6;
    --rcc-box-bg: #f8fafc;
    --rcc-border-color: #e2e8f0;
    --rcc-footer-bg: #1e293b;
    --rcc-footer-text: #cbd5e1;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            color: var(--text-primary);
            line-height: 1.6;
            padding: 20px 0;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        header {
            background: var(--background);
            backdrop-filter: blur(10px);
            border-radius: 20px;
            padding: 30px;
            margin-bottom: 30px;
            box-shadow: var(--shadow-xl);
            text-align: center;
        }

        h1 {
            font-size: 2.5rem;
            font-weight: 700;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            margin-bottom: 10px;
        }

        .subtitle {
            color: var(--text-secondary);
            font-size: 1.1rem;
        }

        .main-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 30px;
            margin-bottom: 30px;
        }

        .calculator-card {
            background: var(--surface);
            border-radius: 20px;
            padding: 30px;
            box-shadow: var(--shadow-lg);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .calculator-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-xl);
        }

        .card-title {
            font-size: 1.3rem;
            font-weight: 600;
            margin-bottom: 20px;
            color: var(--text-primary);
            display: flex;
            align-items: center;
            gap: 10px;
        }

        /* Visual Resistor Styles */
        .resistor-visual {
            background: #e2e8f0;
            border-radius: 10px;
            height: 60px;
            display: flex;
            align-items: center;
            justify-content: space-around;
            padding: 0 20px;
            margin-bottom: 25px;
            position: relative;
            border: 2px solid #cbd5e1;
        }

        .resistor-visual::before, .resistor-visual::after {
            content: '';
            position: absolute;
            height: 4px;
            width: 30px;
            background: #94a3b8;
            top: 50%;
            transform: translateY(-50%);
        }

        .resistor-visual::before { left: -30px; }
        .resistor-visual::after { right: -30px; }

        .band-visual {
            height: 100%;
            width: 15px;
            background-color: transparent;
            border-radius: 2px;
            transition: background-color 0.3s;
        }

        .input-group {
            margin-bottom: 15px;
        }

        .input-group label {
            display: block;
            margin-bottom: 5px;
            font-size: 0.9rem;
            font-weight: 600;
            color: var(--text-secondary);
        }

        .color-select {
            width: 100%;
            padding: 10px 12px;
            border: 2px solid var(--border-color);
            border-radius: 8px;
            font-size: 0.95rem;
            background: var(--background);
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .color-select:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
        }

        .result-section {
            background: linear-gradient(135deg, #10b981, #059669);
            color: white;
            border-radius: 15px;
            padding: 25px;
            margin-top: 25px;
            text-align: center;
        }

        .result-label {
            font-size: 0.9rem;
            opacity: 0.9;
            margin-bottom: 5px;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .result-value {
            font-size: 2rem;
            font-weight: 700;
            margin-bottom: 10px;
        }

        .tolerance-badge {
            display: inline-block;
            padding: 6px 15px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 20px;
            font-size: 0.9rem;
            font-weight: 600;
        }

        @media (max-width: 768px) {
            h1 { font-size: 2rem; }
            .main-content { grid-template-columns: 1fr; }
        } 
        

  .rcc-article-section {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--rcc-text-color);
    background-color: var(--rcc-bg-color);
    line-height: 1.8;
    padding: 60px 20px;
  }

  .rcc-container {
    max-width: 850px;
    margin: 0 auto;
  }

  .rcc-article-section h2 {
    color: var(--rcc-heading-color);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 30px;
    border-bottom: 3px solid var(--rcc-border-color);
    padding-bottom: 15px;
    line-height: 1.3;
  }

  .rcc-article-section h3 {
    color: var(--rcc-heading-color);
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 20px;
  }

  .rcc-article-section p {
    margin-bottom: 20px;
    font-size: 1.125rem;
  }

  .rcc-article-section ul, 
  .rcc-article-section ol {
    margin-bottom: 25px;
    padding-left: 25px;
    font-size: 1.125rem;
  }

  .rcc-article-section li {
    margin-bottom: 10px;
  }

  .rcc-article-section strong {
    color: var(--rcc-heading-color);
  }

  .rcc-example-box {
    background-color: var(--rcc-box-bg);
    border-left: 5px solid var(--rcc-accent-color);
    padding: 25px;
    margin: 30px 0;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
  }

  .rcc-example-box strong {
    font-size: 1.2rem;
    display: block;
    margin-bottom: 10px;
    color: var(--rcc-heading-color);
  }

  .rcc-example-box p {
    margin-bottom: 0;
    margin-top: 15px;
  }

  /* Footer Styling */
  .rcc-footer {
    background-color: var(--rcc-footer-bg);
    color: var(--rcc-footer-text);
    padding: 40px 20px;
    text-align: center;
    font-family: system-ui, -apple-system, sans-serif;
  }

  .rcc-footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
  }

  .rcc-footer-links a {
    color: var(--rcc-footer-text);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s ease;
  }

  .rcc-footer-links a:hover {
    color: #ffffff;
    text-decoration: underline;
  }

  .rcc-footer p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
  }

  /* Responsive Design */
  @media (max-width: 768px) {
    .rcc-article-section {
      padding: 40px 15px;
    }
    .rcc-article-section h2 {
      font-size: 1.8rem;
    }
    .rcc-article-section h3 {
      font-size: 1.3rem;
    }
    .rcc-article-section p, 
    .rcc-article-section ul, 
    .rcc-article-section ol {
      font-size: 1.05rem;
    }
    .rcc-example-box {
      padding: 20px;
    }
    .rcc-footer-links {
      flex-direction: column;
      gap: 15px;
    }
  }