π Source: style.css
/* style.css - Sistem de teme Θi design modern */
:root {
/* Light theme (default) */
--bg-primary: linear-gradient(145deg, #f6f9fc 0%, #eef2f5 100%);
--bg-card: rgba(255, 255, 255, 0.95);
--text-primary: #1e293b;
--text-secondary: #5b6e8c;
--border-color: rgba(59, 130, 246, 0.15);
--card-shadow: 0 12px 22px -12px rgba(0, 0, 0, 0.1);
--hover-shadow: 0 20px 28px -14px rgba(0, 0, 0, 0.2);
--input-bg: white;
--input-border: #e2e8f0;
--btn-bg: #1e293b;
--btn-hover: #0f172a;
--code-bg: #f8fafc;
--stat-bg: rgba(255, 255, 255, 0.6);
}
[data-theme="dark"] {
--bg-primary: linear-gradient(145deg, #0f172a 0%, #1e293b 100%);
--bg-card: rgba(30, 41, 59, 0.95);
--text-primary: #f1f5f9;
--text-secondary: #94a3b8;
--border-color: rgba(59, 130, 246, 0.25);
--card-shadow: 0 12px 22px -12px rgba(0, 0, 0, 0.4);
--hover-shadow: 0 20px 28px -14px rgba(0, 0, 0, 0.5);
--input-bg: #1e293b;
--input-border: #334155;
--btn-bg: #3b82f6;
--btn-hover: #2563eb;
--code-bg: #0f172a;
--stat-bg: rgba(30, 41, 59, 0.8);
}
[data-theme="ocean"] {
--bg-primary: linear-gradient(145deg, #0c4a6e 0%, #0891b2 100%);
--bg-card: rgba(255, 255, 255, 0.92);
--text-primary: #0c4a6e;
--text-secondary: #155e75;
--border-color: rgba(14, 165, 233, 0.3);
--card-shadow: 0 12px 22px -12px rgba(0, 0, 0, 0.2);
--hover-shadow: 0 20px 28px -14px rgba(0, 0, 0, 0.3);
--input-bg: white;
--input-border: #22d3ee;
--btn-bg: #0891b2;
--btn-hover: #0e7490;
--code-bg: #ecfeff;
--stat-bg: rgba(255, 255, 255, 0.7);
}
[data-theme="sunset"] {
--bg-primary: linear-gradient(145deg, #991b1b 0%, #ea580c 100%);
--bg-card: rgba(255, 248, 240, 0.96);
--text-primary: #7c2d12;
--text-secondary: #9a3412;
--border-color: rgba(234, 88, 12, 0.25);
--card-shadow: 0 12px 22px -12px rgba(0, 0, 0, 0.2);
--hover-shadow: 0 20px 28px -14px rgba(0, 0, 0, 0.3);
--input-bg: #fff7ed;
--input-border: #fdba74;
--btn-bg: #ea580c;
--btn-hover: #c2410c;
--code-bg: #ffedd5;
--stat-bg: rgba(255, 255, 255, 0.7);
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Inter', system-ui, -apple-system, sans-serif;
background: var(--bg-primary);
color: var(--text-primary);
min-height: 100vh;
padding: 2rem 1rem;
transition: all 0.3s ease;
}
/* Theme switcher */
.theme-switcher {
position: fixed;
top: 1rem;
right: 1rem;
display: flex;
gap: 0.5rem;
z-index: 1000;
background: var(--bg-card);
padding: 0.5rem;
border-radius: 3rem;
backdrop-filter: blur(10px);
box-shadow: var(--card-shadow);
}
.theme-btn {
width: 40px;
height: 40px;
border-radius: 50%;
border: none;
cursor: pointer;
font-size: 1.2rem;
transition: all 0.2s;
background: transparent;
}
.theme-btn:hover {
transform: scale(1.1);
}
/* Container principal */
.container {
max-width: 1400px;
width: 100%;
margin: 0 auto;
}
/* Header */
.header {
text-align: center;
margin-bottom: 2rem;
}
.header h1 {
font-size: 2.5rem;
font-weight: 800;
background: linear-gradient(135deg, #3b82f6, #8b5cf6);
background-clip: text;
-webkit-background-clip: text;
color: transparent;
margin-bottom: 0.5rem;
}
.icon {
font-size: 2rem;
display: inline-block;
margin-right: 0.5rem;
}
.subhead {
color: var(--text-secondary);
font-size: 1rem;
}
/* Form card */
.form-card {
background: var(--bg-card);
border-radius: 2rem;
padding: 1.8rem;
margin-bottom: 2rem;
box-shadow: var(--card-shadow);
backdrop-filter: blur(10px);
border: 1px solid var(--border-color);
}
.input-group {
display: flex;
flex-wrap: wrap;
gap: 1rem;
align-items: flex-end;
}
.input-field {
flex: 3;
min-width: 250px;
}
.input-field label {
display: block;
font-weight: 600;
margin-bottom: 0.5rem;
color: var(--text-primary);
}
.tooltip {
font-size: 0.75rem;
font-weight: normal;
margin-left: 0.5rem;
cursor: help;
color: var(--text-secondary);
}
.input-field input {
width: 100%;
padding: 0.85rem 1rem;
font-size: 1rem;
border: 2px solid var(--input-border);
border-radius: 1rem;
background: var(--input-bg);
color: var(--text-primary);
transition: all 0.2s;
}
.input-field input:focus {
outline: none;
border-color: #3b82f6;
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}
.btn-primary {
background: var(--btn-bg);
color: white;
border: none;
padding: 0.85rem 2rem;
font-size: 1rem;
font-weight: 600;
border-radius: 1rem;
cursor: pointer;
transition: all 0.2s;
display: flex;
align-items: center;
gap: 0.5rem;
flex: 1;
min-width: 160px;
justify-content: center;
}
.btn-primary:hover {
background: var(--btn-hover);
transform: translateY(-2px);
box-shadow: var(--hover-shadow);
}
.btn-icon {
font-size: 1.2rem;
}
.error-message {
margin-top: 1rem;
padding: 0.75rem 1rem;
background: #fee2e2;
color: #b91c1c;
border-radius: 1rem;
font-weight: 500;
}
.info-badge {
margin-top: 1rem;
padding: 0.5rem 1rem;
background: var(--code-bg);
border-radius: 1rem;
font-size: 0.85rem;
color: var(--text-primary);
}
.evaluated-info {
font-size: 0.75rem;
opacity: 0.7;
margin-left: 0.5rem;
}
/* Stats bar */
.stats-bar {
display: flex;
justify-content: space-around;
gap: 1rem;
margin-bottom: 2rem;
flex-wrap: wrap;
}
.stat-item {
background: var(--stat-bg);
backdrop-filter: blur(10px);
padding: 1rem 1.5rem;
border-radius: 1rem;
text-align: center;
flex: 1;
min-width: 120px;
border: 1px solid var(--border-color);
}
.stat-value {
display: block;
font-size: 1.8rem;
font-weight: 800;
color: #3b82f6;
}
.stat-label {
font-size: 0.8rem;
color: var(--text-secondary);
}
/* Grid de carduri */
.sequences-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
gap: 1.5rem;
}
.sequence-card {
background: var(--bg-card);
border-radius: 1.5rem;
padding: 1.2rem;
box-shadow: var(--card-shadow);
transition: all 0.3s ease;
border: 1px solid var(--border-color);
position: relative;
overflow: hidden;
}
.sequence-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 4px;
background: linear-gradient(90deg, #3b82f6, #8b5cf6);
}
.sequence-card[data-color="gold"]::before { background: linear-gradient(90deg, #fbbf24, #f59e0b); }
.sequence-card[data-color="blue"]::before { background: linear-gradient(90deg, #3b82f6, #2563eb); }
.sequence-card[data-color="purple"]::before { background: linear-gradient(90deg, #a855f7, #7c3aed); }
.sequence-card[data-color="green"]::before { background: linear-gradient(90deg, #10b981, #059669); }
.sequence-card[data-color="cyan"]::before { background: linear-gradient(90deg, #06b6d4, #0891b2); }
.sequence-card[data-color="red"]::before { background: linear-gradient(90deg, #ef4444, #dc2626); }
.sequence-card[data-color="orange"]::before { background: linear-gradient(90deg, #f97316, #ea580c); }
.sequence-card[data-color="yellow"]::before { background: linear-gradient(90deg, #eab308, #ca8a04); }
.sequence-card[data-color="teal"]::before { background: linear-gradient(90deg, #14b8a6, #0d9488); }
.sequence-card[data-color="indigo"]::before { background: linear-gradient(90deg, #6366f1, #4f46e5); }
.sequence-card[data-color="pink"]::before { background: linear-gradient(90deg, #ec4899, #db2777); }
.sequence-card[data-color="rose"]::before { background: linear-gradient(90deg, #f43f5e, #e11d48); }
.sequence-card[data-color="slate"]::before { background: linear-gradient(90deg, #64748b, #475569); }
.sequence-card:hover {
transform: translateY(-4px);
box-shadow: var(--hover-shadow);
}
.card-header {
display: flex;
justify-content: space-between;
align-items: baseline;
margin-bottom: 0.5rem;
flex-wrap: wrap;
gap: 0.5rem;
}
.card-title {
font-size: 1.2rem;
font-weight: 700;
display: flex;
align-items: center;
gap: 0.5rem;
flex-wrap: wrap;
}
.card-badge {
background: var(--code-bg);
padding: 0.2rem 0.6rem;
border-radius: 2rem;
font-size: 0.7rem;
font-weight: 500;
color: var(--text-secondary);
}
.card-meta {
font-size: 0.75rem;
}
.element-count {
color: var(--text-secondary);
}
.card-desc {
font-size: 0.75rem;
color: var(--text-secondary);
margin-bottom: 0.75rem;
font-family: monospace;
}
.sequence-content {
background: var(--code-bg);
border-radius: 1rem;
padding: 0.75rem;
margin-top: 0.5rem;
}
.sequence-label {
font-size: 0.7rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
color: var(--text-secondary);
display: block;
margin-bottom: 0.5rem;
}
.sequence-values {
font-family: 'SF Mono', 'Fira Code', monospace;
font-size: 0.8rem;
line-height: 1.5;
word-break: break-word;
max-height: 150px;
overflow-y: auto;
color: var(--text-primary);
}
/* Scrollbar personalizatΔ */
.sequence-values::-webkit-scrollbar {
width: 6px;
height: 6px;
}
.sequence-values::-webkit-scrollbar-track {
background: var(--border-color);
border-radius: 10px;
}
.sequence-values::-webkit-scrollbar-thumb {
background: #3b82f6;
border-radius: 10px;
}
.card-footer {
margin-top: 0.75rem;
text-align: center;
}
.expand-btn {
background: transparent;
border: 1px solid var(--border-color);
padding: 0.4rem 1rem;
border-radius: 2rem;
font-size: 0.7rem;
cursor: pointer;
color: var(--text-primary);
transition: all 0.2s;
}
.expand-btn:hover {
background: var(--btn-bg);
color: white;
}
/* Empty state */
.empty-state {
grid-column: 1 / -1;
text-align: center;
padding: 3rem;
background: var(--bg-card);
border-radius: 2rem;
}
.empty-icon {
font-size: 3rem;
margin-bottom: 1rem;
}
.empty-state h3 {
margin-bottom: 0.5rem;
}
/* Footer */
.footer {
margin-top: 2rem;
text-align: center;
font-size: 0.75rem;
color: var(--text-secondary);
border-top: 1px solid var(--border-color);
padding-top: 1.5rem;
}
.footer p {
margin: 0.25rem 0;
}
.footer code {
background: var(--code-bg);
padding: 0.2rem 0.4rem;
border-radius: 0.3rem;
font-family: monospace;
}
/* Responsive */
@media (max-width: 768px) {
body {
padding: 1rem;
}
.header h1 {
font-size: 1.8rem;
}
.sequences-grid {
grid-template-columns: 1fr;
}
.stats-bar {
flex-direction: column;
}
.theme-switcher {
position: relative;
justify-content: center;
margin-bottom: 1rem;
}
}
β Back