agentic-os/whatsapp-gateway/public/style.css

307 lines
5.7 KiB
CSS

:root {
--bg-color: #0f172a;
--card-bg: rgba(30, 41, 59, 0.7);
--border-color: rgba(255, 255, 255, 0.1);
--primary: #10b981;
--primary-hover: #059669;
--text-main: #f8fafc;
--text-muted: #94a3b8;
--sidebar-bg: rgba(15, 23, 42, 0.8);
--error: #ef4444;
--success: #10b981;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Inter', sans-serif;
}
body {
background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
color: var(--text-main);
min-height: 100vh;
display: flex;
}
/* Layout */
.app-container {
display: flex;
width: 100%;
min-height: 100vh;
}
.sidebar {
width: 260px;
background: var(--sidebar-bg);
backdrop-filter: blur(12px);
border-right: 1px solid var(--border-color);
padding: 2rem 1rem;
display: flex;
flex-direction: column;
gap: 2rem;
}
.brand {
display: flex;
align-items: center;
gap: 12px;
padding: 0 12px;
}
.logo {
width: 32px;
height: 32px;
background: var(--primary);
border-radius: 8px;
box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}
.brand h1 {
font-size: 1.1rem;
font-weight: 600;
color: #fff;
letter-spacing: -0.02em;
}
nav {
display: flex;
flex-direction: column;
gap: 8px;
}
.nav-btn {
background: transparent;
border: none;
color: var(--text-muted);
text-align: left;
padding: 12px 16px;
border-radius: 8px;
font-size: 0.95rem;
font-weight: 500;
cursor: pointer;
transition: all 0.2s ease;
}
.nav-btn:hover {
background: rgba(255, 255, 255, 0.05);
color: #fff;
}
.nav-btn.active {
background: rgba(16, 185, 129, 0.15);
color: var(--primary);
border-left: 3px solid var(--primary);
border-radius: 0 8px 8px 0;
}
.content {
flex: 1;
padding: 2rem 3rem;
overflow-y: auto;
}
.tab-pane {
display: none;
animation: fadeIn 0.3s ease;
}
.tab-pane.active {
display: block;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}
header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 2rem;
}
h2 {
font-size: 1.8rem;
font-weight: 600;
}
h3 {
font-size: 1.2rem;
font-weight: 500;
margin-bottom: 1rem;
color: #e2e8f0;
}
/* Glassmorphism Cards */
.card {
background: var(--card-bg);
backdrop-filter: blur(16px);
-webkit-backdrop-filter: blur(16px);
border: 1px solid var(--border-color);
border-radius: 16px;
padding: 2rem;
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}
.status-card {
display: grid;
grid-template-columns: 300px 1fr;
gap: 3rem;
align-items: start;
}
.qr-placeholder {
background: #fff;
border-radius: 12px;
padding: 1rem;
min-height: 250px;
display: flex;
align-items: center;
justify-content: center;
color: #333;
font-weight: 500;
text-align: center;
}
#qr-container img {
width: 100%;
height: auto;
border-radius: 8px;
}
.logs {
margin-top: 1.5rem;
background: #000;
border-radius: 8px;
padding: 1rem;
height: 150px;
overflow-y: auto;
font-family: monospace;
font-size: 0.85rem;
}
.log-entry { margin-bottom: 4px; }
.log-entry.system { color: #8b5cf6; }
.log-entry.info { color: #cbd5e1; }
.log-entry.success { color: var(--success); }
.badge {
padding: 6px 12px;
border-radius: 20px;
font-size: 0.85rem;
font-weight: 600;
letter-spacing: 0.5px;
text-transform: uppercase;
}
.badge.error { background: rgba(239, 68, 68, 0.2); color: var(--error); border: 1px solid rgba(239, 68, 68, 0.3); }
.badge.success { background: rgba(16, 185, 129, 0.2); color: var(--success); border: 1px solid rgba(16, 185, 129, 0.3); }
/* Buttons & Inputs */
.primary-btn {
background: var(--primary);
color: #fff;
border: none;
padding: 10px 20px;
border-radius: 8px;
font-weight: 500;
cursor: pointer;
transition: background 0.2s;
}
.primary-btn:hover { background: var(--primary-hover); }
.secondary-btn {
background: rgba(255,255,255,0.1);
color: #fff;
border: 1px solid var(--border-color);
padding: 6px 12px;
border-radius: 6px;
font-size: 0.85rem;
cursor: pointer;
transition: all 0.2s;
}
.secondary-btn:hover { background: rgba(255,255,255,0.2); }
.form-group {
margin-bottom: 1.5rem;
}
label {
display: block;
margin-bottom: 8px;
color: var(--text-muted);
font-size: 0.9rem;
}
input, textarea {
width: 100%;
background: rgba(0,0,0,0.2);
border: 1px solid var(--border-color);
border-radius: 8px;
padding: 12px;
color: #fff;
font-size: 1rem;
transition: border 0.2s;
}
input:focus, textarea:focus {
outline: none;
border-color: var(--primary);
}
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.text-center { text-align: center; }
/* Tables */
.data-table {
width: 100%;
border-collapse: collapse;
}
.data-table th, .data-table td {
padding: 1rem;
text-align: left;
border-bottom: 1px solid var(--border-color);
}
.data-table th {
color: var(--text-muted);
font-weight: 500;
font-size: 0.9rem;
}
/* Modal */
.modal {
display: none;
position: fixed;
top: 0; left: 0; width: 100%; height: 100%;
background: rgba(0,0,0,0.5);
backdrop-filter: blur(4px);
z-index: 100;
align-items: center;
justify-content: center;
}
.modal.active { display: flex; }
.modal-content {
width: 400px;
position: relative;
}
.close-modal {
position: absolute;
top: 1rem; right: 1rem;
font-size: 1.5rem;
cursor: pointer;
color: var(--text-muted);
}
.close-modal:hover { color: #fff; }