/* History Card Styles */
.history-card {
    margin-top: var(--spacing-xl);
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.history-title-wrapper {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.history-icon {
    width: 32px;
    height: 32px;
    color: #667eea;
}

.history-title {
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.clear-history-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 0.75rem 1.25rem;
    background: rgba(245, 87, 108, 0.1);
    border: 1px solid rgba(245, 87, 108, 0.3);
    border-radius: var(--radius-md);
    color: #f5576c;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.clear-history-btn svg {
    width: 18px;
    height: 18px;
}

.clear-history-btn:hover {
    background: rgba(245, 87, 108, 0.2);
    border-color: rgba(245, 87, 108, 0.5);
    transform: translateY(-2px);
}

/* History Empty State */
.history-empty {
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-lg);
    color: var(--text-secondary);
}

.empty-icon {
    width: 64px;
    height: 64px;
    color: rgba(255, 255, 255, 0.2);
    margin: 0 auto var(--spacing-md);
}

.history-empty p {
    font-size: 1.1rem;
    margin: 0;
}

/* History Table */
.history-table {
    overflow-x: auto;
    border-radius: var(--radius-md);
}

.history-table table {
    width: 100%;
    border-collapse: collapse;
}

.history-table thead {
    background: rgba(102, 126, 234, 0.1);
}

.history-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.history-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-fast);
}

.history-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.history-table td {
    padding: 1rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.history-table td:first-child {
    font-weight: 600;
    color: var(--text-primary);
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
}

.status-badge.success {
    background: rgba(79, 172, 254, 0.15);
    color: #4facfe;
    border: 1px solid rgba(79, 172, 254, 0.3);
}

.status-badge.error {
    background: rgba(245, 87, 108, 0.15);
    color: #f5576c;
    border: 1px solid rgba(245, 87, 108, 0.3);
}

.status-badge svg {
    width: 16px;
    height: 16px;
}

/* Responsive History Table */
@media (max-width: 768px) {
    .history-header {
        flex-direction: column;
        gap: var(--spacing-md);
        align-items: flex-start;
    }

    .clear-history-btn {
        width: 100%;
        justify-content: center;
    }

    .history-table {
        font-size: 0.85rem;
    }

    .history-table th,
    .history-table td {
        padding: 0.75rem 0.5rem;
    }

    .history-title {
        font-size: 1.5rem;
    }
}