/* Leland AI Styles */

/* Leland Button */
.leland-trigger-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white !important;
    transition: all 0.3s ease;
}

.leland-trigger-btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    color: white !important;
}

.leland-icon {
    font-style: normal;
}

.leland-icon-large {
    font-size: 2.5rem;
    display: inline-block;
}

/* Modal Header */
.leland-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 0.5rem 0.5rem 0 0;
}

.leland-header .btn-close {
    filter: brightness(0) invert(1);
}

.leland-header .modal-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Action Options */
.leland-action-option {
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.leland-action-option:hover {
    border-color: #667eea;
    background-color: #f8f9ff;
}

.leland-action-option:has(input:checked) {
    border-color: #667eea;
    background-color: #f0f3ff;
}

.leland-action-option .form-check-input {
    margin-top: 0.25rem;
}

.leland-action-option label {
    cursor: pointer;
    margin-left: 0.5rem;
}

/* Featured Action (Quick Reply) */
.leland-action-featured {
    background: linear-gradient(135deg, #f0f3ff 0%, #e8ebff 100%);
    border-color: #667eea;
}

.leland-action-featured:hover {
    background: linear-gradient(135deg, #e8ebff 0%, #dde2ff 100%);
}

.leland-action-featured:has(input:checked) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
}

.leland-action-featured:has(input:checked) label {
    color: white;
}

.leland-action-featured:has(input:checked) label strong {
    color: white;
}

.leland-action-featured:has(input:checked) label small {
    color: rgba(255,255,255,0.85) !important;
}

/* Result Box */
.leland-result-box {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f3ff 100%);
    border: 1px solid #e0e5ff;
    border-radius: 0.5rem;
    padding: 1rem;
    min-height: 150px;
    max-height: 300px;
    overflow-y: auto;
    white-space: pre-wrap;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Loading Spinner */
.leland-spinner {
    animation: leland-pulse 1.5s ease-in-out infinite;
}

@keyframes leland-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
}

/* Modal Improvements */
#leland-modal .modal-content {
    border-radius: 0.75rem;
    overflow: hidden;
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

#leland-modal .modal-footer {
    background-color: #f8f9fa;
}

/* Button Styles */
#leland-go-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

#leland-go-btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

#leland-use-btn {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    border: none;
}

#leland-use-btn:hover {
    background: linear-gradient(135deg, #38ef7d 0%, #11998e 100%);
}

/* Responsive */
@media (max-width: 768px) {
    .leland-trigger-btn span.hidden-xs {
        display: none;
    }
    
    .leland-action-option {
        padding: 0.75rem;
    }
}

/* Fade in animation for result */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#leland-result {
    animation: fadeInUp 0.3s ease;
}

/* Sentiment Analysis */
.leland-sentiment-card {
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid #e9ecef;
    background-color: #f8f9fa;
    animation: fadeInUp 0.3s ease;
}

.leland-sentiment-emoji {
    font-size: 2rem;
    line-height: 1;
}

.leland-sentiment-card.sentiment-frustrated {
    background: linear-gradient(135deg, #fff5f5 0%, #fee2e2 100%);
    border-color: #fca5a5;
}

.leland-sentiment-card.sentiment-frustrated .leland-sentiment-emoji {
    color: #dc2626;
}

.leland-sentiment-card.sentiment-neutral {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border-color: #d1d5db;
}

.leland-sentiment-card.sentiment-neutral .leland-sentiment-emoji {
    color: #6b7280;
}

.leland-sentiment-card.sentiment-happy {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: #86efac;
}

.leland-sentiment-card.sentiment-happy .leland-sentiment-emoji {
    color: #16a34a;
}

#leland-sentiment-suggestion {
    font-size: 0.85rem;
}

.icon-12 {
    width: 12px;
    height: 12px;
}

/* Quick Actions */
.leland-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.leland-quick-action {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 2rem;
    padding: 0.35rem 0.85rem;
    font-size: 0.85rem;
    color: #495057;
    transition: all 0.2s ease;
    cursor: pointer;
}

.leland-quick-action:hover {
    background-color: #e9ecef;
    border-color: #ced4da;
    color: #495057;
}

.leland-quick-action.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
}

.leland-quick-action.active:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    color: white;
}
