﻿
/* Preview Button */
.preview-feature-btn {
    position: relative;
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    color: white;
    font-size: 0.875rem;
}

    .preview-feature-btn:hover {
        opacity: 0.8;
    }

    .preview-feature-btn img {
        width: 25px;
        height: 25px;
    }

.preview-badge {
    display: none;
}

/* Modal Overlay */
.preview-modal-overlay {
    position: fixed;
    top: 2.75rem;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: transparent;
    display: none;
    z-index: 1000;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 0;
    pointer-events: none;
}

    .preview-modal-overlay.show {
        display: flex;
    }

/* Modal Wrapper */
.preview-modal-wrapper {
    display: flex;
    height: 100%;
    pointer-events: auto;
/*    animation: slideInRight 0.3s ease;*/
    transform: translateX(0);
    transition: transform 0.3s ease;
}
.preview-modal-wrapper.slide-in {
    animation: slideInRight 0.3s ease;
}
.preview-modal-wrapper.slide-out {
    animation: slideOutRight 0.3s ease;
}
/* Sidebar - Cột bên trái chứa nút thu gọn */
.preview-sidebar {
    background: #2c4a65;
    width: 30px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.2);
    position: relative;
    flex-shrink: 0;
}

/* Modal Content */
.preview-modal-content {
    background: #f8f9fa;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
    width: 500px;
    max-width: 90vw;
    height: 100%;
    max-height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: width 0.3s ease, opacity 0.3s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* Modal Header */
.preview-modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #2c4a65;
    color: white;
    flex-shrink: 0;
}

.preview-modal-title {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
    display: flex;
    align-items: center;
}

    .preview-modal-title img {
        width: 20px;
        height: 20px;
    }

.preview-close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-size: 20px;
    line-height: 1;
    transition: all 0.2s;
}

    .preview-close-btn:hover {
        background: rgba(255, 255, 255, 0.2);
    }

/* Modal Body */
.preview-modal-body {
    padding: 0;
    overflow-y: auto;
    flex: 1;
    background: white;
}

/* Info Banner */
.preview-info-banner {
    padding: 20px;
    background: #e7f3ff;
    border-left: 4px solid #2c4a65;
    margin: 0;
    border-bottom: 1px solid #dee2e6;
}

.preview-info-content {
    flex: 1;
}

    .preview-info-content p {
        margin: 0 0 10px 0;
        color: #495057;
        line-height: 1.6;
        font-size: 0.9rem;
    }

        .preview-info-content p:last-child {
            margin-bottom: 0;
        }

.preview-learn-more {
    color: #0066cc;
    text-decoration: underline;
    cursor: pointer;
    font-weight: 500;
}

    .preview-learn-more:hover {
        color: #0052a3;
    }

/* Feature List */
.preview-features-list {
    display: flex;
    flex-direction: column;
}

.preview-feature-item {
    padding: 16px 20px;
    background: white;
    border-bottom: 1px solid #dee2e6;
    transition: background-color 0.2s;
    cursor: pointer;
}

    .preview-feature-item:nth-child(even) {
        background: #f8f9fa;
    }

    .preview-feature-item:hover {
        background: #e9ecef;
    }

.preview-feature-name {
    font-weight: 500;
    color: #212529;
    margin-bottom: 4px;
    font-size: 0.95rem;
}

.preview-feature-description {
    color: #6c757d;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Empty State */
.preview-empty-state {
    padding: 60px 20px;
    text-align: center;
}

.preview-empty-title {
    font-size: 1rem;
    font-weight: 500;
    color: #495057;
    margin: 0 0 8px 0;
}

.preview-empty-description {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Scrollbar */
.preview-modal-body::-webkit-scrollbar {
    width: 6px;
}

.preview-modal-body::-webkit-scrollbar-track {
    background: #f8f9fa;
}

.preview-modal-body::-webkit-scrollbar-thumb {
    background: #dee2e6;
    border-radius: 3px;
}

    .preview-modal-body::-webkit-scrollbar-thumb:hover {
        background: #adb5bd;
    }

/* Collapse Button */
.preview-collapse-btn {
    width: 40px;
    height: 60px;
    background: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

    .preview-collapse-btn:hover {
        background: none;
    }

.preview-collapse-icon {
    color: white;
    font-size: 16px;
    transition: transform 0.3s ease;
}

/* Trạng thái modal khi bị thu gọn */
.preview-modal-wrapper.collapsed .preview-modal-content {
    width: 0;
    opacity: 0;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 768px) {
    .preview-modal-content {
        width: 100%;
        max-width: 100%;
    }

    .preview-sidebar {
        width: 50px;
    }

    .preview-collapse-btn {
        width: 30px;
        height: 50px;
    }
}
