/* File: robot-error-debugger.css
   Robot Error Log Debugger - Specific Styles
*/

/* Additional styles specific to this tool */
.error-debugger-wrapper {
    max-width: 1400px;
    margin: 0 auto;
}

/* Hero Section */
.error-hero {
    background: linear-gradient(135deg, #8B0000 0%, #B22234 100%);
    border-radius: 1.5rem;
    padding: 2rem;
    margin-bottom: 2rem;
    color: white;
    text-align: center;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.error-hero h1 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.error-hero h1 i {
    margin-right: 10px;
}

/* Feature Grid */
.error-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.error-feature-item {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border: 2px solid transparent;
    cursor: default;
}

.error-feature-item:hover {
    transform: translateY(-5px);
    border-color: #f39c12;
}

/* Tool Wrapper */
.error-tool-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.error-input-container,
.error-output-container {
    flex: 1;
    min-width: 300px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
}

.section-title {
    color: #2c3e50;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e74c3c;
    font-size: 1.5rem;
}

/* Input Group */
.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #34495e;
}

.input-group textarea,
.input-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
    background-color: white;
    font-family: 'Courier New', monospace;
}

.input-group textarea {
    resize: vertical;
    min-height: 250px;
}

.input-group textarea:focus,
.input-group select:focus {
    border-color: #e74c3c;
    outline: none;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.2);
}

/* Button Groups */
.button-group {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.debug-btn, .fix-btn, .clear-btn, .copy-btn, .sample-btn, .download-btn {
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.debug-btn {
    background-color: #e74c3c;
    flex: 1;
}

.debug-btn:hover {
    background-color: #c0392b;
    transform: translateY(-1px);
}

.fix-btn {
    background-color: #27ae60;
    flex: 1;
}

.fix-btn:hover {
    background-color: #219a52;
    transform: translateY(-1px);
}

.clear-btn {
    background-color: #95a5a6;
    flex: 1;
}

.clear-btn:hover {
    background-color: #7f8c8d;
    transform: translateY(-1px);
}

.sample-btn {
    background-color: #9b59b6;
    flex: 1;
}

.sample-btn:hover {
    background-color: #8e44ad;
    transform: translateY(-1px);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.copy-btn {
    background-color: #f39c12;
}

.copy-btn:hover {
    background-color: #e67e22;
    transform: translateY(-1px);
}

.download-btn {
    background-color: #2c3e50;
}

.download-btn:hover {
    background-color: #1a252f;
    transform: translateY(-1px);
}

/* Output Header */
.output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.output-header h2 {
    margin: 0;
}

/* Result Box */
.result-box {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    border-left: 4px solid #e74c3c;
}

.result-title {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 600;
}

.status-success {
    color: #27ae60;
    font-weight: bold;
}

.status-error {
    color: #e74c3c;
    font-weight: bold;
}

.status-warning {
    color: #f39c12;
    font-weight: bold;
}

/* Analysis Output */
.analysis-output {
    background-color: #1e2b3a;
    color: #e9ecef;
    padding: 20px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 500px;
    overflow-y: auto;
    border: 1px solid #4a5568;
    line-height: 1.6;
}

.analysis-output .error-line {
    color: #ff8b8b;
    font-weight: bold;
}

.analysis-output .warning-line {
    color: #ffd43b;
}

.analysis-output .info-line {
    color: #69db7e;
}

.analysis-output .suggestion {
    color: #5c7cfa;
    font-style: italic;
}

/* Info Section */
.info-section {
    margin-top: 50px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.info-card {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.info-card h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e74c3c;
    font-size: 1.5rem;
}

.info-card h3 {
    color: #2c3e50;
    margin: 20px 0 10px;
    font-size: 1.2rem;
}

/* FAQ Styling */
.faq-item {
    margin-bottom: 20px;
    border-bottom: 1px solid #e1e5eb;
    padding-bottom: 15px;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:hover {
    color: #e74c3c;
}

.faq-question span {
    transition: transform 0.2s ease;
}

.faq-question.open span {
    transform: rotate(180deg);
}

.faq-answer {
    color: #5a6268;
    padding-left: 20px;
    border-left: 3px solid #e74c3c;
    margin-top: 10px;
    display: none;
}

/* Example Box */
.example-box {
    background-color: #1e2b3a;
    color: #e9ecef;
    padding: 15px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    overflow-x: auto;
    margin: 15px 0;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .error-tool-wrapper {
        flex-direction: column;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .debug-btn, .fix-btn, .clear-btn, .sample-btn {
        width: 100%;
    }
    
    .action-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .copy-btn, .download-btn {
        width: 100%;
    }
    
    .output-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .error-feature-grid {
        grid-template-columns: 1fr;
    }
    
    .info-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .error-input-container,
    .error-output-container {
        padding: 20px;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .error-hero h1 {
        font-size: 1.5rem;
    }
    
    .error-feature-item {
        padding: 15px;
        font-size: 0.9rem;
    }
}