make this code more dashbordish and responsive and keep the setShowExecution verticle, present data in meaningfull and organise manner
CODE:
tsx
import React, { useState, useEffect } from 'react';
import { PieChart, Pie, Cell, Legend, Tooltip, ResponsiveContainer } from 'recharts';
import axios from 'axios';
import './pages_index.css'; // Ensure CSS is imported
// Define a broader color palette for potentially more slices
const COLORS = [
'#0052CC', // Atlassian Blue
'#36B37E', // Green
'#FFAB00', // Yellow
'#FF5630', // Red
'#6554C0', // Purple
'#00B8D9', // Teal
'#FF8B7A', // Light Red
'#00A3BF', // Darker Teal
'#5E6C84', // Medium Gray
'#FABE7A', // Light Orange
];
let executionlog= '';
const TestDashboard: React.FC = () => {
const [repoLink, setRepoLink] = useState<string>('');
const [liveUrl, setLiveUrl] = useState<string>('');
const [jiraFiles, setJiraFiles] = useState<FileList | null>(null);
const [status, setStatus] = useState<string>('Initializing...');
const [showModal, setShowModal] = useState<boolean>(false);
const [frontendTests, setFrontendTests] = useState<string | null>(null);
const [backendTests, setBackendTests] = useState<string | null>(null);
const [playwrightTests, setPlaywrightTests] = useState<string | null>(null);
const [testLogs, setTestLogs] = useState<string | null>(null);
// Initialize with default values to prevent errors before data loads
const [testSummary, setTestSummary] = useState<{ success: number; failed: number; total: number }>({ success: 0, failed: 0, total: 0 });
const [businessLogs, setBusinessLogs] = useState<string | null>(null);
const [loading, setLoading] = useState<boolean>(false);
// Start with sections potentially collapsed or expanded as desired
const [showExecution,setShowExecution]=useState<boolean>(true); // Start expanded
const [showGeneration,setShowGeneration]=useState<boolean>(true); // Start expanded
useEffect(() => {
console.log('Test Summary Updated:', testSummary);
}, [testSummary]);
// Ensure data is always an array, handle null/undefined summary
const pieChartData = (summary: { success: number; failed: number } | null | undefined) => {
if (!summary) {
return [
{ name: 'Success', value: 0 },
{ name: 'Failed', value: 0 },
];
}
return [
{ name: 'Success', value: summary.success },
{ name: 'Failed', value: summary.failed },
];
}
const handleGenerateTests = async () => {
if (!repoLink || !jiraFiles) {
setStatus('Repo Link or App Documentation files not provided.');
// Optional: show modal even on validation failure
// setShowModal(true);
return;
}
setShowModal(true);
setStatus('Analyzing Source code and documents');
setLoading(true); // Set loading state
// --- (Keep your timeout simulation logic if needed for demo) ---
setTimeout(() => {
setStatus('Identifying the frameworks (frontend and backend)');
setTimeout(() => {
setStatus('Generating test plan for E2E & unit tests, this might take a minute or two');
setTimeout(() => {
setStatus('Generating frontend & backend unit tests, this might take a minute or two');
setTimeout(() => {
setStatus('Generating E2E unit tests, this might take a minute or two');
}, 3000);
}, 3000);
}, 3000);
}, 3000);
// --- (End simulation logic) ---
const formData = new FormData();
formData.append('repoLink', repoLink);
if (liveUrl) formData.append('liveUrl', liveUrl);
if (jiraFiles) {
Array.from(jiraFiles).forEach((file) => formData.append('jiraLink', file));
}
try {
// Simulate API call delay if not using timeouts
// await new Promise(resolve => setTimeout(resolve, 8000));
const response = await axios.post('http://localhost:8000/api/generate-tests', formData);
// --- (Keep this part) ---
setFrontendTests(response.data.frontendTests);
setBackendTests(response.data.backendTests);
setPlaywrightTests(response.data.playwrightTestCases);
// Assuming generate doesn't return summary/logs, clear or don't set them
// setTestSummary(response.data.testSummary);
// setTestLogs(response.data.testLogs);
setBusinessLogs(response.data.analysticalReport);
setShowGeneration(true); // Show generation results
setShowExecution(false); // Optionally collapse execution results
setStatus('Test Generation Complete'); // Update status
// Keep modal open for a short time to show completion, then close
setTimeout(() => {
setShowModal(false);
}, 1500);
// --- (End keep part) ---
} catch (error) {
console.error(error);
setStatus('Failed to generate tests.');
// Keep modal open on failure
} finally {
setLoading(false); // Unset loading state
}
};
const handleExecuteTests = async () => {
const formData = new FormData();
// You might need repoLink or other data for execution too
// formData.append('repoLink', repoLink);
if (jiraFiles) {
Array.from(jiraFiles).forEach((file) => {
formData.append('jiraLink', file);
});
}
// Basic check: Maybe require repo link for execution?
// if (!repoLink) {
// setStatus('Repository link is required to execute tests.');
// setShowModal(true);
// return;
// }
try {
setShowModal(true);
setStatus(
'Executing tests on TestWhiz...'
);
setLoading(true);
// --- (Keep your timeout simulation) ---
// Simulate setting summary and logs
setTestSummary({ success: 23, failed: 4, total: 27 }); // Use updated numbers
setTimeout(() => {
executionlog = `
✅ Test Execution Report – Employee Management UI Automation
Test Framework: Playwright
Execution Date: April 9, 2025
Total Tests Executed: 27
Browsers Used: Chromium, Firefox, WebKit
Concurrent Workers: 3
📊 Summary
------------------------------
| Metric | Count |
|----------------------------|-------|
| Total Test Cases | 9 |
| Total Executions | 27 |
| Passed | 23 |
| Failed | 4 |
| Skipped/Blocked | 0 |
| Pass Rate | 85.18% |
🔁 Test Case Execution Overview
---------------------------------------------------------------
| TC ID | Test Description | Chromium | Firefox | WebKit | Status |
|--------|------------------------------------------------------------|----------|----------|----------|----------------|
| TC_001 | Add a new employee and verify the employee list | ❌ Failed| ✅ Passed | ✅ Passed | ❌ Failed (1/3) |
| TC_002 | Verify Employee List is displayed | ❌ Failed| ✅ Passed | ✅ Passed | ❌ Failed (1/3) |
| TC_003 | Attempt to add an employee with an empty first name | ❌ Failed| ✅ Passed | ✅ Passed | ❌ Failed (1/3) |
| TC_004 | Add an employee with maximum character length for names | ❌ Failed| ✅ Passed | ✅ Passed | ❌ Failed (1/3) |
| TC_005 | Add an employee with special characters in the names | ✅ Passed| ✅ Passed | ✅ Passed | ✅ Passed |
| TC_006 | Verify error message with invalid email | ✅ Passed| ✅ Passed | ✅ Passed | ✅ Passed |
| TC_007 | Verify employee details are correctly displayed | ✅ Passed| ✅ Passed | ✅ Passed | ✅ Passed |
| TC_008 | Update an existing employee's details | ✅ Passed| ✅ Passed | ✅ Passed | ✅ Passed |
| TC_009 | Delete an existing employee | ✅ Passed| ✅ Passed | ✅ Passed | ✅ Passed |
❌ Failed Test Case Details
---------------------------------------------------------------
🔻 TC_001: Add a new employee and verify the employee list
Browser: Chromium
Error:
- Timed out waiting for \`locator('text="sajid khan"')\` to be visible
- Root Cause: Element not rendered after submission
Trace: test-results/playwrightTestCases-Employ-0df14-nd-verify-the-employee-list-chromium/trace.zip
🔻 TC_002: Verify Employee List is displayed
Browser: Chromium
Error:
- Strict mode violation: locator matched multiple elements
- Root Cause: Ambiguous selector (link + heading)
Recommendation: Use role-based selector (e.g., getByRole('heading', { name: 'Employee List' }))
Trace: test-results/playwrightTestCases-Employ-ac8f0--Employee-List-is-displayed-chromium/trace.zip
🔻 TC_003: Attempt to add an employee with an empty first name
Browser: Chromium
Error:
- Validation message 'First name is required' did not appear
- Root Cause: Possibly incorrect selector or UI issue
Trace: test-results/playwrightTestCases-Employ-2a760-ee-with-an-empty-first-name-chromium/trace.zip
🔻 TC_004: Add an employee with maximum character length for names
Browser: Chromium
Error:
- Timed out waiting for long name string to be visible
- Root Cause: Application may not render overly long strings
Trace: test-results/playwrightTestCases-Employ-xxxxxx-maximum-character-length-chromium/trace.zip
✅ Key Observations & Recommendations
---------------------------------------------------------------
1. Chromium-specific Failures:
- All failures occurred only in Chromium.
- Suggest increasing timeouts or reviewing rendering delays.
2. Selector Improvements:
- Use more specific or role-based selectors to avoid ambiguity.
3. Validation Checks:
- Ensure proper error messages are triggered and verifiable in DOM.
4. Performance:
- Firefox executions consistently took 40s.
- Consider optimization or disabling trace for Firefox runs.
📁 Attachments
---------------------------------------------------------------
- Trace logs available in the \`test-results\` directory.
- Use: \`npx playwright show-trace <trace-file>\`
✅ Conclusion
---------------------------------------------------------------
Test suite shows strong cross-browser stability (except Chromium).
Locator and rendering issues need to be addressed for consistency.
`;
setTestLogs(executionlog);
setStatus('Test Execution Complete'); // Update status
setShowExecution(true); // Ensure execution results are visible
// Keep modal open for a short time to show completion, then close
setTimeout(() => {
setShowModal(false);
}, 1500);
}, 6000);
// --- (End simulation) ---
// --- (Remove 'return' if you want to try actual API call) ---
// return;
// --- (End remove 'return') ---
/*
// --- UNCOMMENT FOR ACTUAL API CALL ---
const response = await axios.post('http://localhost:8000/api/execute-tests', formData, {
headers: {
'Content-Type': 'multipart/form-data',
},
});
console.log('Execute Tests Response:', response.data);
// --- Update state based on ACTUAL response ---
setTestLogs(response.data.testLogs);
setTestSummary(response.data.testSummary); // Make sure API returns summary
setStatus('Test Execution Complete');
setShowExecution(true);
setTimeout(() => {
setShowModal(false);
}, 1500);
// --- END UNCOMMENT ---
*/
} catch (error) {
console.error('Error executing tests:', error);
setStatus('Failed to execute tests.');
// Keep modal open on failure
} finally {
setLoading(false);
}
};
const copyToClipboard = (content: string | null) => {
if (content) {
navigator.clipboard.writeText(content);
// Optional: Add feedback to user (e.g., briefly change button text)
}
};
const downloadFile = (content: string | null, fileName: string, type: string) => {
if (content) {
const blob = new Blob([content], { type });
const url = URL.createObjectURL(blob);
const link = document.createElement('a');
link.href = url;
link.download = fileName;
document.body.appendChild(link); // Append to body for Firefox compatibility
link.click();
document.body.removeChild(link); // Clean up
URL.revokeObjectURL(url);
}
};
// Custom Legend formatter
const renderLegendText = (value: string, entry: any) => {
// 'value' is the name (e.g., "Success"), 'entry' holds more info like color
const { color } = entry;
// You might need to access summary data here if you want counts in legend
// For simplicity, just showing name. Add count if needed.
return <span style={{ color: '#5E6C84' }} className="legend-text">{value}</span>;
};
return (
<div className="dashboard-container">
{showModal && (
<div className="modal-overlay">
<div className="modal">
<h2>{loading ? 'Processing...' : 'Status'}</h2>
<p>{status}</p>
{/* Only show close button if not loading, or on error */}
{!loading && (
<button onClick={() => setShowModal(false)} className="btn btn-close">
Close
</button>
)}
</div>
</div>
)}
<header className="header">
{/* Changed h1 to be inside header */}
<h1>TestWhiz Dashboard</h1>
</header>
{/* Add a Dashboard Title (Optional) */}
{/* <h1 className="dashboard-title">Project Test Overview</h1> */}
<div className="main-content">
{/* Add specific class for project info card for potential layout control */}
<div className="card project-info-card">
<h2>Project Information</h2>
<div className="project-info" >
<div style={{"paddingBottom":"15px"}}> {/* Reduced padding */}
<label htmlFor="repoLinkInput">Repository Link:</label>
<input
id="repoLinkInput"
type="text"
value={repoLink}
onChange={(e) => setRepoLink(e.target.value)}
placeholder="e.g., https://github.com/user/repo.git"
className="input-field"
/>
</div>
<div style={{"paddingBottom":"15px"}}>
<label htmlFor="liveUrlInput">Live URL (Optional):</label>
<input
id="liveUrlInput"
type="text"
value={liveUrl}
onChange={(e) => setLiveUrl(e.target.value)}
placeholder="e.g., https://my-app.com"
className="input-field"
/>
</div>
<div style={{"paddingBottom":"15px"}}>
<label htmlFor="jiraFilesInput">App Documentation (Upload Files):</label>
{/* Basic styling for file input area */}
<input
id="jiraFilesInput"
style={{"paddingLeft":"0px", "marginTop": "5px", "display":"block"}}
type="file"
multiple
onChange={(e) => setJiraFiles(e.target.files)}
/>
</div>
</div>
<div className="btn-container">
<button onClick={handleGenerateTests} className="btn btn-primary" disabled={loading}>
{loading ? 'Generating...' : 'Generate Test Cases'}
</button>
<button onClick={handleExecuteTests} className="btn btn-secondary" disabled={loading}>
{loading ? 'Executing...' : 'Execute Test Cases'}
</button>
</div>
</div>
{/* --- Execution Results Section --- */}
<div className="execution-results-container">
<h2
onClick={()=>setShowExecution(showExecution=>!showExecution)}
>
{showExecution ? "▼" : "▶"} Test Case Execution Results
</h2>
{ showExecution &&
<div className="execution-cards-container">
{/* Card for Chart and Summary */}
{testSummary && testSummary.total > 0 ? (
<div className="card">
<h3>Execution Summary</h3>
<div className="chart-summary-container" >
{/* Chart */}
<div className="chart-pie-container">
<ResponsiveContainer width="100%" height="100%">
<PieChart>
<Pie
data={pieChartData(testSummary)}
cx="50%"
cy="50%"
innerRadius={60} // Make it a donut chart
outerRadius={90} // Adjust radius
fill="#8884d8"
paddingAngle={5}
dataKey="value"
>
{pieChartData(testSummary).map((entry, index) => (
<Cell key={`cell-exec-${index}`} fill={COLORS[index % COLORS.length]} />
))}
</Pie>
<Tooltip />
{/* Use custom legend */}
<Legend formatter={renderLegendText} />
</PieChart>
</ResponsiveContainer>
</div>
{/* Summary Text */}
<div className="test-summary">
{/* <h4>Details</h4> */}
<ul>
<li><strong>Success:</strong> {testSummary.success}</li>
<li><strong>Failed:</strong> {testSummary.failed}</li>
<li><strong>Total:</strong> {testSummary.total}</li>
{/* Optional: Calculate and display pass rate */}
{testSummary.total > 0 && (
<li><strong>Pass Rate:</strong> {((testSummary.success / testSummary.total) * 100).toFixed(2)}%</li>
)}
</ul>
</div>
</div>
</div>
) : (
<div className="card"><p>No execution summary available. Run tests to see results.</p></div>
)}
{/* Card for Execution Logs */}
<div className="card">
<h3>Execution Logs</h3>
{loading && !testLogs ? (
<p>Loading logs...</p>
) : testLogs ? (
<div className="log-output-container">
<pre>{testLogs}</pre>
{/* Buttons for logs */}
<button onClick={() => copyToClipboard(testLogs)} className="btn">
Copy Logs
</button>
<button onClick={() => downloadFile(testLogs, 'ExecutionLogs.txt', 'text/plain')} className="btn">
Download Logs
</button>
</div>
) : (
<p>No execution logs available. Execute test cases to view results.</p>
)}
</div>
</div>
}
</div>
{/* --- Generation Results Section --- */}
<div className="generation-results-container">
<h2
onClick={()=>setShowGeneration(showGeneration=>!showGeneration)}
>
{showGeneration ? "▼" : "▶"} Test Case Generation Results
</h2>
{ showGeneration &&
<div className="generation-cards-container">
{/* Card for Test Plan */}
<div className="card">
<h3>Generated Test Plan</h3>
{loading && !businessLogs? (
<p>Loading plan...</p>
) : businessLogs ? (
<div className="log-output-container">
<pre>{businessLogs}</pre>
<button onClick={() => copyToClipboard(businessLogs)} className="btn">
Copy Plan
</button>
<button onClick={() => downloadFile(businessLogs, 'GeneratedTestPlan.txt', 'text/plain')} className="btn">
Download Plan
</button>
</div>
) : (
<p>No test plan generated yet. Click "Generate Test Cases".</p>
)}
</div>
{/* Card for Frontend Tests */}
<div className="card">
<h3>Frontend Test Cases</h3>
{loading && !frontendTests ? (
<p>Loading tests...</p>
) : frontendTests ? (
<div className="log-output-container">
<pre>{frontendTests}</pre>
<button onClick={() => copyToClipboard(frontendTests)} className="btn">
Copy Tests
</button>
<button onClick={() => downloadFile(frontendTests, 'FrontendTests.txt', 'text/plain')} className="btn">
Download Tests
</button>
</div>
) : (
<p>No frontend tests generated yet.</p>
)}
</div>
{/* Card for Backend Tests */}
<div className="card">
<h3>Backend Test Cases</h3>
{loading && !backendTests ? (
<p>Loading tests...</p>
) : backendTests ? (
<div className="log-output-container">
<pre>{backendTests}</pre>
<button onClick={() => copyToClipboard(backendTests)} className="btn">
Copy Tests
</button>
<button onClick={() => downloadFile(backendTests, 'BackendTests.txt', 'text/plain')} className="btn">
Download Tests
</button>
</div>
) : (
<p>No backend tests generated yet.</p>
)}
</div>
{/* Card for Playwright Tests */}
<div className="card">
<h3>Playwright E2E Tests</h3>
{loading && !playwrightTests ? (
<p>Loading tests...</p>
) : playwrightTests ? (
<div className="log-output-container">
<pre>{playwrightTests}</pre>
<button onClick={() => copyToClipboard(playwrightTests)} className="btn">
Copy Tests
</button>
<button onClick={() => downloadFile(playwrightTests, 'PlaywrightTests.txt', 'text/plain')} className="btn">
Download Tests
</button>
</div>
) : (
<p>No Playwright E2E tests generated yet.</p>
)}
</div>
</div>
}
</div>
</div>
{/* Optional Footer */}
{/* <footer className="footer">
TestWhiz © 2024
</footer> */}
</div>
);
};
export default TestDashboard;
css
/* Typography Styles */
:root {
/* Using Charlie Sans, common in Atlassian products, with fallbacks */
--font-primary: 'Charlie Sans', 'Helvetica Neue', Arial, sans-serif;
--font-weight-regular: 400;
--font-weight-medium: 500; /* Medium for some headings */
--font-weight-bold: 700; /* Bold for strong emphasis */
/* Adjusted font sizes for a dashboard feel - often slightly smaller/denser */
--font-size-title: 20px; /* Main dashboard title */
--font-size-heading: 16px; /* Panel/Card headings */
--font-size-body: 14px; /* Base text size */
--font-size-small: 12px; /* Smaller text, legends, etc. */
/* Colors inspired by Jira-like interface */
--color-text-primary: #172B4D; /* Atlassian dark blue-gray for text */
--color-text-secondary: #5E6C84; /* Lighter gray for secondary text */
--color-background-page: #F4F5F7; /* Light gray page background */
--color-background-panel: #FFFFFF; /* White panel background */
--color-border: #DFE1E6; /* Light gray border */
--color-accent-blue: #0052CC; /* Atlassian blue for links/accents */
--color-accent-green: #36B37E; /* Green for success/update */
--color-accent-red: #DE350B; /* Red for failure/errors */
}
/* General font styling applied across the app */
body {
font-family: var(--font-primary);
font-size: var(--font-size-body);
font-weight: var(--font-weight-regular);
line-height: 1.4; /* Slightly tighter line-height for dashboard density */
color: var(--color-text-primary);
background-color: var(--color-background-page);
margin: 0;
padding: 0;
}
/* Typography Hierarchy */
/* Top-level dashboard title (if any, outside header) */
.dashboard-title {
font-size: var(--font-size-title);
font-weight: var(--font-weight-medium); /* Medium weight often used for titles */
color: var(--color-text-primary);
margin-bottom: 1.5rem; /* Space below title */
padding-left: 1rem; /* Align with content padding */
}
/* Panel/Card Headings */
h2, h3, .card h2, .card h3, .panel h2, .panel h3 {
font-size: var(--font-size-heading);
font-weight: var(--font-weight-medium); /* Medium weight, not too bold */
color: var(--color-text-primary);
margin-top: 0; /* Remove default top margin */
margin-bottom: 1rem;
padding-bottom: 0.5rem;
/* Add a subtle bottom border like Jira panel headers */
border-bottom: 1px solid var(--color-border);
}
p, .main-content, .card {
font-size: var(--font-size-body);
line-height: 1.5; /* Slightly more spacing for paragraph text */
}
small, .legend-text { /* Added class for legend text */
font-size: var(--font-size-small);
color: var(--color-text-secondary);
}
/* Links */
a {
color: var(--color-accent-blue);
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
/* Layout Styles */
.dashboard-container {
font-family: var(--font-primary);
display: flex;
flex-direction: column;
min-height: 100vh;
width: 100%;
background-color: var(--color-background-page);
}
/* Header - Lighter, like Jira's app header */
.header {
width: 100%;
background-color: #FFFFFF; /* White header */
color: var(--color-text-primary);
padding: 0.75rem 1.5rem; /* Adjust padding as needed */
border-bottom: 1px solid var(--color-border);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); /* Subtle shadow */
text-align: left; /* Align title left */
font-size: 18px; /* Slightly larger for header title */
font-weight: var(--font-weight-medium);
}
.header h1 {
font-size: 18px; /* Match header font size */
font-weight: var(--font-weight-medium);
margin: 0; /* Remove default h1 margin */
}
/* Main Content Area */
.main-content {
flex: 1;
width: 100%;
max-width: 1600px; /* Max width for very large screens, adjust as needed */
margin: 0 auto; /* Center content area */
padding: 1.5rem;
box-sizing: border-box;
/* Using Grid for panel layout */
display: grid;
/*
Try to create columns.
'auto-fit' creates as many columns as fit, 'minmax' sets min/max width.
Adjust '350px' based on desired minimum panel width.
We want something like 2 columns for charts, maybe wider for lists
*/
grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
gap: 1.5rem; /* Gap between grid items */
}
/* Card/Panel Styles - Flatter, cleaner */
.card {
background-color: var(--color-background-panel);
border-radius: 3px; /* Jira uses subtle border-radius */
border: 1px solid var(--color-border);
padding: 1.5rem;
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05); /* Very subtle shadow */
/* Remove gradient, border-left, and heavy shadow from previous style */
transition: box-shadow 0.2s ease;
box-sizing: border-box;
/* Make cards span full width if needed, or control by grid */
grid-column: span 1; /* Default: span 1 column */
}
.card:hover {
/* Optional: slightly enhance shadow on hover, keep it subtle */
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
transform: none; /* Remove scaling effect */
}
/* Make specific containers span more columns if needed */
/* Example: If 'generation-results-container' should be wider */
.generation-results-container,
.execution-results-container {
/* If these wrap multiple cards, they might need to span more columns */
/* Let's make them span full width for list-like content */
grid-column: 1 / -1; /* Span all columns */
display: contents; /* Allow cards inside to be direct grid children if needed */
}
/* Input form section */
.project-info-card {
/* Example: If you want the input card to span all columns */
grid-column: 1 / -1;
}
/* UI Components (Buttons, Input Fields) */
.btn {
padding: 0.5rem 1rem; /* Slightly smaller padding */
border: 1px solid transparent; /* Start with transparent border */
border-radius: 3px; /* Match card radius */
cursor: pointer;
font-size: var(--font-size-body);
font-weight: var(--font-weight-medium); /* Medium weight for buttons */
background-color: #F4F5F7; /* Light gray default background */
color: var(--color-text-primary);
box-shadow: none; /* No shadow by default */
transition: background-color 0.2s ease, border-color 0.2s ease;
}
.btn:hover {
background-color: #EBECF0; /* Slightly darker gray on hover */
filter: none; /* Remove previous filter */
}
/* Primary button style (e.g., Generate) */
.btn-primary {
background-color: var(--color-accent-blue);
color: #fff;
border-color: var(--c