/* Notification animations and additional styles */

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Additional responsive fixes for the new layout */
.no-summaries {
    text-align: center;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.5);
}

.no-summaries i {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 1rem;
    display: block;
}

.error-loading {
    text-align: center;
    padding: 2rem;
    color: rgba(255, 100, 100, 0.8);
}

/* Fix summary output for better readability */
.summary-output.markdown-content {
    color: #333;
    line-height: 1.8;
    font-size: 1rem;
}

.summary-output.markdown-content h1 {
    color: #800020;
    border-bottom: 2px solid rgba(128, 0, 32, 0.2);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.summary-output.markdown-content h2 {
    color: #a0002a;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.summary-output.markdown-content h3 {
    color: #c0003f;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

.summary-output.markdown-content ul,
.summary-output.markdown-content ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.summary-output.markdown-content li {
    margin-bottom: 0.5rem;
}

.summary-output.markdown-content strong {
    color: #800020;
}

.summary-output.markdown-content em {
    color: #666;
    font-style: italic;
}

/* Better mindmap styling */
.mindmap-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid rgba(128, 0, 32, 0.1);
}

/* Loading status enhancements */
#loading-status {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.5rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* Panel collapse animation */
.summaries-panel.collapsed .panel-header h3,
.summaries-panel.collapsed .panel-content {
    opacity: 0;
    pointer-events: none;
}

.summaries-panel.collapsed {
    overflow: hidden;
}

/* Better spacing for mobile */
@media (max-width: 768px) {
    .panel-header {
        padding: 1rem;
    }
    
    .panel-content {
        padding: 0.5rem;
    }
    
    .summary-item {
        padding: 0.8rem;
        margin-bottom: 0.5rem;
    }
}

/* Ensure controls are visible and styled properly */
.controls-section {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.controls-section.hidden {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
}

/* Credits cost display enhancement */
.cost-info .cost-amount {
    text-shadow: 0 2px 4px rgba(255, 107, 157, 0.5);
}

/* Better button states */
.analyze-button.loading {
    pointer-events: none;
}

.analyze-button.loading .btn-text {
    opacity: 0;
}

.analyze-button.loading .btn-loading {
    opacity: 1;
}

/* Summary actions enhancement */
.summary-actions .action-btn {
    opacity: 0;
    animation: fadeInUp 0.5s ease-out forwards;
}

.summary-actions .action-btn:nth-child(1) {
    animation-delay: 0.1s;
}

.summary-actions .action-btn:nth-child(2) {
    animation-delay: 0.2s;
}

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