/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }
  a {
    color: #3b82f6;
    text-decoration: none;
  }
  a:hover {
    text-decoration: underline;
  }
  .navbar {
    background-color: #3b82f6;
    color: #fff;
    padding: 15px 20px;
    display: flex;
    align-items: center;
  }
  main {
    flex: 1;
    display: flex;
    padding: 20px;
    gap: 20px;
  }
  .left, .right {
    background-color: #fff;
    padding: 25px;
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  .left {
    flex: 1;
    max-width: 600px;
  }
  .right {
    flex: 1.5;
    overflow-x: auto;
  }
  h1 {
    font-size: 1.5em;
    color: #ffffff;
  }
  h2 {
    font-size: 1.2em;
    color: #2c3e50;
    margin-bottom: 15px;
  }
  /* File input styling */
  .cert-input-container {
    margin-bottom: 20px;
  }
  textarea {
    display: block;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    min-height: 500px;
    font-family: monospace;
    resize: vertical;
    overflow-x: auto;
    white-space: pre;
  }
  /* Table Styles */
  table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    table-layout: fixed;
  }
  table tr:nth-child(even) {
    background-color: #f8f9fa;
  }
  table td {
    padding: 10px;
    border: 1px solid #ccc;
    word-break: break-word;
  }
  table td:first-child {
    font-weight: bold;
    width: 40%;
    vertical-align: top;
  }
  table td:last-child {
    width: 60%;
    overflow: hidden;
  }
  .scroll-container {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    padding: 2px 0;
    margin-bottom: 1px;
    font-family: monospace;
  }
  .domain-container {
    font-family: monospace;
  }
  /* Copy Link Button Styles */
  #copy-link-btn {
    background-color: #3b82f6;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
  }

  #copy-link-btn:hover {
    background-color: #2563eb;
  }

  #copy-link-btn:active {
    background-color: #1d4ed8;
  }

  #copy-success {
    display: none;
    margin-left: 10px;
    color: green;
    font-size: 14px;
    font-weight: 500;
  }

  #copy-link-container {
    display: none;
    margin-top: 10px;
  }

  /* Footer Styles */
  footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    font-size: 0.8em;
    padding: 1rem;
    border-top: 1px solid #e5e7eb;
    text-align: center;
  }
  footer a {
    color: #9ca3af;
    text-decoration: none;
  }
  footer a:hover {
    text-decoration: underline;
  }

  /* Distinguished Name Formatting */
  .dn-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .dn-item {
    margin-bottom: 2px;
  }

  .dn-label {
    font-weight: bold;
    margin-right: 5px;
  }

  .raw-dn {
    color: #777;
    font-size: 0.8em;
    margin-top: 4px;
    display: block;
  }