rmdzav's picture
Update static/style.css
cf19bf5 verified
Raw History Blame Contribute Delete
13.8 kB
:root {
--bg-primary: #0a0c12;
--bg-secondary: #0f1118;
--bg-tertiary: #151822;
--border-light: rgba(255, 255, 255, 0.06);
--text-primary: #ededee;
--text-secondary: #8a8f9e;
--text-muted: #4a4f5e;
--accent-cyan: #00f0ff;
--accent-pink: #ff2d5a;
--accent-green: #00ff88;
--gradient-cyan: linear-gradient(135deg, #00f0ff, #0066ff);
--radius-sm: 8px;
--radius-md: 12px;
--radius-lg: 20px;
--font-sans: 'Inter', system-ui, sans-serif;
--font-mono: 'JetBrains Mono', monospace;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
background: var(--bg-primary);
color: var(--text-primary);
font-family: var(--font-sans);
min-height: 100vh;
}
.app {
max-width: 1400px;
margin: 0 auto;
padding: 24px;
min-height: 100vh;
display: flex;
flex-direction: column;
gap: 24px;
}
/* Header */
.app__header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px 28px;
background: rgba(15, 17, 24, 0.8);
backdrop-filter: blur(10px);
border: 1px solid var(--border-light);
border-radius: 20px;
}
.app__logo {
display: flex;
align-items: center;
gap: 16px;
}
.app__logo-icon {
width: 48px;
height: 48px;
background: var(--gradient-cyan);
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
font-size: 28px;
font-weight: 800;
color: #000;
}
.app__logo h1 {
font-size: 20px;
font-weight: 700;
}
.app__logo h1 span { color: var(--accent-cyan); }
.app__logo p { font-size: 12px; color: var(--text-secondary); }
.btn-icon {
display: flex;
align-items: center;
gap: 10px;
padding: 10px 20px;
background: rgba(255,255,255,0.03);
border: 1px solid var(--border-light);
border-radius: 12px;
color: var(--text-secondary);
cursor: pointer;
transition: all 0.2s;
}
.btn-icon:hover {
background: rgba(0,240,255,0.1);
border-color: var(--accent-cyan);
color: var(--accent-cyan);
}
/* Input */
.app__inputs {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 20px;
}
.input-card {
background: var(--bg-secondary);
border: 1px solid var(--border-light);
border-radius: 12px;
padding: 20px;
}
.input-card__field {
position: relative;
margin-bottom: 12px;
}
.input-card__field input {
width: 100%;
background: transparent;
border: none;
padding: 20px 0 8px 0;
color: var(--text-primary);
font-size: 18px;
font-family: var(--font-mono);
font-weight: 600;
outline: none;
}
.input-card__field label {
position: absolute;
left: 0;
top: 50%;
transform: translateY(-50%);
color: var(--text-secondary);
font-size: 15px;
pointer-events: none;
transition: all 0.2s;
}
.input-card__field input:focus + label,
.input-card__field input:not(:placeholder-shown) + label {
top: 0;
font-size: 11px;
color: var(--accent-cyan);
}
.input-card__hint {
font-size: 11px;
color: var(--text-muted);
}
/* Generate Button */
.btn-generate {
display: flex;
align-items: center;
justify-content: center;
gap: 12px;
padding: 16px;
background: var(--gradient-cyan);
border: none;
border-radius: 12px;
color: #000;
font-size: 16px;
font-weight: 700;
cursor: pointer;
transition: all 0.2s;
}
.btn-generate:hover {
transform: translateY(-2px);
box-shadow: 0 10px 30px rgba(0,240,255,0.2);
}
/* Result */
.app__result {
background: var(--bg-secondary);
border: 1px solid var(--border-light);
border-radius: 20px;
overflow: hidden;
flex: 1;
min-height: 400px;
position: relative;
}
.table-wrapper {
width: 100%;
height: 100%;
overflow: auto;
}
.loading-overlay {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(10,12,18,0.95);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 20px;
z-index: 10;
}
.spinner {
width: 48px;
height: 48px;
border: 3px solid var(--border-light);
border-top-color: var(--accent-cyan);
border-radius: 50%;
animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 16px;
padding: 60px 20px;
text-align: center;
color: var(--text-muted);
}
.data-table {
width: 100%;
border-collapse: collapse;
font-size: 13px;
}
.data-table th,
.data-table td {
padding: 14px 12px;
text-align: center;
border-bottom: 1px solid var(--border-light);
}
.data-table th {
background: var(--bg-tertiary);
color: var(--accent-cyan);
font-family: var(--font-mono);
font-size: 12px;
position: sticky;
top: 0;
}
.hidden { display: none; }
.app__footer {
display: flex;
justify-content: space-between;
padding: 16px 0;
font-size: 11px;
color: var(--text-muted);
border-top: 1px solid var(--border-light);
}
/* Premium Modal */
.premium-modal {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 10000;
display: none;
align-items: center;
justify-content: center;
}
.premium-modal.active { display: flex; }
.premium-modal__overlay {
position: absolute;
inset: 0;
background: rgba(10,12,18,0.95);
backdrop-filter: blur(8px);
}
.premium-modal__container {
position: relative;
background: var(--bg-secondary);
border: 1px solid var(--border-light);
border-radius: 24px;
padding: 32px;
max-width: 360px;
width: 90%;
text-align: center;
}
.premium-modal__close {
position: absolute;
top: 16px;
right: 16px;
background: none;
border: none;
color: var(--text-muted);
font-size: 20px;
cursor: pointer;
}
.premium-modal__icon { font-size: 32px; margin-bottom: 12px; }
.premium-modal__title { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.premium-modal__desc { color: var(--text-secondary); font-size: 13px; margin-bottom: 24px; }
.premium-modal__input-group {
display: flex;
gap: 8px;
margin-bottom: 20px;
}
.premium-modal__input-group input {
flex: 1;
background: var(--bg-tertiary);
border: 1px solid var(--border-light);
border-radius: 10px;
padding: 12px;
color: var(--text-primary);
font-size: 13px;
outline: none;
}
.btn-verify {
background: var(--accent-cyan);
border: none;
border-radius: 10px;
padding: 0 16px;
color: #000;
font-weight: 600;
cursor: pointer;
}
.premium-modal__divider {
margin: 20px 0;
position: relative;
text-align: center;
}
.premium-modal__divider::before {
content: '';
position: absolute;
top: 50%;
left: 0;
right: 0;
height: 1px;
background: var(--border-light);
}
.premium-modal__divider span {
position: relative;
background: var(--bg-secondary);
padding: 0 12px;
color: var(--text-muted);
font-size: 11px;
}
.btn-buy {
width: 100%;
background: transparent;
border: 1px solid var(--accent-pink);
border-radius: 10px;
padding: 12px;
color: var(--accent-pink);
font-weight: 600;
cursor: pointer;
}
.btn-buy:hover {
background: var(--accent-pink);
color: #fff;
}
/* Buy Modal */
.buy-modal {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 10001;
display: none;
align-items: center;
justify-content: center;
}
.buy-modal.active { display: flex; }
.buy-modal__overlay {
position: absolute;
inset: 0;
background: rgba(5,8,14,0.92);
backdrop-filter: blur(20px);
}
.buy-modal__container {
position: relative;
width: 90%;
max-width: 400px;
background: linear-gradient(135deg, rgba(18,22,35,0.95), rgba(12,15,25,0.98));
border: 1px solid rgba(0,240,255,0.2);
border-radius: 28px;
padding: 32px 28px;
}
.buy-modal__close {
position: absolute;
top: 20px;
right: 20px;
background: rgba(255,255,255,0.05);
border: none;
border-radius: 40px;
width: 32px;
height: 32px;
display: flex;
align-items: center;
justify-content: center;
color: var(--text-muted);
cursor: pointer;
}
/* Modal Header */
.modal-header { text-align: center; margin-bottom: 32px; }
.modal-header__icon { font-size: 48px; margin-bottom: 8px; }
.modal-header__title { font-size: 26px; font-weight: 700; background: linear-gradient(135deg, #fff, var(--accent-cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 8px; }
.modal-header__price { font-size: 24px; font-weight: 800; color: var(--accent-green); }
.modal-header__price span { font-size: 12px; font-weight: 400; color: var(--text-muted); }
/* Form */
.modal-form { margin-bottom: 28px; }
.input-wrapper { position: relative; margin-bottom: 20px; }
.modal-input {
width: 100%;
background: rgba(10,12,18,0.6);
border: none;
border-radius: 14px;
padding: 16px 16px 8px;
color: var(--text-primary);
font-size: 15px;
outline: none;
}
.input-wrapper label {
position: absolute;
left: 16px;
top: 50%;
transform: translateY(-50%);
color: var(--text-muted);
font-size: 14px;
pointer-events: none;
transition: all 0.2s;
}
.modal-input:focus + label,
.modal-input:not(:placeholder-shown) + label {
top: 10px;
font-size: 10px;
color: var(--accent-cyan);
}
.input-border {
position: absolute;
bottom: 0;
left: 0;
width: 0;
height: 2px;
background: linear-gradient(90deg, var(--accent-cyan), var(--accent-pink));
transition: width 0.3s;
}
.modal-input:focus ~ .input-border { width: 100%; }
/* Custom Select */
.custom-select {
position: relative;
width: 100%;
margin-bottom: 8px;
}
.custom-select__trigger {
display: flex;
align-items: center;
justify-content: space-between;
background: rgba(10,12,18,0.6);
border: none;
border-radius: 14px;
padding: 16px;
font-size: 14px;
color: var(--text-secondary);
cursor: pointer;
}
.custom-select.active .custom-select__trigger {
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
}
.custom-select.active svg { transform: rotate(180deg); }
.custom-select__options {
position: absolute;
top: 100%;
left: 0;
right: 0;
background: rgba(18,22,35,0.98);
backdrop-filter: blur(10px);
border: 1px solid rgba(0,240,255,0.15);
border-top: none;
border-radius: 0 0 14px 14px;
overflow: hidden;
max-height: 0;
opacity: 0;
visibility: hidden;
transition: all 0.25s;
z-index: 20;
}
.custom-select.active .custom-select__options {
max-height: 200px;
opacity: 1;
visibility: visible;
}
.custom-select__option {
display: flex;
align-items: center;
gap: 12px;
padding: 12px 16px;
cursor: pointer;
transition: all 0.2s;
color: var(--text-secondary);
font-size: 14px;
}
.custom-select__option .opt-check {
margin-left: auto;
color: var(--accent-green);
opacity: 0;
}
.custom-select__option.selected .opt-check { opacity: 1; }
.custom-select__option:hover { background: rgba(0,240,255,0.1); color: var(--accent-cyan); }
.opt-icon { font-size: 18px; }
/* Buttons */
.btn-submit {
width: 100%;
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
background: linear-gradient(135deg, var(--accent-cyan), #0066ff);
border: none;
border-radius: 40px;
padding: 14px;
color: #000;
font-weight: 700;
font-size: 15px;
cursor: pointer;
margin-bottom: 12px;
}
.btn-submit:hover {
transform: translateY(-2px);
box-shadow: 0 8px 25px rgba(0,240,255,0.3);
}
.btn-cancel-modal {
width: 100%;
background: transparent;
border: 1px solid rgba(255,255,255,0.1);
border-radius: 40px;
padding: 12px;
color: var(--text-muted);
font-size: 13px;
cursor: pointer;
}
.btn-cancel-modal:hover {
border-color: var(--accent-pink);
color: var(--accent-pink);
}
.btn-spinner {
display: inline-block;
width: 14px;
height: 14px;
border: 2px solid rgba(0,0,0,0.3);
border-top-color: #000;
border-radius: 50%;
animation: btnSpin 0.6s linear infinite;
margin-right: 8px;
}
@keyframes btnSpin { to { transform: rotate(360deg); } }
/* Toast */
#toast-container {
position: fixed;
bottom: 24px;
right: 24px;
z-index: 2000;
display: flex;
flex-direction: column;
gap: 12px;
}
.toast {
background: var(--bg-tertiary);
border-left: 3px solid;
border-radius: 8px;
padding: 14px 20px;
min-width: 260px;
animation: slideIn 0.3s ease;
}
.toast-success { border-left-color: var(--accent-green); }
.toast-error { border-left-color: var(--accent-pink); }
.toast-info { border-left-color: var(--accent-cyan); }
.toast-warning { border-left-color: #ffcc00; }
.toast__content {
display: flex;
align-items: center;
gap: 12px;
}
.toast__close {
background: none;
border: none;
color: var(--text-muted);
cursor: pointer;
}
@keyframes slideIn {
from { opacity: 0; transform: translateX(40px); }
to { opacity: 1; transform: translateX(0); }
}
/* Responsive */
@media (max-width: 768px) {
.app { padding: 16px; gap: 16px; }
.app__inputs { grid-template-columns: 1fr; gap: 12px; }
.app__header { flex-direction: column; gap: 16px; text-align: center; }
.btn-icon { width: 100%; justify-content: center; }
}