Files
AutoMarket/frontend/css/styles.css

340 lines
7.2 KiB
CSS

/* frontend/css/styles.css */
/* Ultimate Premium Dark Mode + Glassmorphism */
:root {
--font-family: 'Inter', system-ui, -apple-system, sans-serif;
/* Palette */
--color-bg: #0b0e14;
--color-surface: rgba(23, 28, 38, 0.7);
--color-surface-hover: rgba(35, 42, 56, 0.85);
--color-primary: #3b82f6; /* Modern Blue */
--color-primary-glow: rgba(59, 130, 246, 0.5);
--color-success: #10b981; /* Emerald */
--color-success-glow: rgba(16, 185, 129, 0.4);
--color-warning: #f59e0b; /* Amber */
--color-error: #ef4444; /* Rose */
--color-text: #f3f4f6;
--color-text-dim: #9ca3af;
/* Utils */
--radius-lg: 1.25rem;
--radius-md: 0.75rem;
--shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
--shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
--glass-border: 1px solid rgba(255, 255, 255, 0.08);
}
*, *::before, *::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: var(--font-family);
background-color: var(--color-bg);
background-image:
radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.05) 0%, transparent 40%),
radial-gradient(circle at 90% 80%, rgba(16, 185, 129, 0.05) 0%, transparent 40%);
color: var(--color-text);
line-height: 1.5;
min-height: 100vh;
-webkit-font-smoothing: antialiased;
}
/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb {
background: rgba(255,255,255,0.1);
border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }
/* Header */
.header {
padding: 2.5rem 1rem;
background: rgba(11, 14, 20, 0.8);
backdrop-filter: blur(20px);
border-bottom: var(--glass-border);
position: sticky;
top: 0;
z-index: 100;
}
.header h1 {
font-size: 2.5rem;
font-weight: 800;
background: linear-gradient(to right, #60a5fa, #34d399);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
letter-spacing: -0.025em;
}
.header p {
color: var(--color-text-dim);
font-size: 0.95rem;
}
/* Auth Section */
.auth-box {
max-width: 420px;
margin: 6rem auto;
padding: 2.5rem;
background: var(--color-surface);
backdrop-filter: blur(16px);
border-radius: var(--radius-lg);
border: var(--glass-border);
box-shadow: var(--shadow-xl);
}
.auth-box h2 {
font-size: 1.75rem;
margin-bottom: 2rem;
text-align: center;
}
.auth-box input {
width: 100%;
padding: 0.875rem 1.25rem;
margin-top: 0.75rem;
background: rgba(0, 0, 0, 0.3);
border: var(--glass-border);
border-radius: var(--radius-md);
color: #fff;
transition: all 0.2s;
}
.auth-box input:focus {
outline: none;
border-color: var(--color-primary);
box-shadow: 0 0 0 3px var(--color-primary-glow);
}
/* Tabs */
.tabs-container {
display: flex;
justify-content: center;
gap: 0.5rem;
padding: 0.75rem;
background: rgba(255, 255, 255, 0.03);
margin-top: 1rem;
border-radius: var(--radius-md);
max-width: 800px;
margin-left: auto;
margin-right: auto;
}
.tab-btn {
background: transparent;
color: var(--color-text-dim);
border: none;
padding: 0.625rem 1.25rem;
border-radius: var(--radius-md);
cursor: pointer;
font-weight: 500;
transition: all 0.2s;
}
.tab-btn:hover {
background: rgba(255, 255, 255, 0.05);
color: #fff;
}
.tab-btn.active {
background: var(--color-primary);
color: #fff;
box-shadow: 0 4px 12px var(--color-primary-glow);
}
/* Main Content */
.container {
max-width: 1200px;
margin: 0 auto;
padding: 2.5rem 1.5rem;
}
.section {
animation: fadeIn 0.4s ease-out;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}
/* Cards & Grid */
.platforms-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
gap: 1.5rem;
}
.platform-card {
background: var(--color-surface);
padding: 1.75rem;
border-radius: var(--radius-lg);
border: var(--glass-border);
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.platform-card:hover {
transform: translateY(-4px);
background: var(--color-surface-hover);
border-color: rgba(255,255,255,0.15);
box-shadow: var(--shadow-xl);
}
.platform-card h3 {
font-size: 1.25rem;
margin-bottom: 0.75rem;
}
/* Buttons */
.btn-primary {
background: var(--color-primary);
color: #fff;
font-weight: 600;
padding: 0.75rem 1.5rem;
border-radius: var(--radius-md);
border: none;
cursor: pointer;
transition: all 0.2s;
display: inline-flex;
align-items: center;
justify-content: center;
}
.btn-primary:hover {
filter: brightness(1.1);
transform: translateY(-1px);
box-shadow: 0 4px 15px var(--color-primary-glow);
}
.btn-secondary {
background: rgba(255, 255, 255, 0.05);
color: var(--color-text);
font-weight: 500;
padding: 0.75rem 1.5rem;
border-radius: var(--radius-md);
border: var(--glass-border);
cursor: pointer;
transition: all 0.2s;
}
.btn-secondary:hover {
background: rgba(255, 255, 255, 0.1);
}
/* Table */
.table {
width: 100%;
border-collapse: separate;
border-spacing: 0;
background: var(--color-surface);
border-radius: var(--radius-lg);
overflow: hidden;
border: var(--glass-border);
}
.table th {
background: rgba(255, 255, 255, 0.03);
padding: 1rem 1.5rem;
text-transform: uppercase;
font-size: 0.75rem;
letter-spacing: 0.05em;
color: var(--color-text-dim);
text-align: left;
}
.table td {
padding: 1.25rem 1.5rem;
border-top: var(--glass-border);
font-size: 0.95rem;
}
.table tr:hover td {
background: rgba(255, 255, 255, 0.02);
}
/* Status Badges */
.status-pill {
padding: 0.25rem 0.75rem;
border-radius: 9999px;
font-size: 0.8rem;
font-weight: 600;
text-transform: uppercase;
}
.status-new { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.status-closed { background: rgba(16, 185, 129, 0.15); color: #34d399; }
/* Icons */
.icon-sm {
width: 18px;
height: 18px;
vertical-align: middle;
margin-right: 0.25rem;
stroke-width: 2.5px;
}
.icon-sm.spin {
animation: spin 1s linear infinite;
}
@keyframes spin {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
.hidden { display: none !important; }
/* Form Controls */
input, select, textarea {
font-family: inherit;
transition: border-color 0.2s;
}
/* Chart Container */
canvas {
margin-top: 1rem;
filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.1));
}
/* Toast Notifications */
.toast-container {
position: fixed;
bottom: 2rem;
right: 2rem;
z-index: 1000;
display: flex;
flex-direction: column;
gap: 0.75rem;
}
.toast {
background: var(--color-surface);
backdrop-filter: blur(20px);
border: var(--glass-border);
padding: 1rem 1.5rem;
border-radius: var(--radius-md);
box-shadow: var(--shadow-xl);
color: #fff;
min-width: 300px;
display: flex;
align-items: center;
gap: 0.75rem;
animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
border-left: 4px solid var(--color-primary);
}
@keyframes slideIn {
from { opacity: 0; transform: translateX(100%); }
to { opacity: 1; transform: translateX(0); }
}
.toast.success { border-left-color: var(--color-success); }
.toast.error { border-left-color: var(--color-error); }
.toast.info { border-left-color: var(--color-primary); }
.toast-message { font-size: 0.9rem; font-weight: 500; }