/* Base */

  .component-container {
    /* max-width: 1000px; */
    margin: 0 auto;
  }
  h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #fff ;
  }
  
  /* Tabs */
  .tab-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
  }
  .tab-btn {
    background: #222;
    color: #fff;
    border: 1px solid #444;
    padding: 8px 16px;
    margin: 0 5px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
  }
  .tab-btn:hover,
  .tab-btn.active {
    background: #1abc9c;
  }
  
  /* Cards */
  .card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
    gap: 20px;
  }
  .component-card {
    background: #1e1e1e;
    border: 2px solid #1abc9c;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
  }
  .component-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.5);
  }
  .component-card h3 {
    margin-bottom: 15px;
  }
  
  /* Iframe Preview */
  .preview-iframe {
    width: 100%;
    height: 200px;
    border: none;
    border-radius: 6px;
    margin-bottom: 15px;
    background: #111;
  }
  
  /* Buttons */
  .view-code-btn {
    background: linear-gradient(
      81.02deg,
      rgb(250, 85, 96) -23.47%,
      rgb(177, 75, 244) 45.52%,
      rgb(77, 145, 255) 114.8%
    );
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 8px 16px;
    cursor: pointer;
    transition: background 0.3s;
  }
 
  
  /* Modal */
  .modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
  }
  .modal-content {
    background: #2a2a2a;
    margin: 100px auto;
    padding: 20px;
    max-width: 700px;
    border-radius: 8px;
    position: relative;
    color: #fff;
  }
  .close-btn {
    position: absolute;
    top: 15px; right: 15px;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
  }
  .close-btn:hover {
    color: #ccc;
  }
  .modal-content h3 {
    margin-top: 0;
    color: #e0e0e0;
  }
  pre {
    background: #1e1e1e;
    padding: 10px;
    border-radius: 5px;
    max-height: 300px;
    overflow: auto;
    white-space: pre-wrap;
    margin-bottom: 10px;
    color: #fff;
  }
  .copy-btn {
    background: #1abc9c;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
  }
  .copy-btn:hover {
    background: #17a589;
  }
  