/* User Guide Specific Styles */

/* Force header background for user guide page */
#header {
    background: rgba(40, 58, 90, 0.9) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Header and Meta Info */
.user-guide-header {
    margin-bottom: 40px;
}

.meta-info {
    background: #f3f5fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 4px solid #37517e;
    box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.08);
}

    .meta-info p {
        margin-bottom: 8px;
        font-size: 0.95em;
        color: #666;
        font-weight: 500;
    }

        .meta-info p:last-child {
            margin-bottom: 0;
        }

/* Table of Contents */
.toc {
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 40px;
    border: 1px solid #e1e8ed;
    box-shadow: 0px 5px 25px rgba(0, 0, 0, 0.1);
}

    .toc h3 {
        color: #37517e;
        font-size: 1.4em;
        margin-bottom: 20px;
        font-weight: 600;
        text-align: center;
        border-bottom: 2px solid #f3f5fa;
        padding-bottom: 10px;
    }

    .toc ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .toc > ul > li {
        margin-bottom: 12px;
    }

    .toc ul ul {
        margin-left: 25px;
        margin-top: 8px;
    }

        .toc ul ul li {
            margin-bottom: 6px;
        }

    .toc a {
        color: #37517e;
        text-decoration: none;
        display: block;
        padding: 8px 12px;
        border-radius: 6px;
        transition: all 0.3s ease;
        font-size: 0.95em;
    }

        .toc a:hover {
            background-color: #47b2e4;
            color: white;
            transform: translateX(5px);
            box-shadow: 0px 3px 10px rgba(71, 178, 228, 0.3);
        }

    .toc .main-item {
        font-weight: 600;
        font-size: 1em;
    }

    .toc .sub-item {
        font-weight: normal;
        color: #666;
        font-size: 0.9em;
    }

/* Guide Content */
.guide-content {
    background: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0px 5px 25px rgba(0, 0, 0, 0.08);
}

.guide-section {
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid #f3f5fa;
}

    .guide-section:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }

    .guide-section h2 {
        color: #37517e;
        font-size: 1.8em;
        margin-bottom: 25px;
        padding-bottom: 10px;
        border-bottom: 3px solid #47b2e4;
        font-weight: 600;
    }

    .guide-section h3 {
        color: #37517e;
        font-size: 1.3em;
        margin: 30px 0 15px 0;
        font-weight: 600;
    }

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

    .guide-section ol {
        margin-left: 25px;
        margin-bottom: 20px;
    }

        .guide-section ol li {
            margin-bottom: 8px;
            color: #555;
            line-height: 1.6;
        }

    .guide-section strong {
        color: #37517e;
        font-weight: 600;
    }

/* Procedures */
.procedure {
    background: #fdfdfd;
    border: 1px solid #e8eef5;
    border-radius: 8px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

    .procedure:hover {
        box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.1);
        transform: translateY(-2px);
    }

    .procedure h3 {
        margin-top: 0;
        color: #37517e;
        font-size: 1.2em;
        border-bottom: 2px solid #f3f5fa;
        padding-bottom: 8px;
        margin-bottom: 15px;
    }

/* Notes */
.note {
    background: linear-gradient(135deg, #f3f5fa 0%, #e8eef5 100%);
    padding: 15px 20px;
    border-radius: 8px;
    border-left: 4px solid #47b2e4;
    margin: 20px 0;
    font-size: 0.95em;
    box-shadow: 0px 2px 10px rgba(71, 178, 228, 0.1);
}

/* Button References */
.button-ref {
    background: #37517e;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 600;
    display: inline-block;
    box-shadow: 0px 2px 5px rgba(55, 81, 126, 0.2);
}

    .button-ref.edit-btn {
        background: #f39c12;
    }

    .button-ref.delete-btn {
        background: #e74c3c;
    }

    .button-ref.load-btn {
        background: #27ae60;
    }

/* Menu Path */
.menu-path {
    background: #f3f5fa;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #37517e;
    font-weight: 600;
    border: 1px solid #e1e8ed;
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    visibility: visible;
    opacity: 1;
    right: 20px;
    bottom: 20px;
    z-index: 996;
    background: #37517e;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: all 0.4s;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0px 5px 15px rgba(55, 81, 126, 0.3);
}

    .scroll-top i {
        font-size: 24px;
        color: #fff;
        line-height: 0;
    }

    .scroll-top:hover {
        background: #47b2e4;
        color: #fff;
        transform: translateY(-3px);
        box-shadow: 0px 8px 20px rgba(71, 178, 228, 0.4);
    }

    .scroll-top.active {
        visibility: visible;
        opacity: 1;
    }

/* Responsive Design */
@media (max-width: 991px) {
    .guide-content {
        padding: 30px 20px;
    }

    .toc {
        padding: 25px 20px;
    }

    .procedure {
        padding: 20px 15px;
    }

    .guide-section h2 {
        font-size: 1.6em;
    }
}

@media (max-width: 768px) {
    #userguide {
        padding-top: 100px;
    }

    .guide-content {
        padding: 25px 15px;
    }

    .toc {
        padding: 20px 15px;
    }

    .procedure {
        padding: 15px 10px;
    }

    .meta-info {
        padding: 15px;
    }

    .guide-section h2 {
        font-size: 1.4em;
    }

    .guide-section h3 {
        font-size: 1.1em;
    }

    .toc ul ul {
        margin-left: 15px;
    }
}

@media (max-width: 575px) {
    .scroll-top {
        right: 15px;
        bottom: 15px;
        width: 45px;
        height: 45px;
    }

        .scroll-top i {
            font-size: 20px;
        }

    .button-ref {
        padding: 3px 8px;
        font-size: 0.8em;
    }

    .menu-path {
        padding: 2px 6px;
        font-size: 0.85em;
    }
}

/* Animation for scroll top button */
@media (min-width: 769px) {
    .scroll-top {
        animation: fadeInUp 0.5s ease-in-out;
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Print Styles */
@media print {
    .scroll-top,
    header,
    #footer {
        display: none !important;
    }

    .guide-content,
    .toc,
    .procedure {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }

    .button-ref,
    .menu-path {
        background: #f0f0f0 !important;
        color: #333 !important;
    }
}
