/* Custom Styles for the Gemini Due Diligence Plugin Suite */

/* --- General Containers and Forms --- */
.grg-form-container {
    padding: 15px;
    border: 1px solid #ddd;
    background-color: #fff;
    border-radius: 4px;
    max-width: 800px; 
    margin: 20px 0;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.grg-form-container h3 {
    margin-top: 0;
    border-bottom: 2px solid #eee;
    padding-bottom: 5px;
    color: #0073aa; /* WordPress Blue */
}

/* --- Input Elements --- */
.grg-form input[type="text"],
.grg-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    margin-top: 5px;
    margin-bottom: 10px;
    font-size: 14px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.07);
}

.grg-form textarea {
    resize: vertical;
}

.grg-label {
    display: block; 
    font-weight: bold; 
    margin-bottom: 2px;
}

/* --- Buttons --- */
.grg-submit-btn {
    background-color: #0073aa; 
    color: white; 
    border: none; 
    padding: 10px 20px; 
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    border-radius: 3px;
    box-shadow: 0 1px 0 rgba(0,0,0,.15);
}

.grg-submit-btn:hover {
    background-color: #005177;
}

.grg-copy-btn {
    /* Use default WordPress secondary button style but ensure it's visible */
    font-weight: 600;
    margin-bottom: 10px !important;
}

/* --- Loading and Output --- */
.grg-loading {
    padding: 10px 0;
    color: #0073aa; 
    font-weight: bold;
}

.grg-report-output {
    padding: 15px;
    border-left: 5px solid #28a745; /* Green flag color */
    background: #f8f8f8;
    font-size: 14px;
    line-height: 1.6;
    border-radius: 0 3px 3px 0;
}

/* Target the <pre> tag we use to wrap the report text */
.grg-report-text {
    /* Critical: This preserves the AI's spacing and line breaks for markdown rendering */
    white-space: pre-wrap; 
    word-wrap: break-word;
    font-family: inherit;
    line-height: 1.6; 
    margin: 0;
    border: none;
    background: transparent;
    padding: 0;
}

/* Ensure headings inside the report text look distinct */
.grg-report-text h1, 
.grg-report-text h2, 
.grg-report-text h3, 
.grg-report-text h4 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    font-weight: bold;
    color: #333;
}