/* Container layout */
.matrix-wrapper {
    min-height: 100vh;
    background: #f7f7f7;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
  }
  
  .matrix-card {
    width: 100%;
    max-width: 600px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 24px;
  }
  
  /* Headings */
  .matrix-title {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    color: #4f46e5;
    margin-bottom: 20px;
  }
  
  /* Form layout */
  .matrix-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  
  .matrix-label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    color: #333;
  }
  
  .matrix-hint {
    display: block;
    margin-bottom: 10px;
    color: #666;
  }
  
  /* Inputs */
  .matrix-input,
  .matrix-select,
  .matrix-textarea {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
  }
  
  .matrix-textarea {
    padding: 12px;
  }
  
  .matrix-select {
    padding: 8px;
  }
  
  /* Button */
  .matrix-button {
    padding: 10px 24px;
    background: #4f46e5;
    color: white;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease-in-out;
  }
  
  .matrix-button:hover {
    background: #4338ca;
  }
  
  /* Result section */
  .matrix-result {
    margin-top: 24px;
    padding: 16px;
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 6px;
  }
  
  .matrix-result h3 {
    font-size: 18px;
    font-weight: 600;
    color: #166534;
  }
  
  .matrix-table {
    margin-top: 12px;
    border-collapse: separate;
    border-spacing: 8px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .matrix-table td {
    padding: 6px 12px;
    border: 1px solid #999;
    text-align: center;
  }
  
  .matrix-text {
    margin-top: 10px;
    color: #222;
    font-family: monospace;
  }
  