Files
webclone/web-interface/public/styles-new.css
T
2025-12-25 12:02:07 -03:00

741 lines
13 KiB
CSS

/* Reset e Variáveis */
:root {
--primary-color: #667eea;
--secondary-color: #764ba2;
--success-color: #43e97b;
--danger-color: #f5576c;
--warning-color: #ffa726;
--info-color: #4facfe;
--bg-primary: #f8f9fa;
--bg-secondary: #ffffff;
--bg-sidebar: #1a1d29;
--text-primary: #2d3748;
--text-secondary: #718096;
--text-light: #a0aec0;
--border-color: #e2e8f0;
--shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
--shadow-md: 0 4px 6px rgba(0,0,0,0.07);
--shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
--sidebar-width: 260px;
--header-height: 70px;
--transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
background: var(--bg-primary);
color: var(--text-primary);
line-height: 1.6;
display: flex;
min-height: 100vh;
}
/* Sidebar */
.sidebar {
width: var(--sidebar-width);
background: var(--bg-sidebar);
color: white;
display: flex;
flex-direction: column;
position: fixed;
height: 100vh;
left: 0;
top: 0;
z-index: 1000;
}
.logo {
padding: 2rem 1.5rem;
display: flex;
align-items: center;
gap: 1rem;
border-bottom: 1px solid rgba(255,255,255,0.1);
}
.logo i {
font-size: 2rem;
background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.logo h1 {
font-size: 1.5rem;
font-weight: 700;
}
.nav-menu {
flex: 1;
padding: 1.5rem 0;
}
.nav-item {
display: flex;
align-items: center;
gap: 1rem;
padding: 1rem 1.5rem;
color: rgba(255,255,255,0.7);
text-decoration: none;
transition: var(--transition);
position: relative;
}
.nav-item:hover {
background: rgba(255,255,255,0.05);
color: white;
}
.nav-item.active {
background: rgba(102, 126, 234, 0.1);
color: white;
}
.nav-item.active::before {
content: '';
position: absolute;
left: 0;
top: 0;
bottom: 0;
width: 4px;
background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}
.nav-item i {
font-size: 1.2rem;
width: 24px;
}
.sidebar-footer {
padding: 1.5rem;
border-top: 1px solid rgba(255,255,255,0.1);
}
.theme-toggle {
display: flex;
align-items: center;
gap: 1rem;
color: rgba(255,255,255,0.7);
}
.switch {
position: relative;
display: inline-block;
width: 50px;
height: 24px;
}
.switch input {
opacity: 0;
width: 0;
height: 0;
}
.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(255,255,255,0.2);
transition: var(--transition);
border-radius: 24px;
}
.slider:before {
position: absolute;
content: "";
height: 18px;
width: 18px;
left: 3px;
bottom: 3px;
background-color: white;
transition: var(--transition);
border-radius: 50%;
}
input:checked + .slider {
background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}
input:checked + .slider:before {
transform: translateX(26px);
}
/* Main Content */
.main-content {
margin-left: var(--sidebar-width);
flex: 1;
display: flex;
flex-direction: column;
}
/* Header */
.header {
height: var(--header-height);
background: var(--bg-secondary);
border-bottom: 1px solid var(--border-color);
padding: 0 2rem;
display: flex;
align-items: center;
justify-content: space-between;
box-shadow: var(--shadow-sm);
}
.header h2 {
font-size: 1.5rem;
font-weight: 600;
}
.status-indicator {
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.5rem 1rem;
background: var(--bg-primary);
border-radius: 20px;
}
.status-dot {
width: 8px;
height: 8px;
border-radius: 50%;
background: var(--text-light);
animation: pulse 2s infinite;
}
.status-indicator.online .status-dot {
background: var(--success-color);
}
.status-indicator.offline .status-dot {
background: var(--danger-color);
}
@keyframes pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.5; }
}
/* Pages */
.page {
display: none;
padding: 2rem;
flex: 1;
overflow-y: auto;
}
.page.active {
display: block;
}
/* Stats Grid */
.stats-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 1.5rem;
margin-bottom: 2rem;
}
.stat-card {
background: var(--bg-secondary);
border-radius: 12px;
padding: 1.5rem;
display: flex;
align-items: center;
gap: 1.5rem;
box-shadow: var(--shadow-md);
transition: var(--transition);
}
.stat-card:hover {
transform: translateY(-4px);
box-shadow: var(--shadow-lg);
}
.stat-icon {
width: 60px;
height: 60px;
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.5rem;
color: white;
}
.stat-content h3 {
font-size: 2rem;
font-weight: 700;
margin-bottom: 0.25rem;
}
.stat-content p {
color: var(--text-secondary);
font-size: 0.9rem;
}
/* Section Header */
.section-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 1.5rem;
}
.section-header h3 {
font-size: 1.25rem;
font-weight: 600;
}
.header-actions {
display: flex;
gap: 0.5rem;
}
/* Recent Clones */
.recent-clones {
background: var(--bg-secondary);
border-radius: 12px;
padding: 1.5rem;
box-shadow: var(--shadow-md);
}
.clones-list {
display: grid;
gap: 1rem;
}
.clone-item {
display: flex;
align-items: center;
justify-content: space-between;
padding: 1rem;
background: var(--bg-primary);
border-radius: 8px;
transition: var(--transition);
}
.clone-item:hover {
background: #e8eaf0;
}
.clone-info {
display: flex;
align-items: center;
gap: 1rem;
flex: 1;
}
.clone-icon {
width: 48px;
height: 48px;
border-radius: 8px;
background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
display: flex;
align-items: center;
justify-content: center;
color: white;
font-size: 1.2rem;
}
.clone-details h4 {
font-size: 1rem;
font-weight: 600;
margin-bottom: 0.25rem;
}
.clone-details p {
font-size: 0.85rem;
color: var(--text-secondary);
}
.clone-actions {
display: flex;
gap: 0.5rem;
}
/* Form */
.clone-form-container {
max-width: 800px;
margin: 0 auto;
}
.form-card {
background: var(--bg-secondary);
border-radius: 12px;
padding: 2rem;
box-shadow: var(--shadow-md);
margin-bottom: 2rem;
}
.form-card h3 {
font-size: 1.5rem;
font-weight: 600;
margin-bottom: 0.5rem;
}
.form-description {
color: var(--text-secondary);
margin-bottom: 2rem;
}
.form-group {
margin-bottom: 1.5rem;
}
.form-group label {
display: block;
font-weight: 500;
margin-bottom: 0.5rem;
color: var(--text-primary);
}
.form-group label i {
margin-right: 0.5rem;
color: var(--primary-color);
}
.form-control {
width: 100%;
padding: 0.75rem 1rem;
border: 2px solid var(--border-color);
border-radius: 8px;
font-size: 1rem;
transition: var(--transition);
background: var(--bg-primary);
}
.form-control:focus {
outline: none;
border-color: var(--primary-color);
background: white;
}
.advanced-options {
background: var(--bg-primary);
padding: 1rem;
border-radius: 8px;
}
.option-row {
display: flex;
gap: 2rem;
margin-bottom: 0.75rem;
}
.option-row:last-child {
margin-bottom: 0;
}
.checkbox-label {
display: flex;
align-items: center;
gap: 0.5rem;
cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
width: 18px;
height: 18px;
cursor: pointer;
}
.slider-container {
display: flex;
align-items: center;
gap: 1rem;
margin-bottom: 0.5rem;
}
.slider-input {
flex: 1;
height: 6px;
border-radius: 3px;
background: var(--border-color);
outline: none;
-webkit-appearance: none;
}
.slider-input::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
width: 20px;
height: 20px;
border-radius: 50%;
background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
cursor: pointer;
}
.slider-value {
min-width: 80px;
text-align: right;
font-weight: 600;
color: var(--primary-color);
}
.form-group small {
display: block;
margin-top: 0.5rem;
color: var(--text-secondary);
font-size: 0.85rem;
}
/* Buttons */
.btn {
padding: 0.75rem 1.5rem;
border: none;
border-radius: 8px;
font-size: 1rem;
font-weight: 500;
cursor: pointer;
transition: var(--transition);
display: inline-flex;
align-items: center;
gap: 0.5rem;
text-decoration: none;
}
.btn-primary {
background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
color: white;
}
.btn-primary:hover {
transform: translateY(-2px);
box-shadow: 0 8px 16px rgba(102, 126, 234, 0.3);
}
.btn-secondary {
background: var(--bg-primary);
color: var(--text-primary);
}
.btn-secondary:hover {
background: #e2e8f0;
}
.btn-danger {
background: var(--danger-color);
color: white;
}
.btn-danger:hover {
background: #e04560;
}
.btn-sm {
padding: 0.5rem 1rem;
font-size: 0.9rem;
}
.btn-lg {
padding: 1rem 2rem;
font-size: 1.1rem;
}
.form-actions {
display: flex;
justify-content: center;
margin-top: 2rem;
}
/* Progress Card */
.progress-card {
background: var(--bg-secondary);
border-radius: 12px;
padding: 2rem;
box-shadow: var(--shadow-md);
}
.progress-card h3 {
font-size: 1.25rem;
font-weight: 600;
margin-bottom: 1.5rem;
}
.progress-status {
display: flex;
align-items: center;
gap: 1rem;
margin-bottom: 1rem;
color: var(--primary-color);
font-weight: 500;
}
.progress-bar-container {
height: 8px;
background: var(--bg-primary);
border-radius: 4px;
overflow: hidden;
margin-bottom: 1rem;
}
.progress-bar {
height: 100%;
background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
width: 0%;
transition: width 0.3s ease;
}
.progress-stats {
display: flex;
justify-content: space-around;
padding-top: 1rem;
border-top: 1px solid var(--border-color);
}
.progress-stats span {
display: flex;
align-items: center;
gap: 0.5rem;
color: var(--text-secondary);
}
.progress-stats i {
color: var(--primary-color);
}
/* History */
.history-list {
display: grid;
gap: 1rem;
}
.history-item {
background: var(--bg-secondary);
border-radius: 12px;
padding: 1.5rem;
box-shadow: var(--shadow-md);
display: flex;
align-items: center;
justify-content: space-between;
}
.history-info {
flex: 1;
}
.history-info h4 {
font-size: 1.1rem;
font-weight: 600;
margin-bottom: 0.5rem;
}
.history-meta {
display: flex;
gap: 1.5rem;
color: var(--text-secondary);
font-size: 0.9rem;
}
.history-meta span {
display: flex;
align-items: center;
gap: 0.5rem;
}
/* Settings */
.settings-container {
max-width: 900px;
margin: 0 auto;
}
.settings-section {
background: var(--bg-secondary);
border-radius: 12px;
padding: 2rem;
box-shadow: var(--shadow-md);
margin-bottom: 2rem;
}
.settings-section h3 {
font-size: 1.25rem;
font-weight: 600;
margin-bottom: 1.5rem;
display: flex;
align-items: center;
gap: 0.75rem;
}
.setting-item {
padding: 1.5rem 0;
border-bottom: 1px solid var(--border-color);
}
.setting-item:last-child {
border-bottom: none;
}
.setting-info h4 {
font-size: 1rem;
font-weight: 600;
margin-bottom: 0.25rem;
}
.setting-info p {
color: var(--text-secondary);
font-size: 0.9rem;
margin-bottom: 1rem;
}
.setting-control {
display: flex;
gap: 0.5rem;
}
.settings-actions {
display: flex;
gap: 1rem;
justify-content: center;
}
/* Responsive */
@media (max-width: 768px) {
.sidebar {
transform: translateX(-100%);
}
.main-content {
margin-left: 0;
}
.stats-grid {
grid-template-columns: 1fr;
}
.option-row {
flex-direction: column;
gap: 0.75rem;
}
}
/* Empty State */
.empty-state {
text-align: center;
padding: 3rem;
color: var(--text-secondary);
}
.empty-state i {
font-size: 4rem;
margin-bottom: 1rem;
opacity: 0.3;
}
.empty-state h3 {
font-size: 1.25rem;
margin-bottom: 0.5rem;
}