/* csr-cert-parser-js/css/parser-styles.css */
.csr-cert-parser-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.csr-cert-parser-container h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
    font-size: 1.8em;
}

.csr-cert-parser-container label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

.csr-cert-parser-container textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: monospace;
    font-size: 0.95em;
    resize: vertical; /* Allow vertical resizing */
    min-height: 200px; /* Ensure a decent initial height */
    transition: border-color 0.3s ease-in-out;
}

.csr-cert-parser-container .button {
    display: inline-block;
    background-color: #0073aa; /* WordPress primary button color */
    color: #fff;
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.csr-cert-parser-container .button:hover {
    background-color: #005177;
}

.parser-error {
    color: #dc3545; /* Bootstrap red for errors */
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 20px;
    display: none; /* Hidden by default, shown by JS */
}

.parser-error p {
    margin: 0;
}

.parser-results {
    margin-top: 30px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    background-color: #ffffff;
    border-radius: 5px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

.parser-results h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #444;
    font-size: 1.5em;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.parser-results pre {
    white-space: pre-wrap; /* Preserve whitespace and wrap long lines */
    word-break: break-all; /* Break words at any character to prevent overflow */
    background-color: #f0f0f0;
    padding: 15px;
    border-radius: 4px;
    overflow-x: auto; /* For very long lines that might not wrap perfectly */
    font-size: 0.85em;
    line-height: 1.4;
    color: #333;
}