/* Help Application Styles */

.help-container {
    padding: 20px 0;
    background: #f8f9fa;
    min-height: 100vh;
}

.help-sidebar {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 20px;
}

.help-sidebar h5 {
    color: #2c3e50;
    margin-bottom: 20px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.help-sidebar .collection {
    border: none;
    margin: 0 0 30px 0;
}

.help-sidebar .collection-item {
    display: flex;
    align-items: center;
    padding: 15px 10px;
    border-radius: 6px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
    border: none;
    background: transparent;
}

.help-sidebar .collection-item:hover {
    background: #e3f2fd;
    transform: translateX(5px);
}

.help-sidebar .collection-item.active {
    background: #3498db;
    color: white;
    font-weight: 500;
}

.help-sidebar .collection-item i {
    margin-right: 10px;
    font-size: 1.2em;
}

.help-quick-links {
    margin-bottom: 20px;
}

.help-quick-links h6 {
    color: #2c3e50;
    font-weight: 500;
    margin-bottom: 10px;
}

.help-quick-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.help-quick-links li {
    margin-bottom: 8px;
}

.help-quick-links a {
    color: #7f8c8d;
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.3s ease;
}

.help-quick-links a:hover {
    color: #3498db;
}

.help-user-context .card-panel {
    margin: 0;
    padding: 15px;
    border-radius: 6px;
}

.help-content {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-left: 20px;
}

.help-content h1 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 300;
    font-size: 2.5em;
}

.help-content h2 {
    color: #34495e;
    margin: 30px 0 15px 0;
    font-weight: 400;
    border-bottom: 1px solid #ecf0f1;
    padding-bottom: 10px;
}

.help-content h3 {
    color: #3498db;
    margin: 25px 0 10px 0;
    font-weight: 500;
}

.help-content p {
    line-height: 1.7;
    color: #555;
    margin-bottom: 15px;
}

.help-content ul, .help-content ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.help-content li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: #555;
}

.help-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.help-feature-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid #3498db;
    transition: transform 0.3s ease;
}

.help-feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.help-feature-card h4 {
    color: #2c3e50;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.help-feature-card h4 i {
    margin-right: 10px;
    color: #3498db;
}

.help-code-block {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    line-height: 1.5;
}

.help-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    border-left: 4px solid #f39c12;
}

.help-warning h5 {
    color: #856404;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.help-warning h5 i {
    margin-right: 10px;
}

.help-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    border-left: 4px solid #27ae60;
}

.help-success h5 {
    color: #155724;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.help-success h5 i {
    margin-right: 10px;
}

.help-info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    border-left: 4px solid #3498db;
}

.help-info h5 {
    color: #0c5460;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.help-info h5 i {
    margin-right: 10px;
}

.help-step {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    border-left: 4px solid #3498db;
    position: relative;
}

.help-step-number {
    position: absolute;
    top: -10px;
    left: 20px;
    background: #3498db;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.help-step h4 {
    color: #2c3e50;
    margin: 0 0 10px 0;
    font-size: 1.2em;
}

.help-toc {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid #e9ecef;
}

.help-toc h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.help-toc h4 i {
    margin-right: 10px;
}

.help-toc ul {
    columns: 2;
    column-gap: 30px;
    list-style: none;
    padding: 0;
}

.help-toc li {
    margin-bottom: 8px;
    break-inside: avoid;
}

.help-toc a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.help-toc a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.help-search {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.help-search input {
    margin-bottom: 0;
}

.help-breadcrumb {
    background: #ecf0f1;
    padding: 10px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 0.9em;
}

.help-breadcrumb a {
    color: #3498db;
    text-decoration: none;
}

.help-breadcrumb a:hover {
    text-decoration: underline;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .help-content {
        margin-left: 0;
        margin-top: 20px;
    }
    
    .help-sidebar {
        position: static;
        margin-bottom: 20px;
    }
    
    .help-feature-grid {
        grid-template-columns: 1fr;
    }
    
    .help-toc ul {
        columns: 1;
    }
}

/* Dark Mode Support */
body.nightMode .help-container {
    background: #1a1a2e;
}

body.nightMode .help-sidebar,
body.nightMode .help-content {
    background: #2d2d44;
    color: #ffffff;
}

body.nightMode .help-content h1,
body.nightMode .help-content h2,
body.nightMode .help-content h3 {
    color: #ffffff;
}

body.nightMode .help-content p,
body.nightMode .help-content li {
    color: #b0b0b0;
}

body.nightMode .help-feature-card {
    background: #1a1a2e;
    border-left-color: #667eea;
}

body.nightMode .help-code-block {
    background: #0f0f1a;
}

body.nightMode .help-step {
    background: #1a1a2e;
    border-color: #404060;
    border-left-color: #667eea;
}

body.nightMode .help-toc {
    background: #1a1a2e;
    border-color: #404060;
}