botplugin/popup.css

465 lines
7.7 KiB
CSS

/* General Bots - Popup Styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
:root {
--primary: #3b82f6;
--primary-hover: #2563eb;
--secondary: #64748b;
--success: #22c55e;
--warning: #f59e0b;
--error: #ef4444;
--bg-dark: #1e293b;
--bg-darker: #0f172a;
--bg-card: #334155;
--text-primary: #f1f5f9;
--text-secondary: #94a3b8;
--border: #475569;
--radius: 8px;
--radius-lg: 12px;
--shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
--transition: all 0.2s ease;
}
body {
width: 360px;
min-height: 480px;
font-family:
-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
Cantarell, sans-serif;
background: var(--bg-dark);
color: var(--text-primary);
font-size: 14px;
line-height: 1.5;
}
.container {
display: flex;
flex-direction: column;
padding: 0;
}
/* Header */
.header {
display: flex;
align-items: center;
gap: 12px;
padding: 16px 20px;
background: linear-gradient(135deg, var(--primary), var(--primary-hover));
}
.header img {
width: 40px;
height: 40px;
border-radius: var(--radius);
background: rgba(255, 255, 255, 0.1);
padding: 4px;
}
.header-text {
flex: 1;
}
.header h1 {
font-size: 18px;
font-weight: 600;
color: white;
}
.header .version {
font-size: 11px;
color: rgba(255, 255, 255, 0.7);
margin-top: 2px;
}
/* Status Bar */
.status-bar {
display: flex;
align-items: center;
gap: 8px;
padding: 10px 20px;
background: var(--bg-darker);
font-size: 12px;
}
.status-dot {
width: 8px;
height: 8px;
border-radius: 50%;
background: var(--secondary);
transition: var(--transition);
}
.status-bar.connected .status-dot {
background: var(--success);
box-shadow: 0 0 8px var(--success);
}
.status-bar.disconnected .status-dot {
background: var(--error);
}
.status-text {
color: var(--text-secondary);
}
/* Sections */
.section {
padding: 16px 20px;
border-bottom: 1px solid var(--border);
}
.section h3 {
font-size: 13px;
font-weight: 600;
margin-bottom: 12px;
color: var(--text-primary);
}
.section .description {
font-size: 12px;
color: var(--text-secondary);
margin-bottom: 16px;
}
/* Auth Section */
.auth-section {
background: rgba(59, 130, 246, 0.05);
}
.input-group {
margin-bottom: 12px;
}
.input-group label {
display: block;
font-size: 12px;
font-weight: 500;
margin-bottom: 6px;
color: var(--text-secondary);
}
.input-group input {
width: 100%;
padding: 10px 12px;
background: var(--bg-darker);
border: 1px solid var(--border);
border-radius: var(--radius);
color: var(--text-primary);
font-size: 14px;
transition: var(--transition);
}
.input-group input:focus {
outline: none;
border-color: var(--primary);
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}
.input-group input.error {
border-color: var(--error);
}
.input-group small {
display: block;
font-size: 11px;
color: var(--text-secondary);
margin-top: 4px;
}
.input-group small.error-text {
color: var(--error);
}
/* Settings */
.settings-section {
padding-bottom: 8px;
}
.setting-item {
display: flex;
align-items: center;
justify-content: space-between;
padding: 10px 0;
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.setting-item:last-child {
border-bottom: none;
}
.setting-info {
flex: 1;
}
.setting-label {
display: block;
font-size: 13px;
font-weight: 500;
color: var(--text-primary);
}
.setting-hint {
display: block;
font-size: 11px;
color: var(--text-secondary);
margin-top: 2px;
}
.input-small {
width: 100%;
padding: 8px 10px;
background: var(--bg-darker);
border: 1px solid var(--border);
border-radius: var(--radius);
color: var(--text-primary);
font-size: 12px;
margin-top: 8px;
}
.input-small:focus {
outline: none;
border-color: var(--primary);
}
/* Toggle Switch */
.switch {
position: relative;
width: 44px;
height: 24px;
flex-shrink: 0;
}
.switch input {
opacity: 0;
width: 0;
height: 0;
}
.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: var(--secondary);
transition: var(--transition);
}
.slider.round {
border-radius: 24px;
}
.slider:before {
position: absolute;
content: "";
height: 18px;
width: 18px;
left: 3px;
bottom: 3px;
background: white;
transition: var(--transition);
border-radius: 50%;
}
input:checked + .slider {
background: var(--primary);
}
input:checked + .slider:before {
transform: translateX(20px);
}
input:focus + .slider {
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}
/* Stats Section */
.stats-section {
background: var(--bg-darker);
}
.stats-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 12px;
}
.stat-item {
text-align: center;
padding: 12px 8px;
background: var(--bg-card);
border-radius: var(--radius);
}
.stat-value {
display: block;
font-size: 20px;
font-weight: 700;
color: var(--primary);
}
.stat-label {
display: block;
font-size: 10px;
color: var(--text-secondary);
margin-top: 4px;
}
/* Actions */
.actions {
display: flex;
gap: 10px;
padding: 16px 20px;
}
/* Buttons */
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
padding: 10px 16px;
border: none;
border-radius: var(--radius);
font-size: 13px;
font-weight: 500;
cursor: pointer;
transition: var(--transition);
flex: 1;
}
.btn-icon {
font-size: 14px;
}
.btn-primary {
background: var(--primary);
color: white;
}
.btn-primary:hover {
background: var(--primary-hover);
}
.btn-primary:disabled {
background: var(--secondary);
cursor: not-allowed;
}
.btn-secondary {
background: var(--bg-card);
color: var(--text-primary);
border: 1px solid var(--border);
}
.btn-secondary:hover {
background: var(--bg-darker);
}
.btn-success {
background: var(--success) !important;
}
.btn-error {
background: var(--error) !important;
}
/* Footer */
.footer {
padding: 12px 20px;
text-align: center;
border-top: 1px solid var(--border);
}
.footer .copyright {
font-size: 11px;
color: var(--text-secondary);
}
.footer a {
color: var(--primary);
text-decoration: none;
}
.footer a:hover {
text-decoration: underline;
}
/* Notification */
.popup-notification {
position: fixed;
bottom: 20px;
left: 20px;
right: 20px;
padding: 12px 16px;
background: var(--bg-card);
border-radius: var(--radius);
font-size: 13px;
text-align: center;
box-shadow: var(--shadow);
animation: slideUp 0.3s ease;
z-index: 1000;
}
.popup-notification.success {
background: var(--success);
color: white;
}
.popup-notification.error {
background: var(--error);
color: white;
}
.popup-notification.warning {
background: var(--warning);
color: var(--bg-dark);
}
.popup-notification.fade-out {
animation: fadeOut 0.3s ease forwards;
}
@keyframes slideUp {
from {
transform: translateY(20px);
opacity: 0;
}
to {
transform: translateY(0);
opacity: 1;
}
}
@keyframes fadeOut {
from {
opacity: 1;
}
to {
opacity: 0;
}
}
/* Scrollbar */
::-webkit-scrollbar {
width: 6px;
}
::-webkit-scrollbar-track {
background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
background: var(--secondary);
border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
background: var(--text-secondary);
}