web / static / css / style.css
/* ============== Variables ============== */
:root {
--bg-primary: #0f1117;
--bg-secondary: #1a1d27;
--bg-tertiary: #242734;
--bg-hover: #2a2d3a;
--border: #2e3141;
--border-hover: #3e4258;
--text-primary: #e4e6f0;
--text-secondary: #8b8fa3;
--text-muted: #5c6078;
--accent: #6c5ce7;
--accent-hover: #7c6ff7;
--accent-bg: rgba(108, 92, 231, 0.1);
--success: #00b894;
--success-bg: rgba(0, 184, 148, 0.1);
--warning: #fdcb6e;
--warning-bg: rgba(253, 203, 110, 0.1);
--error: #e17055;
--error-bg: rgba(225, 112, 85, 0.1);
--info: #74b9ff;
--info-bg: rgba(116, 185, 255, 0.1);
--radius: 8px;
--radius-lg: 12px;
--shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
--transition: 0.2s ease;
}
/* ============== Reset & Base ============== */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
background: var(--bg-primary);
color: var(--text-primary);
line-height: 1.6;
min-height: 100vh;
}
/* ============== Container ============== */
.container {
max-width: 1400px;
margin: 0 auto;
padding: 0 24px;
position: relative;
}
/* ============== Header ============== */
.header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 20px 0;
border-bottom: 1px solid var(--border);
margin-bottom: 24px;
}
.logo {
display: flex;
align-items: center;
gap: 12px;
color: var(--accent);
}
.logo h1 {
font-size: 1.5rem;
font-weight: 700;
letter-spacing: -0.02em;
}
.status {
display: flex;
align-items: center;
gap: 8px;
font-size: 0.85rem;
color: var(--text-secondary);
}
.status-dot {
width: 8px;
height: 8px;
border-radius: 50%;
background: var(--text-muted);
}
.status.connected .status-dot {
background: var(--success);
box-shadow: 0 0 8px var(--success);
}
.status.error .status-dot {
background: var(--error);
box-shadow: 0 0 8px var(--error);
}
/* ============== Main Layout ============== */
.main {
display: grid;
grid-template-columns: 380px 1fr;
gap: 24px;
padding-bottom: 48px;
}
@media (max-width: 900px) {
.main {
grid-template-columns: 1fr;
}
}
.panel {
display: flex;
flex-direction: column;
gap: 16px;
}
/* ============== Section ============== */
.section {
background: var(--bg-secondary);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
padding: 20px;
}
.section h2 {
display: flex;
align-items: center;
gap: 8px;
font-size: 0.95rem;
font-weight: 600;
color: var(--text-primary);
margin-bottom: 16px;
}
.section h2 svg {
color: var(--accent);
}
/* ============== Form Elements ============== */
.form-group {
margin-bottom: 12px;
}
.form-group:last-child {
margin-bottom: 0;
}
.form-group label {
display: block;
font-size: 0.8rem;
font-weight: 500;
color: var(--text-secondary);
margin-bottom: 4px;
}
.input, .select, .textarea {
width: 100%;
padding: 8px 12px;
background: var(--bg-tertiary);
border: 1px solid var(--border);
border-radius: var(--radius);
color: var(--text-primary);
font-size: 0.875rem;
font-family: inherit;
transition: border-color var(--transition);
outline: none;
}
.input:focus, .select:focus, .textarea:focus {
border-color: var(--accent);
}
.textarea {
resize: vertical;
min-height: 100px;
}
.select {
cursor: pointer;
appearance: none;
background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%238b8fa3' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
background-repeat: no-repeat;
background-position: right 12px center;
padding-right: 32px;
}
.form-row {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 12px;
}
.checkbox-group {
display: flex;
gap: 16px;
margin-bottom: 12px;
}
.checkbox-label {
display: flex;
align-items: center;
gap: 6px;
font-size: 0.85rem;
color: var(--text-secondary);
cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
accent-color: var(--accent);
width: 16px;
height: 16px;
}
/* ============== Buttons ============== */
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
padding: 8px 16px;
border: 1px solid transparent;
border-radius: var(--radius);
font-size: 0.875rem;
font-weight: 500;
font-family: inherit;
cursor: pointer;
transition: all var(--transition);
outline: none;
}
.btn-primary {
background: var(--accent);
color: white;
border-color: var(--accent);
}
.btn-primary:hover {
background: var(--accent-hover);
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(108, 92, 231, 0.3);
}
.btn-primary:active {
transform: translateY(0);
}
.btn-primary:disabled {
opacity: 0.5;
cursor: not-allowed;
transform: none;
box-shadow: none;
}
.btn-secondary {
background: var(--bg-tertiary);
color: var(--text-primary);
border-color: var(--border);
}
.btn-secondary:hover {
border-color: var(--border-hover);
background: var(--bg-hover);
}
.btn-large {
width: 100%;
padding: 14px 24px;
font-size: 1rem;
font-weight: 600;
}
/* ============== Features Grid ============== */
.features-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
gap: 8px;
}
.feature-tag {
display: flex;
flex-direction: column;
padding: 8px 12px;
background: var(--bg-tertiary);
border-radius: var(--radius);
border: 1px solid var(--border);
}
.feature-tag .feature-label {
font-size: 0.7rem;
color: var(--text-muted);
text-transform: uppercase;
letter-spacing: 0.05em;
}
.feature-tag .feature-value {
font-size: 0.85rem;
color: var(--text-primary);
margin-top: 2px;
word-break: break-all;
}
.feature-tag.has-value {
border-color: var(--accent);
background: var(--accent-bg);
}
.feature-tag .feature-value.empty {
color: var(--text-muted);
font-style: italic;
}
/* ============== Password Grid ============== */
.password-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
gap: 8px;
}
.password-card {
display: flex;
align-items: center;
justify-content: space-between;
padding: 10px 14px;
background: var(--bg-tertiary);
border: 1px solid var(--border);
border-radius: var(--radius);
cursor: pointer;
transition: all var(--transition);
}
.password-card:hover {
border-color: var(--accent);
background: var(--accent-bg);
transform: translateY(-1px);
}
.password-card .pwd-text {
font-family: 'Consolas', 'Monaco', monospace;
font-size: 0.9rem;
color: var(--text-primary);
letter-spacing: 0.03em;
}
.password-card .pwd-score {
font-size: 0.75rem;
color: var(--text-muted);
font-family: monospace;
}
.password-card .pwd-method {
font-size: 0.65rem;
color: var(--text-muted);
background: var(--bg-secondary);
padding: 2px 6px;
border-radius: 4px;
}
.password-card .pwd-info {
display: flex;
align-items: center;
gap: 6px;
}
.badge {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 24px;
height: 20px;
padding: 0 6px;
background: var(--accent);
color: white;
font-size: 0.7rem;
font-weight: 600;
border-radius: 10px;
margin-left: 8px;
}
/* ============== Stats ============== */
.stats-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 12px;
}
.stat-card {
display: flex;
flex-direction: column;
align-items: center;
padding: 12px;
background: var(--bg-tertiary);
border-radius: var(--radius);
border: 1px solid var(--border);
}
.stat-label {
font-size: 0.75rem;
color: var(--text-muted);
}
.stat-value {
font-size: 1.2rem;
font-weight: 600;
color: var(--accent);
margin-top: 4px;
}
/* ============== Loading ============== */
.loading-overlay {
position: fixed;
inset: 0;
background: rgba(15, 17, 23, 0.85);
display: flex;
align-items: center;
justify-content: center;
z-index: 100;
backdrop-filter: blur(4px);
}
.loading-overlay.hidden {
display: none;
}
.loading-spinner {
text-align: center;
}
.spinner {
width: 48px;
height: 48px;
border: 3px solid var(--border);
border-top-color: var(--accent);
border-radius: 50%;
margin: 0 auto 16px;
animation: spin 0.8s linear infinite;
}
@keyframes spin {
to { transform: rotate(360deg); }
}
#loadingText {
color: var(--text-secondary);
font-size: 0.9rem;
}
/* ============== Toast ============== */
.toast-container {
position: fixed;
top: 24px;
right: 24px;
z-index: 200;
display: flex;
flex-direction: column;
gap: 8px;
}
.toast {
padding: 12px 20px;
border-radius: var(--radius);
font-size: 0.85rem;
color: var(--text-primary);
background: var(--bg-secondary);
border: 1px solid var(--border);
box-shadow: var(--shadow);
animation: slideIn 0.3s ease;
max-width: 360px;
}
.toast.success {
border-color: var(--success);
background: var(--success-bg);
}
.toast.error {
border-color: var(--error);
background: var(--error-bg);
}
.toast.warning {
border-color: var(--warning);
background: var(--warning-bg);
}
.toast.info {
border-color: var(--info);
background: var(--info-bg);
}
@keyframes slideIn {
from {
transform: translateX(100%);
opacity: 0;
}
to {
transform: translateX(0);
opacity: 1;
}
}
@keyframes slideOut {
from {
transform: translateX(0);
opacity: 1;
}
to {
transform: translateX(100%);
opacity: 0;
}
}
/* ============== Placeholder ============== */
.placeholder {
color: var(--text-muted);
font-size: 0.85rem;
text-align: center;
padding: 24px;
}
/* ============== Scrollbar ============== */
::-webkit-scrollbar {
width: 6px;
}
::-webkit-scrollbar-track {
background: transparent;
}
::-webkit-scrollbar-thumb {
background: var(--border);
border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
background: var(--border-hover);
}
/* ============== Copied Flash ============== */
.password-card.copied {
border-color: var(--success) !important;
background: var(--success-bg) !important;
}
/* ============== Password list tags ============== */
.feature-list {
display: flex;
flex-wrap: wrap;
gap: 4px;
margin-top: 2px;
}
.feature-list-item {
display: inline-block;
padding: 1px 6px;
background: var(--accent-bg);
border: 1px solid var(--accent);
border-radius: 4px;
font-size: 0.75rem;
color: var(--text-primary);
}
/* ============== Method selector description ============== */
.method-desc {
font-size: 0.75rem;
color: var(--text-muted);
margin-top: 2px;
margin-bottom: 8px;
}