Files
Claro-cases/public/style.css
T
2026-07-21 16:53:38 -05:00

732 lines
13 KiB
CSS

/* Claro Cases Styling - Replicating Autonomus Brand Line */
:root {
--bg-base: #f0f2f5;
--bg-surface: #ffffff;
--bg-elevated: #f8fafc;
--bg-hover: #e2e8f0;
--border: rgba(0, 0, 0, 0.08);
--border-accent: rgba(255, 78, 0, 0.25);
--text-primary: #1e293b;
--text-secondary: #475569;
--text-muted: #94a3b8;
--accent-orange: #ff4e00;
--accent-yellow: #ffa600;
--accent-red: #f80018;
--accent-green: #10b981;
--gradient-a: linear-gradient(135deg, #ff4e00, #ffa600);
--gradient-b: linear-gradient(135deg, #f80018, #ff4e00);
--radius-sm: 4px;
--radius-md: 8px;
--radius-lg: 12px;
--radius-xl: 16px;
--shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
--shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
--shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.12);
--transition: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
--font-family: 'Inter', system-ui, sans-serif;
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: var(--font-family);
background-color: var(--bg-base);
color: var(--text-primary);
height: 100vh;
overflow: hidden;
font-size: 13px;
}
.app-container {
display: flex;
flex-direction: column;
height: 100vh;
}
/* Header */
.app-header {
height: 50px;
display: flex;
justify-content: space-between;
align-items: center;
padding: 0 16px;
border-bottom: 1px solid var(--border);
background: var(--bg-surface);
z-index: 10;
box-shadow: var(--shadow-sm);
}
.logo-area {
display: flex;
align-items: center;
gap: 8px;
}
.logo-icon {
font-size: 1.1rem;
}
.logo-area h1 {
font-size: 13px;
font-weight: 600;
background: var(--gradient-a);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
letter-spacing: 0.5px;
}
.live-badge {
background: rgba(16, 185, 129, 0.1);
color: var(--accent-green);
border: 1px solid rgba(16, 185, 129, 0.2);
font-size: 10px;
padding: 1px 6px;
border-radius: 20px;
font-weight: 600;
text-transform: uppercase;
}
.status-area {
display: flex;
align-items: center;
gap: 6px;
font-size: 11px;
color: var(--text-secondary);
}
.status-dot {
width: 6px;
height: 6px;
border-radius: 50%;
}
.status-dot.connected {
background-color: var(--accent-green);
box-shadow: 0 0 6px var(--accent-green);
}
.status-dot.disconnected {
background-color: var(--accent-red);
box-shadow: 0 0 6px var(--accent-red);
}
/* Main Layout */
.app-main {
flex: 1;
display: flex;
overflow: hidden;
}
/* Sidebar List */
.cases-sidebar {
width: 320px;
background: var(--bg-surface);
border-right: 1px solid var(--border);
display: flex;
flex-direction: column;
z-index: 5;
}
.sidebar-header {
padding: 16px;
display: flex;
justify-content: space-between;
align-items: center;
}
.sidebar-header h2 {
font-size: 12px;
font-weight: 600;
color: var(--text-primary);
text-transform: uppercase;
letter-spacing: 0.5px;
}
.cases-count {
background: var(--bg-base);
padding: 2px 8px;
border-radius: var(--radius-sm);
font-size: 11px;
color: var(--text-secondary);
font-weight: 600;
}
.search-bar {
padding: 0 16px 12px;
}
.search-bar input {
width: 100%;
padding: 8px 12px;
background: var(--bg-elevated);
border: 1px solid var(--border);
border-radius: var(--radius-md);
color: var(--text-primary);
font-family: var(--font-family);
font-size: 12px;
outline: none;
transition: var(--transition);
}
.search-bar input:focus {
border-color: var(--accent-orange);
box-shadow: 0 0 0 3px rgba(255, 78, 0, 0.1);
}
.tabs-container {
display: flex;
gap: 6px;
padding: 0 16px 12px;
border-bottom: 1px solid var(--border);
margin-bottom: 12px;
}
.tab-btn {
flex: 1;
background: var(--bg-elevated);
border: 1px solid var(--border);
border-radius: var(--radius-md);
padding: 6px 0;
font-size: 11px;
font-weight: 500;
font-family: var(--font-family);
color: var(--text-secondary);
cursor: pointer;
transition: var(--transition);
text-align: center;
}
.tab-btn:hover {
background: var(--bg-hover);
color: var(--text-primary);
}
.tab-btn.active {
background: rgba(255, 78, 0, 0.08);
color: var(--accent-orange);
border-color: var(--accent-orange);
font-weight: 600;
}
body.dark-mode .tab-btn.active {
background: rgba(255, 78, 0, 0.15);
}
.cases-list {
flex: 1;
overflow-y: auto;
padding: 0 16px 16px;
display: flex;
flex-direction: column;
gap: 8px;
}
/* Case Card */
.case-card {
background: var(--bg-elevated);
border: 1px solid var(--border);
border-radius: var(--radius-md);
padding: 12px;
cursor: pointer;
transition: var(--transition);
position: relative;
overflow: hidden;
animation: slideIn 0.25s ease-out;
}
.case-card:hover {
background: var(--bg-hover);
border-color: rgba(0, 0, 0, 0.15);
}
.case-card.active {
background: rgba(255, 78, 0, 0.04);
border-color: var(--accent-orange);
}
.case-card-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 8px;
margin-bottom: 4px;
}
.case-title {
font-weight: 600;
font-size: 12px;
line-height: 1.3;
color: var(--text-primary);
}
.case-status-badge {
font-size: 9px;
padding: 2px 6px;
border-radius: 10px;
font-weight: 600;
text-transform: uppercase;
flex-shrink: 0;
}
.timing-badge {
font-size: 9px;
font-weight: 600;
color: var(--accent-orange);
background: rgba(255, 78, 0, 0.08);
padding: 1px 5px;
border-radius: 4px;
margin-left: 4px;
}
/* Status-specific Badges */
.status-pending { background: rgba(255, 166, 0, 0.12); color: var(--accent-yellow); }
.status-resolved { background: rgba(16, 185, 129, 0.12); color: var(--accent-green); }
.status-failed { background: rgba(248, 0, 24, 0.1); color: var(--accent-red); }
.status-finalizado { background: rgba(16, 185, 129, 0.12); color: var(--accent-green); }
.case-desc-preview {
font-size: 11px;
color: var(--text-secondary);
margin-bottom: 8px;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
line-height: 1.4;
}
.case-footer {
display: flex;
justify-content: space-between;
align-items: center;
font-size: 10px;
color: var(--text-muted);
border-top: 1px solid var(--border);
padding-top: 6px;
}
.case-id {
font-family: monospace;
background: var(--bg-hover);
padding: 1px 4px;
border-radius: 2px;
}
/* Right Detail Panel */
.case-details {
flex: 1;
background: var(--bg-surface);
padding: 30px;
overflow-y: auto;
display: flex;
flex-direction: column;
}
/* Empty State */
.empty-state {
margin: auto;
text-align: center;
max-width: 380px;
}
.empty-icon {
font-size: 3rem;
margin-bottom: 16px;
opacity: 0.4;
}
.empty-state h3 {
font-size: 14px;
margin-bottom: 8px;
font-weight: 600;
}
.empty-state p {
color: var(--text-secondary);
line-height: 1.6;
font-size: 12px;
}
/* Full Detail View Layout */
.detail-view {
animation: fadeIn 0.3s ease;
display: flex;
flex-direction: column;
gap: 24px;
max-width: 800px;
margin: 0 auto;
width: 100%;
}
.detail-header {
border-bottom: 1px solid var(--border);
padding-bottom: 16px;
}
.detail-meta {
display: flex;
gap: 12px;
align-items: center;
margin-bottom: 12px;
}
.detail-title {
font-size: 18px;
font-weight: 700;
line-height: 1.3;
color: var(--text-primary);
margin-bottom: 8px;
}
.detail-time {
font-size: 11px;
color: var(--text-muted);
}
.header-metadata-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 16px;
background: var(--bg-base);
border: 1px solid var(--border);
border-radius: var(--radius-md);
padding: 12px;
margin-top: 12px;
}
.meta-item {
display: flex;
flex-direction: column;
gap: 4px;
}
.meta-label {
font-size: 11px;
color: var(--text-secondary);
font-weight: 500;
}
.meta-value {
font-size: 13px;
color: var(--text-primary);
}
.highlight-meta {
color: var(--accent-orange);
font-weight: 600;
}
/* Operation / Timer Panel */
.actions-panel {
display: flex;
justify-content: space-between;
align-items: center;
background: var(--bg-elevated);
border: 1px solid var(--border);
border-radius: var(--radius-md);
padding: 16px;
gap: 16px;
}
.actions-panel.active-panel {
border-color: var(--accent-orange);
background: rgba(255, 78, 0, 0.02);
}
.actions-panel.finished-panel {
border-color: var(--accent-green);
background: rgba(16, 185, 129, 0.02);
}
.timer-display {
display: flex;
flex-direction: column;
gap: 4px;
}
.timer-lbl {
font-size: 11px;
color: var(--text-secondary);
font-weight: 500;
}
.timer-val {
font-size: 20px;
font-weight: 700;
font-family: monospace;
color: var(--text-primary);
}
.active-panel .timer-val {
color: var(--accent-orange);
}
.finished-panel .timer-val {
color: var(--accent-green);
}
.button-group {
display: flex;
gap: 10px;
align-items: center;
}
/* Buttons */
.btn {
padding: 8px 16px;
font-size: 12px;
font-weight: 600;
font-family: var(--font-family);
border: none;
border-radius: var(--radius-md);
cursor: pointer;
transition: var(--transition);
}
.btn-primary {
background: var(--accent-orange);
color: white;
}
.btn-primary:hover {
background: #e04400;
}
.btn-success {
background: var(--accent-green);
color: white;
}
.btn-success:hover {
background: #0d9668;
}
.btn-danger {
background: transparent;
color: var(--accent-red);
border: 1px solid rgba(248, 0, 24, 0.2);
}
.btn-danger:hover {
background: rgba(248, 0, 24, 0.06);
border-color: var(--accent-red);
}
.detail-section h4 {
font-size: 11px;
font-weight: 600;
margin-bottom: 8px;
color: var(--text-secondary);
text-transform: uppercase;
letter-spacing: 0.5px;
}
.detail-section p.description-text {
font-size: 12px;
line-height: 1.6;
color: var(--text-primary);
background: var(--bg-elevated);
border: 1px solid var(--border);
padding: 16px;
border-radius: var(--radius-md);
}
/* Info Grid (Payload Key-Value) */
.info-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
gap: 12px;
}
.info-item {
background: var(--bg-elevated);
border: 1px solid var(--border);
border-radius: var(--radius-md);
padding: 12px;
display: flex;
flex-direction: column;
gap: 6px;
}
.info-label {
font-size: 10px;
color: var(--text-secondary);
text-transform: uppercase;
font-weight: 600;
letter-spacing: 0.3px;
}
.info-value {
font-size: 12px;
color: var(--text-primary);
word-break: break-all;
font-weight: 500;
}
.no-payload {
color: var(--text-muted);
font-style: italic;
padding: 8px 0;
}
/* Custom Scrollbars */
::-webkit-scrollbar {
width: 5px;
height: 5px;
}
::-webkit-scrollbar-track {
background: transparent;
}
::-webkit-scrollbar-thumb {
background: var(--bg-hover);
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: var(--text-muted);
}
/* Placeholders */
.loading-placeholder {
text-align: center;
color: var(--text-secondary);
padding: 30px 0;
}
/* Animations */
@keyframes slideIn {
from { transform: translateY(8px); opacity: 0; }
to { transform: translateY(0); opacity: 1; }
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
.animate-pulse {
animation: pulse-op 1.5s infinite;
}
@keyframes pulse-op {
0%, 100% { opacity: 1; }
50% { opacity: 0.5; }
}
/* Theme Toggle Button */
.theme-toggle-btn {
background: transparent;
border: 1px solid var(--border);
font-size: 14px;
padding: 4px 8px;
border-radius: var(--radius-md);
cursor: pointer;
margin-left: 12px;
transition: var(--transition);
display: flex;
align-items: center;
justify-content: center;
color: var(--text-primary);
}
.theme-toggle-btn:hover {
background: var(--bg-hover);
border-color: var(--text-muted);
}
/* Dark Mode Overrides */
body.dark-mode {
--bg-base: #0c0d14;
--bg-surface: #141622;
--bg-elevated: #1d2030;
--bg-hover: #2b2f46;
--border: rgba(255, 255, 255, 0.08);
--text-primary: #f1f5f9;
--text-secondary: #94a3b8;
--text-muted: #64748b;
}
body.dark-mode ::-webkit-scrollbar-thumb {
background: var(--bg-hover);
}
/* Request Type Badges */
.case-type-badge {
background: rgba(255, 78, 0, 0.1);
color: var(--accent-orange);
border: 1px solid rgba(255, 78, 0, 0.25);
font-size: 10px;
padding: 1px 6px;
border-radius: 4px;
font-weight: 600;
text-transform: uppercase;
display: inline-block;
white-space: nowrap;
}
/* Custom Modal Dialog */
.modal-overlay {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background: rgba(0, 0, 0, 0.4);
backdrop-filter: blur(4px);
display: flex;
align-items: center;
justify-content: center;
z-index: 1000;
animation: fadeIn 0.2s ease-out;
}
.modal-content {
background: var(--bg-surface);
border: 1px solid var(--border);
padding: 24px;
border-radius: var(--radius-lg);
box-shadow: var(--shadow-lg);
max-width: 400px;
width: 90%;
text-align: center;
animation: slideIn 0.2s ease-out;
}
.modal-title {
font-size: 1.1rem;
font-weight: 600;
margin-bottom: 12px;
color: var(--text-primary);
}
.modal-message {
font-size: 13px;
color: var(--text-secondary);
margin-bottom: 24px;
}
.modal-buttons {
display: flex;
gap: 12px;
justify-content: center;
}
.modal-buttons .btn {
padding: 8px 24px;
}