Spaces:
Running
Running
:root { | |
--primary-color: #2563eb; | |
--primary-hover: #1d4ed8; | |
--background-color: #f8fafc; | |
--card-background: #ffffff; | |
--text-primary: #1e293b; | |
--text-secondary: #64748b; | |
--border-color: #e2e8f0; | |
--token-hover: #f1f5f9; | |
} | |
* { | |
margin: 0; | |
padding: 0; | |
box-sizing: border-box; | |
} | |
body { | |
font-family: 'Inter', sans-serif; | |
background-color: var(--background-color); | |
color: var(--text-primary); | |
line-height: 1.5; | |
} | |
.container { | |
max-width: 1200px; | |
margin: 0 auto; | |
padding: 2rem; | |
} | |
header { | |
text-align: center; | |
margin-bottom: 2rem; | |
} | |
h1 { | |
font-size: 2.5rem; | |
font-weight: 600; | |
color: var(--text-primary); | |
margin-bottom: 0.5rem; | |
} | |
.subtitle { | |
color: var(--text-secondary); | |
font-size: 1.1rem; | |
} | |
.control-panel { | |
background-color: var(--card-background); | |
border-radius: 12px; | |
padding: 1.5rem; | |
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); | |
margin-bottom: 2rem; | |
} | |
.input-group { | |
margin-bottom: 1.5rem; | |
} | |
label { | |
display: block; | |
margin-bottom: 0.5rem; | |
font-weight: 500; | |
color: var(--text-primary); | |
} | |
.styled-select { | |
width: 100%; | |
padding: 0.75rem; | |
border: 1px solid var(--border-color); | |
border-radius: 6px; | |
font-size: 1rem; | |
background-color: white; | |
cursor: pointer; | |
} | |
textarea { | |
width: 100%; | |
min-height: 120px; | |
padding: 0.75rem; | |
border: 1px solid var(--border-color); | |
border-radius: 6px; | |
font-size: 1rem; | |
font-family: inherit; | |
resize: vertical; | |
} | |
.primary-button { | |
background-color: var(--primary-color); | |
color: white; | |
border: none; | |
padding: 0.75rem 1.5rem; | |
border-radius: 6px; | |
font-size: 1rem; | |
font-weight: 500; | |
cursor: pointer; | |
transition: background-color 0.2s; | |
position: relative; | |
min-width: 100px; | |
display: flex; | |
align-items: center; | |
justify-content: center; | |
gap: 0.5rem; | |
} | |
.primary-button:disabled { | |
background-color: var(--text-secondary); | |
cursor: not-allowed; | |
} | |
.primary-button .button-text { | |
transition: opacity 0.2s; | |
} | |
.primary-button.loading .button-text { | |
opacity: 0; | |
} | |
.button-spinner { | |
position: absolute; | |
width: 20px; | |
height: 20px; | |
border: 2px solid rgba(255, 255, 255, 0.3); | |
border-top: 2px solid white; | |
border-radius: 50%; | |
animation: spin 1s linear infinite; | |
display: none; | |
} | |
.button-spinner.visible { | |
display: block; | |
} | |
@keyframes spin { | |
0% { transform: rotate(0deg); } | |
100% { transform: rotate(360deg); } | |
} | |
.primary-button:hover { | |
background-color: var(--primary-hover); | |
} | |
.output-panel { | |
background-color: var(--card-background); | |
border-radius: 12px; | |
padding: 1.5rem; | |
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); | |
} | |
.output-section { | |
margin-bottom: 2rem; | |
} | |
h2 { | |
font-size: 1.5rem; | |
margin-bottom: 1rem; | |
color: var(--text-primary); | |
} | |
.token-display { | |
background-color: white; | |
border-radius: 8px; | |
padding: 1rem; | |
line-height: 1.3; | |
min-height: 100px; | |
font-size: 1rem; | |
white-space: pre-wrap; | |
} | |
.token { | |
padding: 0; | |
border-radius: 0; | |
margin: 0; | |
cursor: pointer; | |
transition: background-color 0.15s; | |
display: inline; | |
} | |
.token:hover { | |
background-color: rgba(0, 0, 0, 0.05) ; | |
} | |
.stats-grid { | |
display: grid; | |
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); | |
gap: 1rem; | |
} | |
.stat-card { | |
background-color: white; | |
padding: 1rem; | |
border-radius: 8px; | |
border: 1px solid var(--border-color); | |
} | |
.stat-label { | |
font-size: 0.875rem; | |
color: var(--text-secondary); | |
margin-bottom: 0.5rem; | |
} | |
.stat-value { | |
font-size: 1.25rem; | |
font-weight: 600; | |
color: var(--text-primary); | |
} | |
/* Tippy custom theme */ | |
.tippy-box[data-theme~='custom'] { | |
background-color: white; | |
color: var(--text-primary); | |
border: 1px solid var(--border-color); | |
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); | |
border-radius: 8px; | |
font-size: 0.875rem; | |
} | |
.tippy-box[data-theme~='custom'] .tippy-content { | |
padding: 1rem; | |
} | |
@media (max-width: 768px) { | |
.container { | |
padding: 1rem; | |
} | |
h1 { | |
font-size: 2rem; | |
} | |
.stats-grid { | |
grid-template-columns: 1fr; | |
} | |
} |