 * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      
      min-height: 100vh;
      padding: 2rem;
    }

    .config-layout {
      display: grid;
      grid-template-columns: 450px 1fr;
      gap: 1rem;
    }

    /* COLUNA DO FORMULÁRIO */
    .form-column {
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }

    fieldset {
      border: 2px solid #e2e8f0;
      border-radius: 6px;
      padding: 1.5rem;
      background: #f8fafc;
      transition: all 0.3s ease;
    }

    fieldset:hover {
      border-color: #cbd5e1;
     
    }

    fieldset.fieldset-editing {
      border-color: #667eea;
      background: #f0f4ff;
      box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    }

    legend {
      font-weight: 600;
      color: #1e293b;
      padding: 0 0.75rem;
      font-size: 0.95rem;
      letter-spacing: 0.3px;
    }

    fieldset.fieldset-editing legend {
      color: #667eea;
    }

    .form-group {
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }

    input[type="text"],
    input[type="number"],
    select {
      width: 100%;
      padding: 0.875rem 1rem;
      border: 2px solid #e2e8f0;
      border-radius: 8px;
      font-size: 0.95rem;
      transition: all 0.2s ease;
      background: white;
      color: #1e293b;
    }

    input[type="text"]:focus,
    input[type="number"]:focus,
    select:focus {
      outline: none;
      border-color: #667eea;
      box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    }

    input::placeholder {
      color: #94a3b8;
    }

    /* BOTÕES */
    .form-buttons {
      display: flex;
      gap: 1rem;
      margin-top: 1rem;
    }

    button,
    .cancel-btn {
      padding: 0.875rem 2rem;
      border-radius: 8px;
      font-weight: 600;
      font-size: 0.95rem;
      cursor: pointer;
      transition: all 0.2s ease;
      border: none;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }

    .save-btn,
    .update-btn {
      background: #667eea ;
      color: white;
      flex: 1;
    }

    .save-btn:hover,
    .update-btn:hover {
        background: #869cfd ;
      transform: translateY(-2px);
      box-shadow: 0 8px 16px rgba(102, 126, 234, 0.3);
    }

    .cancel-btn {
      background: #e2e8f0;
      color: #475569;
      flex: 1;
    }

    .cancel-btn:hover {
      background: #cbd5e1;
      transform: translateY(-2px);
    }

    /* COLUNA DAS TABELAS */
    .tables-column {
      display: flex;
      flex-direction: column;
      gap: 2rem;
    }

    .table-container {
      background: #f8fafc;
      border-radius: 6px;
      overflow: hidden;
      border: 1px solid #e2e8f0;
    }

    .table-container h2 {
      background:#475569;
      color: white;
      padding: 0.6rem 0.6rem;
      font-size: 1rem;
      font-weight: 500;
    }

    .compact-table {
      width: 100%;
      border-collapse: collapse;
    }

    .compact-table thead {
      background: #e2e8f0;
    }

    .compact-table th {
      padding: 0.6rem 1.65rem;
      text-align: left;
      font-weight: 600;
      font-size: 0.85rem;
      color: #475569;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    .compact-table tbody tr {
      border-bottom: 1px solid #e2e8f0;
      transition: background 0.2s ease;
    }

    .compact-table tbody tr:hover {
      background: #f1f5f9;
    }

    .compact-table td {
      padding: 0.3rem 1.25rem;
      color: #334155;
      font-size: 0.9rem;
    }

    .action-btn,
    .delete-btn {
      padding: 0.5rem 1rem;
      border-radius: 6px;
      font-size: 0.85rem;
      font-weight: 500;
      text-decoration: none;
      transition: all 0.2s ease;
      display: inline-block;
      margin-right: 0.5rem;
    }

    .action-btn {
      
      color: #667eea;
    }

    .action-btn:hover {
      background: #afbbfd;
      transform: translateY(-1px);
      box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
    }

    .delete-btn {
      
      color: #ef4444;
    }

    .delete-btn:hover {
      background: #fac0c0;
      transform: translateY(-1px);
      box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3);
    }

    /* RESPONSIVO */
    @media (max-width: 1200px) {
      .config-layout {
        grid-template-columns: 1fr;
      }

      .form-column {
        order: 1;
      }

      .tables-column {
        order: 2;
      }
    }

    @media (max-width: 768px) {
      body {
        padding: 1rem;
      }

      h1 {
        font-size: 1.5rem;
        padding: 1.5rem;
      }

      .config-form {
        padding: 1.5rem;
      }

      .form-buttons {
        flex-direction: column;
      }

      .compact-table {
        font-size: 0.85rem;
      }

      .compact-table th,
      .compact-table td {
        padding: 0.75rem;
      }
    }