/* Admindek Help System Styles */
:root {
    --primary-color: #4680ff;
    --secondary-color: #f8f9fa;
    --success-color: #2ed8b6;
    --danger-color: #ff5370;
    --warning-color: #ffb64d;
    --info-color: #4680ff;
    --dark-color: #263238;
    --light-color: #f4f4f4;
}

/* Help System Styles */
.help-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
}

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

.help-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.help-container {
    position: relative;
    margin-left: auto;
    width: 100%;
    max-width: 1200px;
    height: 100%;
    background: #fff;
    display: flex;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.help-sidebar {
    width: 350px;
    background: var(--secondary-color);
    border-right: 1px solid #dee2e6;
    display: flex;
    flex-direction: column;
}

.help-header {
    padding: 20px;
    border-bottom: 1px solid #dee2e6;
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.help-header h4 {
    margin: 0;
    color: var(--dark-color);
    font-weight: 600;
}

.help-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #6c757d;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.help-close:hover {
    background: #e9ecef;
    color: var(--dark-color);
}

.help-search {
    padding: 20px;
    background: #fff;
    border-bottom: 1px solid #dee2e6;
}

.help-search .input-group {
    position: relative;
    display: flex;
}

.help-search .form-control {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ced4da;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
}

.help-search .input-group-addon {
    background: var(--primary-color);
    color: #fff;
    border: 1px solid var(--primary-color);
    border-left: none;
    border-radius: 0 4px 4px 0;
    padding: 10px 15px;
    display: flex;
    align-items: center;
}

.help-menu {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.help-menu-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 5px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
    border: 1px solid transparent;
}

.help-menu-item:hover {
    background: #e3f2fd;
    border-color: var(--primary-color);
    transform: translateX(2px);
}

.help-menu-item.active {
    background: var(--primary-color);
    color: #fff;
}

.help-menu-item i.item-icon {
    width: 20px;
    margin-right: 12px;
    text-align: center;
}

.help-item-content {
    flex: 1;
}

.help-item-content span {
    display: block;
    font-weight: 500;
    margin-bottom: 2px;
}

.help-item-content small {
    display: block;
    opacity: 0.7;
    font-size: 12px;
}

.help-category {
    margin-bottom: 20px;
}

.help-category h6 {
    color: #6c757d;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    padding-left: 15px;
}

.help-content {
    flex: 1;
    background: #fff;
    overflow-y: auto;
}

.help-welcome {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 40px;
}

.help-welcome i {
    font-size: 64px;
    color: #dee2e6;
    margin-bottom: 20px;
}

.help-welcome h3 {
    color: var(--dark-color);
    margin-bottom: 10px;
}

.help-welcome p {
    color: #6c757d;
}

.help-content-text {
    padding: 30px;
}

.help-content-text h2 {
    color: var(--dark-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.help-content-text .prose {
    line-height: 1.6;
    color: #495057;
}

.help-content-text .prose h1 {
    font-size: 28px;
    font-weight: 600;
    margin: 30px 0 20px 0;
    color: var(--dark-color);
}

.help-content-text .prose h2 {
    font-size: 22px;
    font-weight: 600;
    margin: 25px 0 15px 0;
    color: var(--dark-color);
}

.help-content-text .prose p {
    margin-bottom: 15px;
}

.help-content-text .prose li {
    margin-bottom: 8px;
    list-style-type: disc;
    margin-left: 20px;
}

/* Modal Styles */
.help-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.help-modal.active {
    display: flex;
}

.help-modal-content {
    background: #fff;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.help-modal-header {
    padding: 20px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--secondary-color);
}

.help-modal-header h4 {
    margin: 0;
    color: var(--dark-color);
}

.help-modal-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #6c757d;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.help-modal-close:hover {
    background: #e9ecef;
    color: var(--dark-color);
}

.help-modal-body {
    padding: 20px;
    overflow-y: auto;
    max-height: calc(80vh - 80px);
}

.help-step {
    background: #e3f2fd;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 10px;
    border-left: 4px solid var(--primary-color);
}

.help-step strong {
    color: var(--primary-color);
}

.help-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 15px;
    margin: 15px 0;
}

.help-warning h4 {
    color: #856404;
    margin-bottom: 10px;
}

.help-warning p {
    color: #856404;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .help-container {
        max-width: 100%;
    }
    
    .help-sidebar {
        width: 100%;
        max-width: 350px;
    }
    
    .help-content {
        display: none;
    }
    
    .help-sidebar.show-content + .help-content {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
    }
}

/* Animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

.help-panel.active .help-container {
    animation: slideInRight 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.help-modal.active {
    animation: fadeIn 0.3s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.help-modal.active .help-modal-content {
    animation: scaleIn 0.3s ease-out;
}
