hts / static /style.css
minatosnow's picture
Upload folder using huggingface_hub
21307f1 verified
:root {
--primary: #059669;
--primary-glow: rgba(5, 150, 105, 0.2);
--bg-light: #f1f5f9;
--glass-bg: rgba(255, 255, 255, 0.7);
--glass-border: rgba(255, 255, 255, 0.4);
--text-main: #0f172a;
--text-muted: #475569;
--danger: #e11d48;
--warning: #d97706;
--card-bg: rgba(255, 255, 255, 0.5);
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: 'Outfit', sans-serif;
background-color: var(--bg-light);
color: var(--text-main);
min-height: 100vh;
overflow-x: hidden;
position: relative;
}
/* Dynamic Background Blobs */
.blob {
position: absolute;
filter: blur(80px);
z-index: -1;
opacity: 0.4;
}
.shape1 {
top: -100px;
left: -100px;
width: 500px;
height: 500px;
background: radial-gradient(circle, #bae6fd, transparent);
animation: float 10s ease-in-out infinite;
}
.shape2 {
bottom: -150px;
right: -50px;
width: 600px;
height: 600px;
background: radial-gradient(circle, #ddd6fe, transparent);
animation: float 12s ease-in-out infinite reverse;
}
@keyframes float {
0% {
transform: translate(0, 0);
}
50% {
transform: translate(40px, -60px);
}
100% {
transform: translate(0, 0);
}
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 3rem 1.5rem;
}
header {
text-align: center;
margin-bottom: 3.5rem;
}
header h1 {
font-size: 2.8rem;
font-weight: 700;
margin-bottom: 0.75rem;
background: linear-gradient(to right, #059669, #2563eb);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
letter-spacing: -0.5px;
}
header p {
color: var(--text-muted);
font-size: 1.15rem;
max-width: 600px;
margin: 0 auto;
}
.glass-panel {
background: var(--glass-bg);
backdrop-filter: blur(16px);
-webkit-backdrop-filter: blur(16px);
border: 1px solid var(--glass-border);
border-radius: 24px;
padding: 2.5rem;
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05), inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}
.input-section {
display: flex;
flex-direction: column;
gap: 1.5rem;
margin-bottom: 2.5rem;
}
textarea {
width: 100%;
background: rgba(255, 255, 255, 0.8);
border: 1px solid rgba(15, 23, 42, 0.1);
border-radius: 12px;
color: var(--text-main);
padding: 1.25rem;
font-family: inherit;
font-size: 1.05rem;
resize: vertical;
outline: none;
transition: all 0.3s ease;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}
textarea:focus {
border-color: var(--primary);
box-shadow: 0 0 0 4px var(--primary-glow);
}
.primary-btn {
background: linear-gradient(135deg, #059669 0%, #10b981 100%);
color: white;
border: none;
padding: 1.1rem 2.5rem;
font-size: 1.1rem;
font-weight: 600;
border-radius: 12px;
cursor: pointer;
transition: all 0.3s ease;
align-self: flex-end;
box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}
.primary-btn:hover {
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}
.primary-btn:active {
transform: translateY(0);
}
/* Results Section */
.hidden {
display: none !important;
}
.results-section {
display: flex;
flex-direction: column;
gap: 2.5rem;
animation: fadeIn 0.5s ease-out;
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.hts-code-display {
font-size: 3.5rem;
letter-spacing: 5px;
text-align: center;
font-weight: 800;
margin: 1.5rem 0;
color: var(--primary);
filter: drop-shadow(0 0 1px rgba(5, 150, 105, 0.3));
}
.warning-box {
background: rgba(225, 29, 72, 0.05);
border: 1px solid rgba(225, 29, 72, 0.1);
border-left: 5px solid var(--danger);
padding: 1.25rem;
border-radius: 12px;
display: flex;
align-items: center;
gap: 1rem;
color: #9f1239;
margin-bottom: 2rem;
}
.warning-box svg {
width: 28px;
height: 28px;
flex-shrink: 0;
}
.confidence-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
gap: 1.25rem;
margin-top: 2rem;
}
.conf-card {
background: var(--card-bg);
padding: 1.5rem;
border-radius: 16px;
text-align: center;
border: 1px solid var(--glass-border);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
transition: transform 0.3s ease;
}
.conf-card:hover {
transform: translateY(-4px);
}
.conf-card.low-conf {
border-color: rgba(225, 29, 72, 0.3);
background: rgba(225, 29, 72, 0.03);
}
.conf-card .label {
font-size: 0.85rem;
color: var(--text-muted);
text-transform: uppercase;
letter-spacing: 1.2px;
font-weight: 600;
margin-bottom: 0.5rem;
}
.conf-card .value {
font-size: 1.75rem;
font-weight: 700;
margin: 0.5rem 0;
color: var(--text-main);
}
.conf-card .score {
font-size: 0.95rem;
font-weight: 600;
color: var(--primary);
}
.conf-card.low-conf .score {
color: var(--danger);
}
/* Accordion */
.accordion {
margin-top: 1rem;
}
.accordion-item {
border: 1px solid var(--glass-border);
border-radius: 12px;
margin-bottom: 1rem;
background: rgba(255, 255, 255, 0.3);
overflow: hidden;
}
.accordion-header {
width: 100%;
padding: 1.25rem;
background: transparent;
border: none;
font-size: 1.05rem;
font-weight: 600;
color: var(--text-main);
cursor: pointer;
display: flex;
justify-content: space-between;
align-items: center;
transition: background 0.3s ease;
}
.accordion-header:hover {
background: rgba(255, 255, 255, 0.4);
}
.accordion-content {
padding: 0 1.25rem;
max-height: 0;
overflow: hidden;
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.accordion-item.active .accordion-content {
padding: 1.25rem;
max-height: 3000px;
}
.accordion-item.active .arrow {
transform: rotate(180deg);
}
.arrow {
transition: transform 0.3s ease;
font-size: 0.8rem;
opacity: 0.5;
}
#reasoning-text {
line-height: 1.7;
color: var(--text-main);
font-size: 1.05rem;
margin-bottom: 2rem;
white-space: pre-wrap;
}
pre {
background: #f8fafc;
border: 1px solid #e2e8f0;
padding: 1.25rem;
border-radius: 8px;
overflow-x: auto;
font-size: 0.9rem;
color: #475569;
white-space: pre-wrap;
margin-top: 1rem;
margin-bottom: 1.5rem;
font-family: 'Fira Code', monospace;
}
h3 {
font-size: 1.4rem;
color: var(--text-main);
margin-bottom: 1.25rem;
}
h4 {
color: var(--text-main);
margin-bottom: 0.75rem;
font-weight: 600;
}
/* Loader */
.loader-container {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 5rem 0;
}
.spinner {
width: 60px;
height: 60px;
border: 5px solid rgba(5, 150, 105, 0.1);
border-top-color: var(--primary);
border-radius: 50%;
animation: spin 1s cubic-bezier(0.5, 0.1, 0.4, 0.9) infinite;
margin-bottom: 1.5rem;
box-shadow: 0 0 20px rgba(5, 150, 105, 0.1);
}
@keyframes spin {
100% {
transform: rotate(360deg);
}
}
.loader-container p {
color: var(--text-muted);
font-weight: 500;
animation: pulse 2s infinite;
}
@keyframes pulse {
0%,
100% {
opacity: 1;
}
50% {
opacity: 0.6;
}
}
#search-queries li {
margin-bottom: 0.5rem;
margin-left: 1.5rem;
color: var(--text-muted);
}
/* Escalation Chat */
.escalation-chat {
margin-top: 2rem;
border-top: 1px solid var(--glass-border);
padding-top: 1.5rem;
}
.escalation-chat h3 {
font-size: 1.25rem;
margin-bottom: 1rem;
color: var(--warning);
}
.chat-messages {
max-height: 300px;
overflow-y: auto;
padding: 1rem;
background: rgba(255, 255, 255, 0.4);
border-radius: 12px;
margin-bottom: 1rem;
display: flex;
flex-direction: column;
gap: 0.75rem;
border: 1px solid var(--glass-border);
}
.chat-msg {
padding: 0.85rem 1.25rem;
border-radius: 16px;
max-width: 80%;
font-size: 0.95rem;
line-height: 1.5;
animation: fadeIn 0.3s ease;
}
.msg-assistant {
background: var(--card-bg);
border: 1px solid var(--glass-border);
color: var(--text-main);
align-self: flex-start;
border-bottom-left-radius: 4px;
}
.msg-user {
background: var(--primary);
color: white;
align-self: flex-end;
border-bottom-right-radius: 4px;
box-shadow: 0 4px 10px rgba(5, 150, 105, 0.2);
}
.chat-input-area {
display: flex;
gap: 0.5rem;
}
.chat-input-area input {
flex: 1;
background: rgba(255, 255, 255, 0.8);
border: 1px solid rgba(15, 23, 42, 0.1);
border-radius: 12px;
padding: 1rem;
font-family: inherit;
font-size: 1rem;
outline: none;
transition: all 0.3s ease;
}
.chat-input-area input:focus {
border-color: var(--primary);
box-shadow: 0 0 0 4px var(--primary-glow);
}
.chat-btn {
background: var(--text-main);
color: white;
border: none;
border-radius: 12px;
padding: 0 1.5rem;
font-weight: 600;
cursor: pointer;
transition: all 0.2s;
}
.chat-btn:hover {
background: #1e293b;
}
.chat-btn:disabled {
background: #cbd5e1;
cursor: not-allowed;
}