/* Fish Compatibility Tool Styles */
.fish-tool-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.fish-tool-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
}

.fish-tool-header h2 {
    color: #2c3e50;
    margin: 0 0 10px 0;
    font-size: 2.2em;
    font-weight: 600;
}

.fish-tool-header p {
    color: #6c757d;
    margin: 0;
    font-size: 1.1em;
}

.fish-tool-form {
    margin-bottom: 30px;
}

.tank-size-section {
    margin-bottom: 25px;
    text-align: center;
}

.tank-size-section label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1em;
}

.tank-size-section input {
    width: 200px;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1.1em;
    text-align: center;
    transition: border-color 0.3s ease;
}

.tank-size-section input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.fish-selection-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.fish-input-group {
    display: flex;
    flex-direction: column;
}

.fish-input-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 1em;
}

.fish-input-group select {
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1em;
    background-color: #ffffff;
    transition: border-color 0.3s ease;
    cursor: pointer;
}

.fish-input-group select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.check-btn {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    padding: 15px 30px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.check-btn:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.check-btn:active {
    transform: translateY(0);
}

.result-section {
    margin-top: 30px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 5px solid #007bff;
}

.result-section h3 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 1.5em;
    font-weight: 600;
}

.compatibility-summary {
    margin-bottom: 20px;
}

.compatibility-good {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #c3e6cb;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.compatibility-bad {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #f5c6cb;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.issues-list, .warnings-list {
    margin: 10px 0;
    padding-left: 20px;
}

.issues-list li {
    color: #721c24;
    margin-bottom: 8px;
    font-weight: 500;
}

.warnings-list li {
    color: #856404;
    margin-bottom: 8px;
}

.warnings-section {
    background: #fff3cd;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ffeaa7;
    margin-top: 15px;
}

.warnings-section h4 {
    margin: 0 0 10px 0;
    color: #856404;
    font-size: 1.1em;
}

.fish-details {
    margin-top: 20px;
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.fish-details h4 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 1.2em;
    font-weight: 600;
}

.fish-detail-item {
    background: #f8f9fa;
    padding: 12px 15px;
    margin-bottom: 10px;
    border-radius: 6px;
    border-left: 3px solid #007bff;
    font-size: 0.95em;
    line-height: 1.4;
}

.fish-detail-item:last-child {
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .fish-tool-container {
        margin: 10px;
        padding: 20px;
    }
    
    .fish-tool-header h2 {
        font-size: 1.8em;
    }
    
    .fish-selection-section {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .tank-size-section input {
        width: 100%;
        max-width: 200px;
    }
    
    .check-btn {
        font-size: 1.1em;
        padding: 12px 25px;
    }
}

@media (max-width: 480px) {
    .fish-tool-container {
        padding: 15px;
    }
    
    .fish-tool-header h2 {
        font-size: 1.6em;
    }
    
    .fish-tool-header p {
        font-size: 1em;
    }
    
    .result-section {
        padding: 15px;
    }
    
    .fish-details {
        padding: 15px;
    }
}

/* Animation for results */
.result-section {
    animation: slideIn 0.5s ease-out;
}

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

/* Loading state for button */
.check-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.check-btn:disabled:hover {
    background: #6c757d;
    transform: none;
    box-shadow: none;
}

/* AI Response Styles */
.ai-response {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.ai-header {
    font-size: 1.3em;
    font-weight: 700;
    margin-bottom: 15px;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.ai-content {
    line-height: 1.6;
    font-size: 1.05em;
}

.ai-content strong {
    color: #ffd700;
    font-weight: 600;
}

.loading-message {
    text-align: center;
    padding: 40px 20px;
    font-size: 1.2em;
    color: #6c757d;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #f5c6cb;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 500;
}

/* Enhanced result section for AI */
.result-section .ai-response {
    margin-top: 0;
}

.result-section .ai-content h1,
.result-section .ai-content h2,
.result-section .ai-content h3,
.result-section .ai-content h4 {
    color: #ffd700;
    margin-top: 20px;
    margin-bottom: 10px;
}

.result-section .ai-content h1:first-child,
.result-section .ai-content h2:first-child,
.result-section .ai-content h3:first-child,
.result-section .ai-content h4:first-child {
    margin-top: 0;
}

.result-section .ai-content ul {
    margin: 10px 0;
    padding-left: 20px;
}

.result-section .ai-content li {
    margin-bottom: 8px;
    color: #ffffff;
}

/* Responsive AI styles */
@media (max-width: 768px) {
    .ai-response {
        padding: 20px 15px;
    }
    
    .ai-header {
        font-size: 1.2em;
    }
    
    .ai-content {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .ai-response {
        padding: 15px 10px;
    }
    
    .ai-header {
        font-size: 1.1em;
    }
    
    .loading-message {
        padding: 30px 15px;
        font-size: 1.1em;
    }
}
