/* VERA-VM Plugin Styles */

.vera-analysis-container {
    max-width: 1000px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.vera-analysis-container h2 {
    color: #2c3e50;
    border-bottom: 3px solid #3498db;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.vera-analysis-container h3 {
    color: #34495e;
    margin: 20px 0 15px 0;
    font-size: 1.2em;
}

.vera-analysis-container h4 {
    color: #2980b9;
    margin: 15px 0 10px 0;
    font-size: 1.1em;
}

/* Form Tables */
.form-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 25px;
    background: #fafafa;
    border-radius: 6px;
    overflow: hidden;
}

.form-table th {
    background: #ecf0f1;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 1px solid #bdc3c7;
    vertical-align: top;
    width: 25%;
}

.form-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #ecf0f1;
    vertical-align: top;
}

.form-table tr:last-child th,
.form-table tr:last-child td {
    border-bottom: none;
}

/* Form Inputs */
.vera-form input[type="text"],
.vera-form input[type="url"],
.vera-form input[type="email"],
.vera-form select,
.vera-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #bdc3c7;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.vera-form input[type="text"]:focus,
.vera-form input[type="url"]:focus,
.vera-form input[type="email"]:focus,
.vera-form select:focus,
.vera-form textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

.vera-form input[type="file"] {
    padding: 8px;
    border: 2px dashed #bdc3c7;
    border-radius: 4px;
    background: #f8f9fa;
    width: 100%;
    box-sizing: border-box;
}

.vera-form input[type="file"]:hover {
    border-color: #3498db;
    background: #e8f4fd;
}

/* Theory Section */
.theory-table {
    background: #f8f9fa;
}

.theory-description {
    font-style: italic;
    color: #7f8c8d;
    margin: 5px 0 10px 0;
    font-size: 0.9em;
    line-height: 1.4;
}

.checkbox-group {
    margin: 10px 0 20px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s ease;
    min-width: 200px;
}

.checkbox-group label:hover {
    background: #e8f4fd;
    border-color: #3498db;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.2);
}

.checkbox-group input[type="checkbox"]:checked + label,
.checkbox-group label:has(input[type="checkbox"]:checked) {
    background: #3498db;
    color: white;
    border-color: #2980b9;
}

/* Radio buttons */
.vera-form input[type="radio"] {
    margin-right: 8px;
    transform: scale(1.2);
}

.vera-form label:has(input[type="radio"]) {
    margin-right: 20px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.vera-form label:has(input[type="radio"]:checked) {
    background: #e8f4fd;
    color: #2980b9;
}

/* Buttons */
.button-row-table {
    width: 100%;
    margin-top: 30px;
}

.button-row-table td {
    padding: 10px;
    text-align: center;
}

.button-analyse,
.button-show,
.button-reset {
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
}

.button-analyse {
    background: #27ae60;
    color: white;
}

.button-analyse:hover {
    background: #229954;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(39, 174, 96, 0.3);
}

.button-show {
    background: #3498db;
    color: white;
}

.button-show:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.button-reset {
    background: #e74c3c;
    color: white;
}

.button-reset:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.3);
}

/* Results Section */
.vera-results {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #3498db;
}

.vera-results h3 {
    color: #2c3e50;
    margin-top: 0;
}

#vera-output {
    background: white;
    padding: 20px;
    border-radius: 4px;
    border: 1px solid #ddd;
    white-space: pre-wrap;
    font-family: 'Georgia', serif;
    line-height: 1.6;
}

/* Loading States */
.vera-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error Messages */
.vera-error {
    background: #f8d7da;
    color: #721c24;
    padding: 12px 15px;
    border-radius: 4px;
    border: 1px solid #f5c6cb;
    margin: 10px 0;
}

.vera-success {
    background: #d4edda;
    color: #155724;
    padding: 12px 15px;
    border-radius: 4px;
    border: 1px solid #c3e6cb;
    margin: 10px 0;
}

/* Small text */
small {
    color: #6c757d;
    font-size: 0.85em;
    display: block;
    margin-top: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .vera-analysis-container {
        margin: 10px;
        padding: 15px;
    }
    
    .form-table th,
    .form-table td {
        display: block;
        width: 100%;
        padding: 8px 12px;
    }
    
    .form-table th {
        background: #34495e;
        color: white;
        font-weight: bold;
    }
    
    .checkbox-group {
        flex-direction: column;
    }
    
    .checkbox-group label {
        min-width: auto;
    }
    
    .button-row-table td {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .button-analyse,
    .button-show,
    .button-reset {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* PDF Access Styles */
.vera-pdf-access {
    text-align: center;
    margin: 20px 0;
}

.vera-pdf-access .button {
    display: inline-block;
    padding: 12px 25px;
    background: #2980b9;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.vera-pdf-access .button:hover {
    background: #1f618d;
    text-decoration: none;
}

