Files
AutoMarket/frontend/css/styles.css
2026-05-11 22:08:50 +03:00

165 lines
3.0 KiB
CSS
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/* frontend/css/styles.css */
/* Premium darkmode + glassmorphism design */
:root {
--font-family: 'Inter', sans-serif;
--color-bg: hsl(220, 10%, 10%);
--color-surface: hsla(220, 10%, 15%, 0.8);
--color-primary: hsl(210, 80%, 55%);
--color-primary-hover: hsl(210, 80%, 45%);
--color-success: hsl(140, 60%, 45%);
--color-error: hsl(0, 70%, 50%);
--color-text: hsl(0, 0%, 90%);
--radius: 0.75rem;
--shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
*,
*::before,
*::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: var(--font-family);
background: var(--color-bg);
color: var(--color-text);
line-height: 1.6;
min-height: 100vh;
display: flex;
flex-direction: column;
}
.header {
text-align: center;
padding: 2rem 1rem;
background: linear-gradient(135deg, hsla(210, 70%, 55%, 0.6), hsla(210, 70%, 35%, 0.6));
backdrop-filter: blur(12px);
box-shadow: var(--shadow);
}
.header h1 {
font-size: 2.2rem;
margin-bottom: 0.5rem;
color: var(--color-primary);
}
.container {
flex: 1;
padding: 1.5rem;
max-width: 1200px;
margin: 0 auto;
}
.section {
margin-bottom: 2rem;
}
h2 {
margin-bottom: 1rem;
font-weight: 600;
color: var(--color-primary);
}
.controls {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
margin-bottom: 1rem;
}
.controls input,
.controls select {
padding: 0.5rem 0.75rem;
border: 1px solid hsla(0, 0%, 100%, 0.1);
border-radius: var(--radius);
background: var(--color-surface);
color: var(--color-text);
}
.btn-primary {
background: var(--color-primary);
border: none;
color: #fff;
padding: 0.5rem 1rem;
border-radius: var(--radius);
cursor: pointer;
transition: background 0.2s;
}
.btn-primary:hover {
background: var(--color-primary-hover);
}
.btn-secondary {
background: hsla(0, 0%, 100%, 0.1);
border: none;
color: var(--color-text);
padding: 0.5rem 1rem;
border-radius: var(--radius);
cursor: pointer;
transition: background 0.2s;
}
.btn-secondary:hover {
background: hsla(0, 0%, 100%, 0.2);
}
.table {
width: 100%;
border-collapse: collapse;
backdrop-filter: blur(6px);
background: var(--color-surface);
border-radius: var(--radius);
overflow: hidden;
box-shadow: var(--shadow);
}
.table th,
.table td {
padding: 0.75rem 1rem;
text-align: left;
border-bottom: 1px solid hsla(0, 0%, 100%, 0.05);
}
.table th {
background: hsla(0, 0%, 100%, 0.05);
color: var(--color-primary);
}
.hidden { display: none; }
label {
display: block;
margin-bottom: 0.75rem;
color: var(--color-text);
}
label input,
label textarea {
width: 100%;
padding: 0.5rem;
margin-top: 0.25rem;
border: 1px solid hsla(0,0%,100%,0.1);
border-radius: var(--radius);
background: var(--color-surface);
color: var(--color-text);
}
.preview {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
margin-top: 0.5rem;
}
.preview img {
max-width: 120px;
max-height: 120px;
object-fit: cover;
border-radius: var(--radius);
box-shadow: var(--shadow);
}