/* Recommendations History Grid */
.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.recommendation-history-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    overflow: hidden;
}

.recommendation-history-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    border-color: #007bff;
}

.recommendation-history-card .card-header {
    background: #f8f9fa;
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.recommendation-history-card .card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.recommendation-history-card .card-date {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

.recommendation-history-card .status-icon {
    font-size: 14px;
}

.recommendation-history-card .status-icon.success { color: #10b981; }
.recommendation-history-card .status-icon.warning { color: #f59e0b; }
.recommendation-history-card .status-icon.danger { color: #ef4444; }
.recommendation-history-card .status-icon.muted { color: #9ca3af; }

.recommendation-history-card .card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.recommendation-history-card .model-badge {
    background: #007bff;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
}

.recommendation-history-card .delete-btn {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 10px;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.recommendation-history-card .delete-btn:hover {
    opacity: 1;
    background: #c82333;
    transform: scale(1.1);
}

.recommendation-history-card:hover .delete-btn {
    opacity: 1;
}

.recommendation-history-card .card-body {
    padding: 16px;
    cursor: pointer;
}

.recommendation-history-card .card-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 12px;
    color: #6b7280;
}

.recommendation-history-card .card-stats i {
    margin-right: 4px;
    width: 12px;
}

.recommendation-history-card .card-preview {
    font-size: 13px;
    line-height: 1.4;
    color: #374151;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Modal Content Styling */
.recommendations-content {
    font-size: 14px;
    line-height: 1.6;
    color: #374151;
}

.recommendations-content h1 {
    font-size: 24px;
    font-weight: bold;
    margin: 24px 0 16px 0;
    color: #1f2937;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 8px;
}

.recommendations-content h2 {
    font-size: 20px;
    font-weight: bold;
    margin: 20px 0 12px 0;
    color: #1f2937;
}

.recommendations-content h3 {
    font-size: 16px;
    font-weight: bold;
    margin: 16px 0 8px 0;
    color: #374151;
}

.recommendations-content p {
    margin-bottom: 12px;
}

.recommendations-content strong {
    font-weight: 600;
    color: #1f2937;
}

.recommendations-content em {
    font-style: italic;
    color: #6b7280;
}

.recommendations-content hr {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 24px 0;
}