body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ef 100%);
    color: #222;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.dashboard-root {
    display: flex;
    min-height: 100vh;
    background: none;
}

.sidebar {
    width: 260px;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(16px) saturate(180%);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.10);
    border-right: 1px solid rgba(200,200,200,0.18);
    display: flex;
    flex-direction: column;
    transition: width 0.3s cubic-bezier(.4,0,.2,1);
    z-index: 10;
}
.sidebar.collapsed {
    width: 64px;
}
.sidebar-header {
    display: flex;
    align-items: center;
    padding: 28px 24px 18px 24px;
    gap: 12px;
}
.sidebar-logo {
    font-size: 2.2rem;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.08));
}
.sidebar-title {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #222;
    transition: opacity 0.3s;
}
.sidebar.collapsed .sidebar-title {
    opacity: 0;
}
.sidebar-toggle {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #888;
    cursor: pointer;
    border-radius: 8px;
    padding: 4px 8px;
    transition: background 0.2s;
}
.sidebar-toggle:hover {
    background: rgba(0,0,0,0.06);
}
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 18px;
    padding: 0 12px 12px 12px;
}
.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border-radius: 12px;
    color: #222;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.08rem;
    transition: background 0.2s, color 0.2s;
}
.nav-link.active, .nav-link:hover {
    background: rgba(0, 120, 255, 0.10);
    color: #007aff;
}
.nav-text {
    transition: opacity 0.3s;
}
.sidebar.collapsed .nav-text {
    opacity: 0;
}

.dashboard-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: none;
}
.dashboard-content {
    flex: 1;
    padding: 0 0 0 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: none;
}
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 32px;
    width: 100%;
    background: none;
}
.value-prop {
    margin: 48px 0 32px 0;
    text-align: center;
}
.headline {
    font-size: 2.6rem;
    font-weight: 800;
    color: #222;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}
.subheadline {
    font-size: 1.25rem;
    color: #555;
    margin-bottom: 32px;
    font-weight: 400;
}
.cta-btn {
    background: linear-gradient(90deg, #007aff 0%, #4f8cff 100%);
    color: #fff;
    border: none;
    border-radius: 14px;
    padding: 16px 38px;
    font-size: 1.18rem;
    font-weight: 700;
    box-shadow: 0 4px 24px 0 rgba(0,122,255,0.10);
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
}
.cta-btn:hover {
    background: linear-gradient(90deg, #0051a8 0%, #007aff 100%);
    box-shadow: 0 8px 32px 0 rgba(0,122,255,0.18);
    transform: translateY(-2px) scale(1.03);
}

.card-tabs-group {
    margin-top: 32px;
    background: none;
}
.dashboard-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    justify-content: center;
}
.tab-btn {
    background: rgba(255,255,255,0.6);
    border: none;
    border-radius: 12px 12px 0 0;
    padding: 12px 32px;
    font-size: 1.08rem;
    font-weight: 600;
    color: #222;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    box-shadow: 0 2px 8px 0 rgba(0,0,0,0.04);
}
.tab-btn.active, .tab-btn[aria-selected="true"] {
    background: rgba(0,122,255,0.12);
    color: #007aff;
    box-shadow: 0 4px 16px 0 rgba(0,122,255,0.10);
}
.tab-btn:hover:not(.active) {
    background: rgba(0,0,0,0.06);
}
.tab-panel {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(12px) saturate(180%);
    border-radius: 22px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.10);
    padding: 36px 32px 32px 32px;
  margin-bottom: 32px;
    transition: box-shadow 0.2s;
}

.modern-card {
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(16px) saturate(180%);
  border-radius: 22px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.10);
    padding: 32px 32px 24px 32px;
    margin-bottom: 24px;
    transition: box-shadow 0.2s;
}
.modern-card-header {
  display: flex;
  align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}
.modern-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #222;
}
.form-desc {
    color: #555;
    margin-bottom: 18px;
    font-size: 1.05rem;
}
.drag-drop-zone {
    background: rgba(240,245,255,0.7);
    border: 2px dashed #b6caff;
  border-radius: 14px;
    padding: 32px 0;
    text-align: center;
  margin-bottom: 18px;
  transition: border-color 0.2s, background 0.2s;
}
.drag-drop-zone:focus-within, .drag-drop-zone:hover {
    border-color: #007aff;
    background: rgba(220,235,255,0.8);
}
.drag-drop-text {
    font-size: 1.08rem;
    color: #007aff;
    font-weight: 600;
}
.drag-drop-subtext {
    font-size: 0.98rem;
    color: #888;
    margin-top: 4px;
}
.drag-input {
    opacity: 0;
    width: 0.1px;
    height: 0.1px;
    position: absolute;
    z-index: -1;
}
.modern-input {
  width: 100%;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1.5px solid #e0e7ef;
    background: rgba(255,255,255,0.7);
    font-size: 1.08rem;
  margin-bottom: 18px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.modern-input:focus {
    border-color: #007aff;
    box-shadow: 0 0 0 2px rgba(0,122,255,0.10);
  outline: none;
}
.modern-btn {
    background: linear-gradient(90deg, #007aff 0%, #4f8cff 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 14px 32px;
    font-size: 1.08rem;
  font-weight: 700;
    box-shadow: 0 4px 24px 0 rgba(0,122,255,0.10);
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
    margin-top: 8px;
}
.modern-btn:hover {
    background: linear-gradient(90deg, #0051a8 0%, #007aff 100%);
    box-shadow: 0 8px 32px 0 rgba(0,122,255,0.18);
    transform: translateY(-2px) scale(1.03);
}
.blue-btn {
    background: linear-gradient(90deg, #007aff 0%, #4f8cff 100%);
}
.purple-btn {
    background: linear-gradient(90deg, #a259ff 0%, #6e32ff 100%);
  }
.status-inline {
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
    background: rgba(0,122,255,0.08);
    color: #007aff;
  }
.status-inline.status-success {
    background: rgba(52,199,89,0.10);
    color: #34c759;
  }
.status-inline.status-error {
    background: rgba(255,59,48,0.10);
    color: #ff3b30;
}
.status-inline.status-info {
    background: rgba(0,122,255,0.10);
    color: #007aff;
}
.trust-block {
    margin-top: 18px;
    text-align: center;
    color: #888;
    font-size: 0.98rem;
}
.testimonial {
    font-style: italic;
    color: #555;
    margin-bottom: 6px;
}
.testimonial-author {
    color: #007aff;
    font-weight: 600;
}
.privacy-note {
    color: #888;
    font-size: 0.95rem;
}
.support-vote-btn {
    background: rgba(0,122,255,0.10);
    color: #007aff;
    border: none;
    border-radius: 10px;
    padding: 10px 22px;
    font-size: 1.05rem;
    font-weight: 600;
    margin-top: 18px;
  cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.support-vote-btn:hover {
    background: rgba(0,122,255,0.18);
    color: #0051a8;
}
.dashboard-footer {
    text-align: center;
    color: #888;
    font-size: 1rem;
    padding: 32px 0 18px 0;
    background: none;
}
.dashboard-footer a {
    color: #007aff;
    text-decoration: underline;
    transition: color 0.2s;
}
.dashboard-footer a:hover {
    color: #0051a8;
  }
.modal {
  display: none;
  position: fixed;
    z-index: 1000;
    left: 0; top: 0; right: 0; bottom: 0;
    background: rgba(30, 34, 40, 0.18);
  align-items: center;
  justify-content: center;
    backdrop-filter: blur(4px);
}
.modal-content {
    background: rgba(255,255,255,0.85);
  border-radius: 18px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.10);
    padding: 38px 32px 32px 32px;
    min-width: 320px;
  max-width: 95vw;
    outline: none;
}
.close-modal {
  background: none;
  border: none;
  font-size: 2rem;
    color: #888;
    position: absolute;
    top: 18px;
    right: 24px;
  cursor: pointer;
  border-radius: 8px;
    transition: background 0.2s;
}
.close-modal:hover {
    background: rgba(0,0,0,0.06);
}
@media (max-width: 900px) {
  .sidebar {
        width: 64px;
  }
    .sidebar-title, .nav-text {
        display: none;
}
    .container {
        padding: 0 8px;
}
    .tab-panel, .modern-card {
        padding: 18px 8px 18px 8px;
  }
}
@media (max-width: 600px) {
    .dashboard-root {
        flex-direction: column;
  }
    .sidebar {
        width: 100vw;
        flex-direction: row;
        border-right: none;
        border-bottom: 1px solid rgba(200,200,200,0.18);
        box-shadow: 0 2px 8px 0 rgba(31, 38, 135, 0.10);
}
    .sidebar-header {
        padding: 18px 8px 12px 8px;
}
    .dashboard-main {
        padding-top: 0;
}
    .container {
        padding: 0 2vw;
    }
    .tab-panel, .modern-card {
        padding: 12px 2vw 12px 2vw;
  }
    .dashboard-tabs {
        flex-direction: column;
        gap: 4px;
  }
}

/* Toast Notifications */
#toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10001;
    pointer-events: none;
}

.toast {
    background: #333;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    pointer-events: auto;
    max-width: 400px;
    word-wrap: break-word;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.success {
    background: #4caf50;
}

.toast.error {
    background: #f44336;
}

.toast.info {
    background: #2196f3;
}

.toast.warning {
    background: #ff9800;
}

/* Connection Status Bar */
.connection-status-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 8px 0;
    transition: all 0.3s ease;
}

.connection-status-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 500;
}

.connection-status-bar.connected {
    background: rgba(76, 175, 80, 0.1);
    border-bottom-color: #4caf50;
}

.connection-status-bar.disconnected {
    background: rgba(244, 67, 54, 0.1);
    border-bottom-color: #f44336;
}

.connection-status-bar.checking {
    background: rgba(255, 193, 7, 0.1);
    border-bottom-color: #ffc107;
}

/* Server Status Info */
.server-status-info {
    background: rgba(0, 122, 255, 0.05);
    border: 1px solid rgba(0, 122, 255, 0.2);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.server-status-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.server-status-item:last-child {
    margin-bottom: 0;
}

.status-icon {
    font-size: 1rem;
}

.status-text {
    color: #333;
    font-weight: 500;
}

/* FPS Control */
.fps-control {
    margin-bottom: 16px;
}

.fps-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e1e5e9;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    margin-bottom: 8px;
}

.fps-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #007aff;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.fps-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #007aff;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#fps-value {
    display: block;
    text-align: center;
    font-weight: 600;
    color: #007aff;
    margin-bottom: 8px;
}

.fps-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #666;
}

/* Progress Bar */
.progress-container {
    margin: 16px 0;
    padding: 16px;
    background: rgba(0, 122, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(0, 122, 255, 0.2);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e1e5e9;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #007aff 0%, #4f8cff 100%);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 4px;
}

.progress-text {
    text-align: center;
    font-size: 0.9rem;
    color: #007aff;
    font-weight: 500;
}

/* Enhanced Button States */
.modern-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.modern-btn .btn-text {
    transition: opacity 0.2s ease;
}

.modern-btn:disabled .btn-text {
    opacity: 0.7;
}

/* File Validation Styles */
.file-validation {
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    display: none;
}

.file-validation.valid {
    background: rgba(76, 175, 80, 0.1);
    color: #2e7d32;
    border: 1px solid rgba(76, 175, 80, 0.3);
    display: block;
}

.file-validation.invalid {
    background: rgba(244, 67, 54, 0.1);
    color: #c62828;
    border: 1px solid rgba(244, 67, 54, 0.3);
    display: block;
}

.file-validation.warning {
    background: rgba(255, 193, 7, 0.1);
    color: #f57f17;
    border: 1px solid rgba(255, 193, 7, 0.3);
    display: block;
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Enhanced Form Validation */
.modern-input:invalid,
.modern-input.error {
    border-color: #f44336;
    box-shadow: 0 0 0 2px rgba(244, 67, 54, 0.2);
}

.modern-input:valid {
    border-color: #4caf50;
}

/* Activity Tracking Styles */
.activity-list {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 16px;
}

.activity-item {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.activity-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.activity-item.status-completed {
    border-left: 4px solid #4caf50;
    background: rgba(76, 175, 80, 0.02);
}

.activity-item.status-processing {
    border-left: 4px solid #ff9800;
    background: rgba(255, 152, 0, 0.02);
}

.activity-item.status-failed {
    border-left: 4px solid #f44336;
    background: rgba(244, 67, 54, 0.02);
}

.activity-item.status-cancelled {
    border-left: 4px solid #9e9e9e;
    background: rgba(158, 158, 158, 0.02);
}

.activity-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.activity-icon {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.activity-info {
    flex: 1;
}

.activity-title {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.activity-time {
    font-size: 0.8rem;
    color: #666;
}

.activity-status {
    display: flex;
    align-items: center;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
}

.status-badge.status-completed {
    background: rgba(76, 175, 80, 0.1);
    color: #2e7d32;
}

.status-badge.status-processing {
    background: rgba(255, 152, 0, 0.1);
    color: #f57f17;
}

.status-badge.status-failed {
    background: rgba(244, 67, 54, 0.1);
    color: #c62828;
}

.status-badge.status-cancelled {
    background: rgba(158, 158, 158, 0.1);
    color: #616161;
}

.activity-details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.detail-item {
    background: rgba(0, 122, 255, 0.1);
    color: #007aff;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.activity-result {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 6px;
    margin-top: 8px;
}

.result-icon {
    font-size: 0.9rem;
}

.result-text {
    font-size: 0.85rem;
    color: #2e7d32;
    font-weight: 500;
}

.activity-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 12px;
    border-top: 1px solid #e1e5e9;
}

.small-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
    background: #f5f5f5;
    color: #666;
    border: 1px solid #e1e5e9;
}

.small-btn:hover {
    background: #e8e8e8;
    color: #333;
}

/* Empty Activity State */
.empty-activity {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-activity p {
    margin: 8px 0;
    font-size: 1rem;
}

.empty-subtitle {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .connection-status-bar {
        padding: 6px 0;
    }
    
    .connection-status-content {
        font-size: 0.8rem;
    }
    
    .fps-labels {
        font-size: 0.75rem;
    }
    
    .progress-container {
        padding: 12px;
    }
    
    .server-status-info {
        padding: 10px;
        font-size: 0.85rem;
    }
    
    .activity-item {
        padding: 12px;
    }
    
    .activity-details {
        flex-direction: column;
        gap: 4px;
    }
    
    .detail-item {
        font-size: 0.75rem;
    }
}

/* Animation for status changes */
.server-status-info {
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced drag and drop feedback */
.drag-drop-zone.valid {
    border-color: #4caf50;
    background: rgba(76, 175, 80, 0.05);
}

.drag-drop-zone.invalid {
    border-color: #f44336;
    background: rgba(244, 67, 54, 0.05);
}

.drag-drop-zone.warning {
    border-color: #ff9800;
    background: rgba(255, 152, 0, 0.05);
}