/* CV Ketel Info - Frontend Styling voor Monteurs */

.cvki-frontend-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Header */
.cvki-header {
    text-align: center;
    margin-bottom: 40px;
}

.cvki-header h2 {
    font-size: 32px;
    color: #1e293b;
    margin-bottom: 10px;
}

.cvki-subtitle {
    font-size: 16px;
    color: #64748b;
    margin: 0;
}

/* Search Form */
.cvki-search-form {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 30px;
    margin-bottom: 30px;
}

.cvki-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.cvki-form-group {
    display: flex;
    flex-direction: column;
}

.cvki-form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
    font-size: 15px;
}

.cvki-label-icon {
    font-size: 20px;
}

.cvki-select {
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background-color: #fff;
    transition: all 0.3s ease;
    cursor: pointer;
}

.cvki-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.cvki-select:disabled {
    background-color: #f1f5f9;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Buttons */
.cvki-button-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cvki-button {
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cvki-button .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.cvki-button-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.cvki-button-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(102, 126, 234, 0.3);
}

.cvki-button-primary:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
}

.cvki-button-secondary {
    background: #f1f5f9;
    color: #475569;
}

.cvki-button-secondary:hover {
    background: #e2e8f0;
}

.cvki-button-small {
    padding: 8px 16px;
    font-size: 14px;
}

/* Loading */
.cvki-loading {
    text-align: center;
    padding: 40px;
}

.cvki-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f4f6;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

/* No Results */
.cvki-no-results {
    text-align: center;
    padding: 40px;
    background: #fef3c7;
    border-radius: 12px;
    border: 2px solid #fbbf24;
}

.cvki-no-results-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.cvki-no-results h3 {
    color: #92400e;
    margin-bottom: 10px;
}

.cvki-no-results p {
    color: #78350f;
    margin: 0;
}

/* Results Container */
.cvki-results {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 30px;
}

/* Ketel Details */
.cvki-ketel-details {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.cvki-ketel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #667eea;
}

.cvki-ketel-title h2 {
    font-size: 28px;
    color: #1e293b;
    margin: 0 0 10px 0;
}

.cvki-badge {
    display: inline-block;
    padding: 6px 12px;
    background: #e0e7ff;
    color: #4338ca;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    margin-right: 8px;
}

.cvki-badge-type {
    background: #dcfce7;
    color: #166534;
}

/* Sections */
.cvki-section {
    margin-bottom: 35px;
    padding: 25px;
    background: #f8fafc;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.cvki-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    color: #1e293b;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
}

.cvki-icon {
    font-size: 24px;
}

/* Specs Grid */
.cvki-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.cvki-spec-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.cvki-spec-label {
    display: block;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 5px;
    font-weight: 500;
}

.cvki-spec-value {
    display: block;
    font-size: 18px;
    color: #1e293b;
    font-weight: 600;
}

/* Info Boxes */
.cvki-info-box {
    background: #e0f2fe;
    border-left: 4px solid #0284c7;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 6px;
}

.cvki-info-box strong {
    color: #0c4a6e;
}

/* Steps & Tips */
.cvki-steps,
.cvki-tips,
.cvki-procedure {
    background: white;
    padding: 20px;
    border-radius: 8px;
    line-height: 1.8;
    white-space: pre-line;
}

/* Rookgas Values */
.cvki-rookgas-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.cvki-value-box {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 2px solid #fbbf24;
}

.cvki-value-label {
    display: block;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 8px;
    font-weight: 500;
}

.cvki-value {
    display: block;
    font-size: 22px;
    color: #1e293b;
    font-weight: 700;
}

/* Warning & Attention Boxes */
.cvki-warning-box,
.cvki-attention-box {
    background: #fef3c7;
    border: 2px solid #fbbf24;
    padding: 20px;
    border-radius: 8px;
    line-height: 1.8;
    white-space: pre-line;
}

.cvki-storingen-box {
    background: #fee2e2;
    border: 2px solid #ef4444;
    padding: 20px;
    border-radius: 8px;
    line-height: 1.8;
    white-space: pre-line;
}

.cvki-safety-box {
    background: #fee2e2;
    border: 3px solid #dc2626;
    padding: 20px;
    border-radius: 8px;
    line-height: 1.8;
    white-space: pre-line;
    font-weight: 500;
}

/* Documentation Links */
.cvki-docs-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.cvki-doc-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    color: #1e293b;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cvki-doc-link:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.cvki-doc-link .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

/* Footer */
.cvki-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e2e8f0;
}

.cvki-disclaimer {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
}

.cvki-disclaimer strong {
    color: #92400e;
}

.cvki-copyright {
    text-align: center;
    color: #64748b;
    font-size: 14px;
    margin: 0;
}

/* Subsections */
.cvki-subsection {
    margin-bottom: 25px;
}

.cvki-subsection h4 {
    color: #475569;
    margin-bottom: 12px;
    font-size: 16px;
}

/* Print Styles */
@media print {
    .cvki-search-form,
    .cvki-ketel-actions,
    .cvki-button-group {
        display: none !important;
    }
    
    .cvki-section {
        page-break-inside: avoid;
        break-inside: avoid;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .cvki-ketel-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .cvki-form-row {
        grid-template-columns: 1fr;
    }
    
    .cvki-button-group {
        flex-direction: column;
    }
    
    .cvki-button {
        width: 100%;
        justify-content: center;
    }
    
    .cvki-specs-grid,
    .cvki-rookgas-values,
    .cvki-docs-links {
        grid-template-columns: 1fr;
    }
}
