* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: var(--text);
    line-height: 1.6;
    background-color: #f9fafb;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-light);
}

ul {
    list-style: none;
}

.gradient-text {
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

/* Help Page Specific Styles */
.help-container {
    display: flex;
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

.help-sidebar {
    width: 280px;
    background-color: white;
    border-right: 1px solid var(--bg-light);
    position: fixed;
    top: 80px;
    left: 0;
    height: calc(100vh - 80px);
    overflow-y: auto;
    z-index: 100;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--bg-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.mobile-sidebar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
}

.sidebar-content {
    padding: 1.5rem;
}

.sidebar-search {
    margin-bottom: 1.5rem;
}

.sidebar-search input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--primary-ultra-light);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
}

.nav-group {
    margin-bottom: 1.5rem;
}

.nav-group-title {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    letter-spacing: 0.5px;
}

.nav-items {
    margin-left: 0.5rem;
}

.nav-link {
    display: block;
    padding: 0.5rem 0;
    color: var(--text);
    font-size: 0.95rem;
    transition: var(--transition);
    border-left: 2px solid transparent;
    padding-left: 0.75rem;
    margin-left: -0.75rem;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link.active {
    color: var(--primary);
    border-left-color: var(--primary);
    font-weight: 500;
}

.help-content {
    flex: 1;
    margin-left: 280px;
    padding: 2rem;
    max-width: calc(100% - 280px);
}

.help-section {
    margin-bottom: 4rem;
    scroll-margin-top: 100px;
}

.section-header {
    margin-bottom: 2rem;
}

.section-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.help-version {
    color: var(--text-light);
    font-size: 0.9rem;
}

.content-section {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.content-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.content-section h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: var(--text);
}

.content-section h4 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
    color: var(--text);
}

.content-section p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.highlight-box {
    background-color: var(--primary-ultra-light);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.highlight-box h3 {
    margin-top: 0;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.quick-link {
    display: flex;
    align-items: center;
    padding: 1rem;
    background-color: white;
    border-radius: var(--border-radius);
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.quick-link:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.quick-link-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: var(--primary-ultra-light);
    border-radius: 50%;
    margin-right: 0.75rem;
    color: var(--primary);
}

.info-box, .warning-box {
    display: flex;
    border-radius: var(--border-radius);
    padding: 1.25rem;
    margin: 1.5rem 0;
    gap: 1rem;
}

.info-box {
    background-color: rgba(59, 130, 246, 0.1);
    border-left: 4px solid var(--primary);
}

.warning-box {
    background-color: rgba(245, 158, 11, 0.1);
    border-left: 4px solid var(--warning);
}

.info-icon, .warning-icon {
    flex-shrink: 0;
}

.info-icon svg {
    color: var(--primary);
}

.warning-icon svg {
    color: var(--warning);
}

.info-content, .warning-content {
    flex: 1;
}

.info-content p, .warning-content p {
    margin-bottom: 0;
}

.table-container {
    overflow-x: auto;
    margin: 1.5rem 0;
}

.help-table {
    width: 100%;
    border-collapse: collapse;
}

.help-table th, .help-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--bg-light);
}

.help-table th {
    font-weight: 600;
    background-color: var(--bg-light);
    color: var(--text);
}

/* Video Container Styles */
.video-container {
    margin: 2rem 0;
    border: 1px solid var(--bg-light);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.video-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background-color: var(--bg-light);
    cursor: pointer;
}

.video-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.video-toggle {
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.video-toggle.open {
    transform: rotate(180deg);
}

.video-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.video-content.open {
    max-height: 600px;
}

.video-wrapper {
    padding: 1.5rem;
}

.video-placeholder {
    position: relative;
    width: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
}

.video-placeholder img {
    width: 100%;
    height: auto;
    display: block;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: background-color 0.2s ease;
}

.video-placeholder:hover .play-button {
    background-color: var(--primary);
}

.video-caption {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Steps Container Styles */
.steps-container {
    margin: 1.5rem 0;
}

.step {
    display: flex;
    margin-bottom: 1.5rem;
}

.step:last-child {
    margin-bottom: 0;
}

.step-number {
    width: 36px;
    height: 36px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: 1rem;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h4 {
    margin: 0 0 0.5rem;
}

.step-content p {
    margin: 0;
    color: var(--text-light);
}

/* Process Container Styles */
.process-container {
    margin: 1.5rem 0;
}

.process-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: #f9f9f9;
    border-radius: var(--border-radius);
}

.process-step:last-child {
    margin-bottom: 0;
}

.process-icon {
    width: 48px;
    height: 48px;
    background-color: var(--primary-ultra-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.process-content {
    flex: 1;
}

.process-content h4 {
    margin: 0 0 0.5rem;
}

.process-content p {
    margin: 0;
    color: var(--text-light);
}

/* Checklist Container Styles */
.checklist-container {
    margin: 1.5rem 0;
}

.checklist-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

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

.checklist-item input[type="checkbox"] {
    margin-right: 0.75rem;
    width: 18px;
    height: 18px;
}

/* Help Lead Banner */
.help-lead-banner {
    background-color: var(--primary);
    color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lead-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.lead-content p {
    margin: 0;
    opacity: 0.9;
}

.lead-buttons {
    display: flex;
    gap: 1rem;
}

.lead-btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
}

.lead-btn.primary {
    background-color: white;
    color: var(--primary);
}

.lead-btn.primary:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

.lead-btn.secondary {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.lead-btn.secondary:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* Help Widget Styles */
.help-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.help-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 24px;
    padding: 8px 16px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.2s;
}

.help-toggle-btn:hover {
    background-color: var(--primary-light);
}

.help-panel {
    position: absolute;
    bottom: 60px;
    right: 0;
    width: 320px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    display: none;
    flex-direction: column;
}

.help-panel.open {
    display: flex;
}

.system-status {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background-color: #f9f9fa;
    border-bottom: 1px solid #e9e9e9;
}

.status-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 12px;
}

.status-icon.operational {
    background-color: #4caf50;
    color: white;
}

.status-icon.issues {
    background-color: #ff9800;
    color: white;
}

.status-text {
    display: flex;
    flex-direction: column;
}

.status-time {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}

.help-search {
    position: relative;
    padding: 15px 20px;
    border-bottom: 1px solid #e9e9e9;
}

.help-search input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    font-size: 14px;
    background-color: #f5f5f5;
}

.search-btn {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
}

.help-links {
    display: flex;
    flex-direction: column;
    padding: 10px 0;
    border-bottom: 1px solid #e9e9e9;
}

.help-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s;
}

.help-link:hover {
    background-color: #f5f5f5;
}

.help-lead {
    padding: 15px 20px;
    border-bottom: 1px solid #e9e9e9;
}

.help-lead .lead-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 15px;
    background-color: white;
    border: 1px solid var(--primary);
    border-radius: 4px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s;
}

.help-lead .lead-btn:hover {
    background-color: #f5f5f5;
}

.help-nav {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 10px 0;
    background-color: #fff;
    border-top: 1px solid #e9e9e9;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #666;
    padding: 5px;
}

.nav-item.active {
    color: var(--primary);
}

.nav-item span {
    font-size: 12px;
    margin-top: 4px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .help-sidebar {
        transform: translateX(-100%);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
    
    .help-sidebar.active {
        transform: translateX(0);
    }
    
    .mobile-sidebar-toggle {
        display: block;
    }
    
    .help-content {
        margin-left: 0;
        max-width: 100%;
    }
    
    .section-header h1 {
        font-size: 2rem;
    }
    
    .help-lead-banner {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .help-content {
        padding: 1.5rem;
    }
    
    .content-section {
        padding: 1.5rem;
    }
    
    .content-section h2 {
        font-size: 1.5rem;
    }
    
    .content-section h3 {
        font-size: 1.25rem;
    }
    
    .section-header h1 {
        font-size: 1.75rem;
    }
    
    .quick-links {
        grid-template-columns: 1fr;
    }
    
    .process-step {
        flex-direction: column;
    }
    
    .process-icon {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .help-content {
        padding: 1rem;
    }
    
    .content-section {
        padding: 1.25rem;
    }
    
    .section-header h1 {
        font-size: 1.5rem;
    }
    
    .step {
        flex-direction: column;
    }
    
    .step-number {
        margin-bottom: 0.75rem;
    }
    
    .lead-buttons {
        flex-direction: column;
        width: 100%;
    }
}