/* Modern Help Page Styling */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    color: #2c3e50;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

h1 {
    font-size: 2rem;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
}

h2 {
    font-size: 1.75rem;
}

h3 {
    font-size: 1.5rem;
}

/* Paragraphs and text */
p {
    margin-bottom: 1.2rem;
}

/* Links */
a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Lists */
ul, ol {
    padding-left: 1.5rem;
    margin-bottom: 1.2rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    background-color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

th, td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

th {
    background-color: #f1f3f5;
    font-weight: 600;
}

tr:hover {
    background-color: #f8f9fa;
}

/* Code blocks */
code, pre {
    font-family: 'Courier New', Courier, monospace;
    background-color: #f1f3f5;
    border-radius: 3px;
}

code {
    padding: 0.2rem 0.4rem;
    font-size: 0.9rem;
}

pre {
    padding: 1rem;
    overflow-x: auto;
    border-left: 4px solid #007bff;
}

/* Blockquote */
blockquote {
    padding: 0.5rem 1rem;
    margin: 0 0 1.2rem;
    border-left: 4px solid #e9ecef;
    color: #6c757d;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
    margin: 1.5rem auto;
}

/* Buttons (additional styling for the back button) */
.btn-outline-secondary {
    border-color: #6c757d;
    color: #6c757d;
    transition: all 0.3s;
}

.btn-outline-secondary:hover {
    background-color: #6c757d;
    color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .container {
        padding: 0.5rem;
    }
}

/* Separation between sections */
section, article, .help-section {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

/* Special styling for notes or alerts */
.note, .alert, .warning {
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
}

.note {
    background-color: #e7f5ff;
    border-left: 4px solid #4dabf7;
}

.warning {
    background-color: #fff9db;
    border-left: 4px solid #fab005;
}

.alert {
    background-color: #ffe3e3;
    border-left: 4px solid #fa5252;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #121212;
        color: #e0e0e0;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: #f1f3f5;
    }
    
    h1 {
        border-bottom-color: #2c3e50;
    }
    
    a {
        color: #4dabf7;
    }
    
    a:hover {
        color: #74c0fc;
    }
    
    table {
        background-color: #1e1e1e;
    }
    
    th, td {
        border-bottom-color: #2c3e50;
    }
    
    th {
        background-color: #2c3e50;
    }
    
    tr:hover {
        background-color: #2c2c2c;
    }
    
    code, pre {
        background-color: #2c2c2c;
    }
    
    blockquote {
        border-left-color: #4a4a4a;
        color: #a0a0a0;
    }
    
    .note {
        background-color: #1864ab;
        border-left-color: #4dabf7;
    }
    
    .warning {
        background-color: #e67700;
        border-left-color: #fab005;
    }
    
    .alert {
        background-color: #c92a2a;
        border-left-color: #fa5252;
    }
}
