/**
* Professional Popup Styles - Modern Clean Design
*/
/* Reset and Base */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: #333;
min-width: 380px;
max-width: 420px;
font-size: 14px;
line-height: 1.5;
}
.container {
background: white;
border-radius: 12px;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
overflow: hidden;
position: relative;
}
/* Header */
.header {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
padding: 16px 20px;
display: flex;
justify-content: space-between;
align-items: center;
}
.logo {
display: flex;
align-items: center;
gap: 8px;
font-weight: 600;
font-size: 16px;
}
.version {
font-size: 12px;
opacity: 0.8;
background: rgba(255, 255, 255, 0.2);
padding: 2px 8px;
border-radius: 12px;
}
/* Status Section */
.status-section {
padding: 20px;
border-bottom: 1px solid #f0f0f0;
}
.status {
padding: 12px 16px;
border-radius: 8px;
font-weight: 600;
text-align: center;
margin-bottom: 8px;
transition: all 0.3s ease;
}
.status.connected {
background: #d4edda;
color: #155724;
border: 1px solid #c3e6cb;
}
.status.disconnected {
background: #f8d7da;
color: #721c24;
border: 1px solid #f5c6cb;
}
.status.connecting {
background: #fff3cd;
color: #856404;
border: 1px solid #ffeaa7;
animation: pulse 1.5s infinite;
}
.status.error {
background: #f5c6cb;
color: #721c24;
border: 1px solid #f1b0b7;
}
@keyframes pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.7; }
}
.status-details {
text-align: center;
color: #666;
font-size: 12px;
}
/* Connected Info Section */
.connected-info {
padding: 20px;
}
.disconnect-button {
width: 100%;
padding: 12px 20px;
background: #6c757d;
color: white;
border: none;
border-radius: 8px;
font-size: 14px;
font-weight: 600;
cursor: pointer;
transition: all 0.2s ease;
display: flex;
align-items: center;
justify-content: center;
}
.disconnect-button:hover {
background: #5a6268;
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}
.disconnect-button:active {
transform: translateY(0);
}
/* Connection Section */
.connection-section {
padding: 20px;
}
.input-group {
margin-bottom: 16px;
}
.input-group label {
display: block;
font-weight: 500;
margin-bottom: 6px;
color: #555;
font-size: 13px;
}
.input-wrapper {
display: flex;
gap: 8px;
}
.ws-input {
flex: 1;
padding: 10px 12px;
border: 2px solid #e1e5e9;
border-radius: 6px;
font-size: 14px;
font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
transition: all 0.2s ease;
}
.ws-input:focus {
outline: none;
border-color: #667eea;
box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}
.ws-input:invalid {
border-color: #dc3545;
}
.help-button {
background: #f8f9fa;
border: 1px solid #dee2e6;
border-radius: 6px;
padding: 8px;
cursor: pointer;
transition: all 0.2s ease;
display: flex;
align-items: center;
justify-content: center;
}
.help-button:hover {
background: #e9ecef;
border-color: #adb5bd;
}
.connect-button {
width: 100%;
padding: 12px 20px;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
border: none;
border-radius: 8px;
font-size: 14px;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
position: relative;
overflow: hidden;
}
.connect-button:hover:not(:disabled) {
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}
.connect-button:active:not(:disabled) {
transform: translateY(0);
}
.connect-button:disabled {
opacity: 0.6;
cursor: not-allowed;
transform: none;
box-shadow: none;
}
.connect-button:disabled::after {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
animation: loading 1.5s infinite;
}
@keyframes loading {
0% { left: -100%; }
100% { left: 100%; }
}
/* Tabs Section */
.tabs-section {
padding: 0 20px 20px;
border-top: 1px solid #f0f0f0;
}
.tabs-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 12px;
padding-top: 16px;
}
.tabs-header h4 {
font-size: 14px;
font-weight: 600;
color: #333;
}
.connection-info small {
color: #666;
font-size: 11px;
}
.tabs-grid {
display: flex;
flex-direction: column;
gap: 8px;
max-height: 200px;
overflow-y: auto;
}
.tab-item {
display: flex;
align-items: center;
padding: 10px 12px;
background: #f8f9fa;
border: 1px solid #e9ecef;
border-radius: 6px;
cursor: pointer;
transition: all 0.2s ease;
}
.tab-item:hover {
background: #e9ecef;
border-color: #dee2e6;
}
.tab-item.connected {
background: #d4edda;
border-color: #c3e6cb;
}
.tab-icon {
width: 16px;
height: 16px;
margin-right: 10px;
display: flex;
align-items: center;
justify-content: center;
}
.tab-icon img {
width: 16px;
height: 16px;
border-radius: 2px;
}
.default-favicon {
font-size: 12px;
opacity: 0.6;
}
.tab-info {
flex: 1;
min-width: 0;
}
.tab-title {
font-weight: 500;
color: #333;
font-size: 13px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.tab-url {
color: #666;
font-size: 11px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.tab-status {
display: flex;
align-items: center;
}
.status-indicator {
width: 8px;
height: 8px;
border-radius: 50%;
background: #dc3545;
}
.status-indicator.connected {
background: #28a745;
animation: blink 2s infinite;
}
@keyframes blink {
0%, 100% { opacity: 1; }
50% { opacity: 0.5; }
}
/* Footer */
.footer {
background: #f8f9fa;
padding: 12px 20px;
border-top: 1px solid #e9ecef;
}
.footer-links {
display: flex;
justify-content: center;
gap: 16px;
}
.footer-link {
color: #6c757d;
text-decoration: none;
font-size: 12px;
transition: color 0.2s ease;
}
.footer-link:hover {
color: #667eea;
}
/* Modal */
.modal {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
display: flex;
align-items: center;
justify-content: center;
z-index: 1000;
}
.modal-content {
background: white;
border-radius: 8px;
max-width: 400px;
width: 90%;
max-height: 80vh;
overflow-y: auto;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.modal-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 16px 20px;
border-bottom: 1px solid #e9ecef;
}
.modal-header h3 {
margin: 0;
font-size: 16px;
font-weight: 600;
}
.modal-close {
background: none;
border: none;
font-size: 20px;
cursor: pointer;
color: #6c757d;
padding: 0;
width: 24px;
height: 24px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 4px;
transition: all 0.2s ease;
}
.modal-close:hover {
background: #f8f9fa;
color: #495057;
}
.modal-body {
padding: 20px;
}
.modal-body h4 {
margin: 16px 0 8px 0;
font-size: 14px;
font-weight: 600;
color: #333;
}
.modal-body h4:first-child {
margin-top: 0;
}
.modal-body code {
background: #f8f9fa;
padding: 2px 6px;
border-radius: 3px;
font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
font-size: 12px;
color: #e83e8c;
}
.modal-body ul {
margin: 8px 0 16px 16px;
color: #666;
}
.modal-body li {
margin: 4px 0;
font-size: 13px;
}
.modal-body strong {
color: #333;
}
/* Scrollbar Styling */
.tabs-grid::-webkit-scrollbar {
width: 6px;
}
.tabs-grid::-webkit-scrollbar-track {
background: #f1f1f1;
border-radius: 3px;
}
.tabs-grid::-webkit-scrollbar-thumb {
background: #c1c1c1;
border-radius: 3px;
}
.tabs-grid::-webkit-scrollbar-thumb:hover {
background: #a8a8a8;
}
/* Responsive Design */
@media (max-width: 400px) {
body {
min-width: 340px;
}
.header {
padding: 12px 16px;
}
.status-section,
.connection-section {
padding: 16px;
}
.tabs-section {
padding: 0 16px 16px;
}
.footer-links {
gap: 12px;
}
}
/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
.container {
background: #2d3748;
color: #e2e8f0;
}
.status-section {
border-bottom-color: #4a5568;
}
.connection-section {
/* Adjust colors if needed */
}
.tabs-section {
border-top-color: #4a5568;
}
.tab-item {
background: #4a5568;
border-color: #718096;
}
.tab-item:hover {
background: #718096;
border-color: #a0aec0;
}
.footer {
background: #4a5568;
border-top-color: #718096;
}
}