/* Ebook Preview Pro - Frontend Styles */
.epp-button {
    margin-top: 20px;
    padding: 12px 24px !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    background-color: #ffffff !important;
    color: #1a1a1a !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
    transition: all 0.2s ease-in-out !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.epp-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
    background-color: #f8fafc !important;
}

/* Modal Styles */
.epp-modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999 !important; /* Extremely high to beat any theme */
    display: flex;
    align-items: center;
    justify-content: center;
}

.epp-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
}

.epp-modal-content {
    position: relative;
    width: 95%;
    max-width: 1100px;
    height: 90vh;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 25px 70px -12px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: eppFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes eppFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.epp-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    background: none;
    border: none;
    color: #1a1a1a;
    cursor: pointer;
    z-index: 10;
}

.epp-modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.epp-modal-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
}

.epp-page-indicator {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

.epp-viewer-body {
    flex: 1;
    overflow-y: auto;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    user-select: none;
}

.epp-slide-wrapper {
    background: #fff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    max-width: 100%;
    max-height: 100%;
}

.epp-page-img {
    display: block;
    max-width: 100%;
    height: auto;
}

.epp-modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.epp-nav-btn {
    padding: 8px 20px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.epp-nav-btn:hover:not(:disabled) {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #1e293b;
}

.epp-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* protection */
.epp-no-right-click {
    user-select: none;
    -webkit-user-drag: none;
}

@media (max-width: 768px) {
    .epp-modal-content {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
}
