Files
TgMessageHook/app/static/style.css
Andre Beging c7f694d820 Initial commit
2025-10-07 12:51:31 +02:00

304 lines
5.1 KiB
CSS

:root {
color-scheme: light dark;
--bg: #10131a;
--surface: rgba(255, 255, 255, 0.06);
--surface-light: rgba(10, 14, 25, 0.5);
--text: #f4f6fb;
--muted: #adb5d6;
--accent: #4f8cff;
--accent-dark: #3f6ed6;
--danger: #ff5c7a;
--font-base: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
--border-radius: 18px;
--shadow: 0 18px 40px rgba(15, 20, 30, 0.35);
}
* {
box-sizing: border-box;
}
body {
margin: 0;
min-height: 100vh;
font-family: var(--font-base);
background: radial-gradient(circle at top, #192040, #0a0d18);
color: var(--text);
display: grid;
grid-template-rows: auto 1fr auto;
}
header,
footer {
padding: 2rem clamp(1rem, 6vw, 4rem);
}
header h1 {
margin: 0;
font-size: clamp(2rem, 5vw, 3.5rem);
letter-spacing: -0.04em;
}
.subtitle {
margin-top: 0.5rem;
color: var(--muted);
max-width: 40rem;
}
main {
display: grid;
gap: 2rem;
padding: 0 clamp(1rem, 6vw, 4rem) 4rem;
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.card {
background: linear-gradient(145deg, rgba(23, 30, 50, 0.92), rgba(10, 12, 22, 0.9));
border-radius: var(--border-radius);
padding: clamp(1.5rem, 3vw, 2rem);
box-shadow: var(--shadow);
backdrop-filter: blur(18px);
border: 1px solid rgba(255, 255, 255, 0.06);
}
.section-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 1.5rem;
}
.header-actions {
display: inline-flex;
align-items: center;
gap: 0.75rem;
flex-wrap: wrap;
justify-content: flex-end;
}
.status-pill {
display: inline-flex;
align-items: center;
padding: 0.35rem 0.9rem;
border-radius: 999px;
background: rgba(79, 140, 255, 0.15);
color: var(--accent);
font-weight: 600;
margin-bottom: 0.75rem;
}
.user-info {
margin-bottom: 1.5rem;
color: var(--muted);
}
.form-grid {
display: grid;
gap: 0.75rem;
margin-bottom: 1.5rem;
}
label {
font-size: 0.9rem;
color: var(--muted);
}
input,
textarea,
button {
font-family: inherit;
font-size: 1rem;
border-radius: 12px;
}
input,
textarea {
border: 1px solid rgba(255, 255, 255, 0.08);
background: rgba(9, 13, 24, 0.65);
color: var(--text);
padding: 0.75rem 1rem;
transition: border 0.2s ease, background 0.2s ease;
}
input:focus,
textarea:focus {
outline: none;
border-color: rgba(79, 140, 255, 0.5);
background: rgba(15, 20, 35, 0.85);
}
textarea {
resize: vertical;
min-height: 150px;
}
button {
padding: 0.8rem 1.2rem;
border: none;
cursor: pointer;
font-weight: 600;
transition: transform 0.18s ease, box-shadow 0.18s ease;
}
button:active {
transform: translateY(2px);
}
.icon-button {
padding: 0.6rem;
min-width: 0;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 0.25rem;
}
.icon {
width: 1rem;
height: 1rem;
display: block;
fill: currentColor;
}
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
.primary {
background: linear-gradient(135deg, var(--accent), var(--accent-dark));
color: white;
box-shadow: 0 14px 30px rgba(79, 140, 255, 0.35);
}
.secondary {
background: rgba(255, 255, 255, 0.08);
color: var(--text);
border: 1px solid rgba(255, 255, 255, 0.06);
}
.danger {
background: rgba(255, 92, 122, 0.2);
color: #ffbac7;
border: 1px solid rgba(255, 92, 122, 0.4);
}
.badge {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 2.5rem;
padding: 0.35rem 0.65rem;
border-radius: 999px;
background: rgba(255, 255, 255, 0.08);
}
.feedback {
min-height: 1.25rem;
color: var(--muted);
}
.hook-list {
display: grid;
gap: 1rem;
}
.hook-card {
padding: 1rem 1.25rem;
background: rgba(10, 13, 24, 0.75);
border-radius: 16px;
border: 1px solid rgba(255, 255, 255, 0.04);
display: grid;
gap: 0.75rem;
}
.hook-id-row {
display: flex;
align-items: center;
gap: 0.5rem;
flex-wrap: wrap;
}
.hook-id-label {
font-size: 0.85rem;
color: var(--muted);
}
.hook-id {
padding: 0.3rem 0.6rem;
background: rgba(255, 255, 255, 0.05);
border-radius: 8px;
}
.hook-meta {
display: flex;
justify-content: space-between;
align-items: baseline;
gap: 1rem;
}
.hook-meta h3 {
margin: 0;
font-size: 1rem;
color: var(--text);
}
.hook-date {
font-size: 0.85rem;
color: var(--muted);
}
.hook-message {
white-space: pre-wrap;
font-family: "JetBrains Mono", "Fira Code", monospace;
background: rgba(255, 255, 255, 0.04);
padding: 0.75rem;
border-radius: 12px;
margin: 0;
}
.hook-url {
background: rgba(255, 255, 255, 0.04);
border-radius: 12px;
padding: 0.6rem 0.8rem;
display: inline-block;
user-select: all;
}
.hook-feedback {
margin: 0.35rem 0 0;
min-height: 1rem;
font-size: 0.85rem;
color: var(--muted);
}
.hook-actions {
display: flex;
gap: 0.75rem;
}
.hidden {
display: none !important;
}
.mono {
font-family: "JetBrains Mono", "Fira Code", monospace;
}
@media (max-width: 640px) {
header,
footer {
text-align: center;
}
.hook-actions {
flex-direction: column;
}
}