🔴 Alta priority: tema claro/escuro, modal tags, favicon K, badge modelo dinâmico

This commit is contained in:
2026-05-26 15:39:37 +00:00
parent 36ea7cce7a
commit f42bb49360
5 changed files with 629 additions and 16 deletions
+316 -1
View File
@@ -2,6 +2,7 @@
CSS GLOBAL & VARIÁVEIS (DESIGN SYSTEM PREMIUM)
========================================================================== */
:root {
/* Dark theme (default) */
--bg-primary: #0d0d0d;
--bg-secondary: #171717;
--bg-tertiary: #212121;
@@ -9,7 +10,7 @@
--text-primary: #ececec;
--text-secondary: #b4b4b4;
--text-muted: #8e8e8e;
--text-muted: #9e9e9e;
--brand-green: #10a37f;
--brand-green-hover: #1a7f64;
@@ -39,6 +40,30 @@
--transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
/* LIGHT THEME */
[data-theme="light"] {
--bg-primary: #f5f5f5;
--bg-secondary: #ffffff;
--bg-tertiary: #e8e8e8;
--bg-accent: #dcdcdc;
--text-primary: #1a1a1a;
--text-secondary: #4a4a4a;
--text-muted: #7a7a7a;
--brand-green: #10a37f;
--brand-green-hover: #0d8f6f;
--brand-glow: rgba(16, 163, 127, 0.1);
--border-light: rgba(0, 0, 0, 0.08);
--border-focus: rgba(16, 163, 127, 0.4);
--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.15), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
--shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
* {
box-sizing: border-box;
margin: 0;
@@ -1583,3 +1608,293 @@ code {
outline: none !important;
box-shadow: 0 0 5px var(--brand-glow) !important;
}
/* ==========================================================================
THEME TOGGLE BUTTON
========================================================================== */
.btn-theme-toggle {
background: none;
border: none;
cursor: pointer;
padding: 8px;
border-radius: 8px;
color: var(--text-secondary);
transition: background var(--transition-fast), color var(--transition-fast);
display: flex;
align-items: center;
justify-content: center;
}
.btn-theme-toggle:hover {
background: var(--bg-tertiary);
color: var(--text-primary);
}
.btn-theme-toggle svg {
width: 20px;
height: 20px;
}
/* Theme toggle in header - right side */
.header-right {
display: flex;
align-items: center;
gap: 4px;
}
/* ==========================================================================
MODAL DE TAGS (substitui prompt())
========================================================================== */
.modal-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.6);
backdrop-filter: blur(4px);
z-index: 1000;
display: flex;
align-items: center;
justify-content: center;
opacity: 0;
visibility: hidden;
transition: opacity var(--transition-normal), visibility var(--transition-normal);
}
.modal-overlay.active {
opacity: 1;
visibility: visible;
}
.modal-tag {
background: var(--bg-secondary);
border: 1px solid var(--border-light);
border-radius: 16px;
padding: 24px;
min-width: 320px;
max-width: 90vw;
box-shadow: var(--shadow-xl);
transform: scale(0.9) translateY(20px);
transition: transform var(--transition-normal);
}
.modal-overlay.active .modal-tag {
transform: scale(1) translateY(0);
}
.modal-tag-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 20px;
}
.modal-tag-title {
font-size: 16px;
font-weight: 600;
color: var(--text-primary);
}
.modal-tag-close {
background: none;
border: none;
cursor: pointer;
padding: 6px;
border-radius: 6px;
color: var(--text-muted);
transition: background var(--transition-fast), color var(--transition-fast);
}
.modal-tag-close:hover {
background: var(--bg-tertiary);
color: var(--text-primary);
}
.modal-tag-list {
display: flex;
flex-direction: column;
gap: 8px;
max-height: 300px;
overflow-y: auto;
}
.modal-tag-item {
display: flex;
align-items: center;
gap: 10px;
padding: 10px 14px;
border-radius: 10px;
cursor: pointer;
transition: background var(--transition-fast);
border: 1px solid transparent;
}
.modal-tag-item:hover {
background: var(--bg-tertiary);
}
.modal-tag-item.selected {
background: var(--brand-glow);
border-color: var(--brand-green);
}
.modal-tag-item input[type="checkbox"] {
width: 16px;
height: 16px;
accent-color: var(--brand-green);
cursor: pointer;
}
.modal-tag-item span {
font-size: 14px;
color: var(--text-primary);
}
.modal-tag-item.selected span {
color: var(--brand-green);
font-weight: 500;
}
.modal-tag-actions {
display: flex;
gap: 10px;
margin-top: 20px;
justify-content: flex-end;
}
.modal-tag-btn {
padding: 10px 20px;
border-radius: 10px;
font-size: 14px;
font-weight: 500;
cursor: pointer;
transition: background var(--transition-fast), transform var(--transition-fast);
border: none;
}
.modal-tag-btn:active {
transform: scale(0.97);
}
.modal-tag-btn.primary {
background: var(--brand-green);
color: white;
}
.modal-tag-btn.primary:hover {
background: var(--brand-green-hover);
}
.modal-tag-btn.secondary {
background: var(--bg-tertiary);
color: var(--text-secondary);
}
.modal-tag-btn.secondary:hover {
background: var(--bg-accent);
color: var(--text-primary);
}
/* ==========================================================================
TAG INPUT DISPLAY
========================================================================== */
.tags-display {
display: flex;
flex-wrap: wrap;
gap: 6px;
margin-top: 10px;
padding: 10px;
background: var(--bg-tertiary);
border-radius: 10px;
min-height: 44px;
align-items: center;
}
.tag-badge {
display: inline-flex;
align-items: center;
gap: 5px;
padding: 4px 10px;
border-radius: 16px;
font-size: 12px;
font-weight: 500;
background: var(--brand-glow);
color: var(--brand-green);
border: 1px solid rgba(16, 163, 127, 0.3);
}
.tag-badge button {
background: none;
border: none;
cursor: pointer;
padding: 0;
display: flex;
align-items: center;
color: var(--brand-green);
opacity: 0.7;
transition: opacity var(--transition-fast);
}
.tag-badge button:hover {
opacity: 1;
}
.no-tags {
color: var(--text-muted);
font-size: 12px;
font-style: italic;
}
/* ==========================================================================
WELCOME CARDS (tematicos)
========================================================================== */
.welcome-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 12px;
max-width: 600px;
margin-top: 20px;
}
@media (max-width: 500px) {
.welcome-grid {
grid-template-columns: 1fr;
}
}
.suggestion-card {
background: var(--bg-secondary);
border: 1px solid var(--border-light);
border-radius: 14px;
padding: 16px;
cursor: pointer;
text-align: left;
transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
display: flex;
flex-direction: column;
gap: 8px;
}
.suggestion-card:hover {
background: var(--bg-tertiary);
border-color: var(--brand-green);
transform: translateY(-2px);
}
.suggestion-card .card-icon {
font-size: 24px;
line-height: 1;
}
.suggestion-card .card-title {
font-size: 14px;
font-weight: 600;
color: var(--text-primary);
}
.suggestion-card .card-desc {
font-size: 12px;
color: var(--text-muted);
line-height: 1.4;
}