/* Help Page Styles */

/* Body and Layout */
.help-body {
    margin: 0;
    padding: 0;
    background: #f5f7fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.help-main {
    flex: 1;
}

/* Header Styles */
.help-header {
    background: #fff;
    border-bottom: 1px solid #e1e8ed;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.help-header-content {
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.help-logo a {
    display: block;
    line-height: 0;
}

.help-header-actions {
    padding-left: 10px;
}

.help-back-btn {
    color: #14324A;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    transition: all 0.3s ease;
    background: transparent;
    font-size: 14px;
}

.help-user-info {
    color: #14324A;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid #e1e8ed;
    border-radius: 6px;
}

.help-user-info i {
    font-size: 18px;
    color: #2FA4C4;
}

/* Footer Styles */
.help-footer {
    background: transparent;
    color: #4a5568;
    padding: 24px 40px;
    margin-top: auto;
    border-top: 1px solid #e1e8ed;
}

.help-footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.help-footer-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.help-footer p {
    margin: 0;
    font-size: 14px;
}

.help-footer a {
    color: #2FA4C4;
    text-decoration: none;
    transition: color 0.3s ease;
}

.help-footer a:hover {
    color: #14324A;
    text-decoration: underline;
}

.help-footer-divider {
    color: #cbd5e0;
}

.help-container {
    display: flex;
    flex: 1;
    background: #f5f7fa;
    min-height: 0;
}

/* Sidebar Styles */
.help-sidebar {
    width: 280px;
    background: transparent;
    color: #14324A;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #e1e8ed;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    align-self: flex-start;
    max-height: 100vh;
    overflow-y: auto;
}

.help-sidebar-header {
   /* padding: 20px;*/
    padding-top: 20px;
    padding-bottom: 20px;
    padding-left: 20px;
    border-bottom: 1px solid #e1e8ed;
    background: transparent;
    display: flex;
   /* align-items: center;
    justify-content: center;*/
}

.help-sidebar-header > div {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
}

.help-logo {
    display: block;
    line-height: 0;
    transition: opacity 0.3s ease;
}

.help-logo:hover {
    opacity: 0.8;
}

.help-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #14324A;
}

/* Navigation Styles */
.help-nav {
    padding: 20px 0;
    overflow-y: auto;
    flex: 1;
}

.help-nav-section {
    margin-bottom: 8px;
}

.help-nav-item {
    width: 100%;
    padding: 14px 24px;
    background: transparent;
    border: none;
    color: #4a5568;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 3px solid transparent;
}

.help-nav-item i {
    font-size: 18px;
    width: 20px;
    text-align: center;
    color: #2FA4C4;
}

    .help-nav-item:hover {
        background: rgba(0, 0, 0, 0.06);
        border-left-color: green;
        color: #1a78c2;
    }

.help-nav-item.active {
    background: #e3f1ff;
    border-left-color: green;
    color: #14324A;
    font-weight: 600;
}

.help-nav-item.active i {
    color: #2FA4C4;
}

/* Content Area Styles */
.help-content {
    flex: 1;
    overflow-y: auto;
    background: #fff;
    padding: 40px 60px;
}

/* Article Styles */
.help-article {
  /*  max-width: 900px;*/
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.help-article-header {
    background: linear-gradient(135deg, #14324A 0%, #2FA4C4 100%);
    color: #fff;
    padding: 40px 40px 36px;
}

.help-article-header h1 {
    margin: 0 0 12px 0;
    font-size: 32px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 16px;
}

.help-article-header i {
    color: #3AD27E;
}

.help-article-subtitle {
    margin: 0;
    font-size: 16px;
    color: #E6EEF5;
    opacity: 0.9;
}

.help-article-content {
    padding: 40px;
}

/* Card Styles */
.help-card {
    background: #fff;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    padding: 28px;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.help-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.help-card h3 {
    color: #14324A;
    font-size: 20px;
    margin: 0 0 16px 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.help-card h3 i {
    color: #2FA4C4;
    font-size: 22px;
}

.help-card p {
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 16px;
}

.help-card ul,
.help-card ol {
    color: #4a5568;
    line-height: 1.8;
    padding-left: 24px;
}

.help-card li {
    margin-bottom: 8px;
}

/* Special Card Types */
.help-card-success {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: #86efac;
}

.help-card-success h3 {
    color: #166534;
}

.help-card-success h3 i {
    color: #22c55e;
}

.help-card-info {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: #93c5fd;
}

.help-card-info h3 {
    color: #1e40af;
}

.help-card-info h3 i {
    color: #3b82f6;
}

/* Tip Box */
.help-tip {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 16px 20px;
    margin-top: 20px;
    border-radius: 4px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.help-tip i {
    color: #f59e0b;
    font-size: 20px;
    margin-top: 2px;
}

.help-tip strong {
    color: #92400e;
}

/* FAQ Styles */
.help-faq-section {
    margin-bottom: 40px;
}

.help-faq-section h3 {
    color: #14324A;
    font-size: 24px;
    margin: 0 0 24px 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e1e8ed;
}

.help-faq-section h3 i {
    color: #2FA4C4;
}

.help-faq-item {
    margin-bottom: 24px;
    border-left: 3px solid #2FA4C4;
    padding-left: 24px;
}

.help-faq-question {
    color: #14324A;
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.help-faq-question i {
    color: #2FA4C4;
    margin-top: 2px;
    font-size: 18px;
}

.help-faq-answer {
    color: #4a5568;
    line-height: 1.7;
}

.help-faq-answer p {
    margin-bottom: 12px;
}

.help-faq-answer ul,
.help-faq-answer ol {
    padding-left: 24px;
    margin-top: 12px;
}

.help-faq-answer li {
    margin-bottom: 8px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .help-header-actions {
        padding: 18px 30px;
    }

    .help-content {
        padding: 30px 40px;
    }

    .help-article-content {
        padding: 30px;
    }

    .help-footer {
        padding: 24px 30px;
    }
}

@media (max-width: 768px) {
    .help-header-actions {
        padding: 16px 20px;
        flex-wrap: wrap;
        gap: 12px;
    }

    .help-back-btn,
    .help-user-info {
        font-size: 12px;
        padding: 6px 12px;
    }

    .help-container {
        flex-direction: column;
        flex: 1;
    }

    .help-sidebar {
        width: 100%;
        height: auto;
    }

    .help-nav {
        max-height: 300px;
    }

    .help-content {
        padding: 20px;
        height: auto;
    }

    .help-article-header {
        padding: 30px 24px;
    }

    .help-article-header h1 {
        font-size: 26px;
    }

    .help-article-content {
        padding: 24px;
    }

    .help-card {
        padding: 20px;
    }

    .help-footer {
        padding: 20px;
    }

    .help-footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .help-footer-section {
        flex-wrap: wrap;
    }
}

/* Scrollbar Styling */
.help-content::-webkit-scrollbar,
.help-nav::-webkit-scrollbar {
    width: 8px;
}

.help-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.help-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.help-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.help-nav::-webkit-scrollbar-track {
    background: #f5f7fa;
}

.help-nav::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 4px;
}

.help-nav::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

.help-nav-header-section {
    padding: 0.5rem 1rem;
    margin-bottom: 0.5rem;
}

.help-nav-header {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #6c757d;
    letter-spacing: 0.5px;
    margin: 0;
    padding: 0.25rem 0;
}

.help-scroll-to-top {
    position: fixed;
    right: 26px;
    bottom: 26px;
    z-index: 1050;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    background: #666;
    box-shadow: 0 10px 28px rgba(0,0,0,.3);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .22s ease,transform .22s ease,visibility .22s ease,background .2s ease;
}

.help-scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.help-scroll-to-top:hover {
    background: #767676;
}

.help-scroll-to-top:focus-visible {
    outline: 3px solid #2fa4c4;
    outline-offset: 3px;
}

.help-scroll-to-top svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 3.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 640px) {
    .help-scroll-to-top {
        right: 16px;
        bottom: 16px;
        width: 48px;
        height: 48px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .help-scroll-to-top {
        transition: none;
    }
}
