/* Disable Right Click Widget Styles */
.disable-right-click-widget {
    position: relative;
}

/* Protection Badge Styles */
.protection-badge {
    position: fixed;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: white;
    z-index: 999999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    cursor: default;
    user-select: none;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.protection-badge:hover {
    opacity: 1;
    transform: scale(1.1);
}

.protection-badge-top-left {
    top: 20px;
    left: 20px;
}

.protection-badge-top-right {
    top: 20px;
    right: 20px;
}

.protection-badge-bottom-left {
    bottom: 20px;
    left: 20px;
}

.protection-badge-bottom-right {
    bottom: 20px;
    right: 20px;
}

/* Protection Status Indicator */
.protection-status {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
    z-index: 999999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.protection-status.show {
    opacity: 1;
}

/* Admin Notice Styles */
.protection-disabled-admin {
    margin: 10px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Global Protection Styles */
.disable-right-click-protection {
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    -khtml-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

/* Disable text selection highlighting */
.disable-right-click-protection::selection {
    background: transparent !important;
}

.disable-right-click-protection::-moz-selection {
    background: transparent !important;
}

/* Disable image dragging */
.disable-right-click-protection img {
    -webkit-user-drag: none !important;
    -khtml-user-drag: none !important;
    -moz-user-drag: none !important;
    -o-user-drag: none !important;
    pointer-events: none !important;
    draggable: false !important;
}

/* Re-enable pointer events for interactive elements */
.disable-right-click-protection a,
.disable-right-click-protection button,
.disable-right-click-protection input,
.disable-right-click-protection textarea,
.disable-right-click-protection select {
    pointer-events: auto !important;
}

/* Toast Notification Styles */
.protection-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #e74c3c;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    z-index: 999999;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: slideInRight 0.3s ease-out;
    max-width: 300px;
    word-wrap: break-word;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Developer Tools Warning Overlay */
.devtools-warning-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 999998;
    display: flex;
    align-items: center;
    justify-content: center;
}

.devtools-warning-content {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 400px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.devtools-warning-content h3 {
    color: #e74c3c;
    margin: 0 0 20px 0;
    font-size: 24px;
}

.devtools-warning-content p {
    margin: 0;
    color: #555;
    font-size: 16px;
    line-height: 1.5;
}

/* Blur effect for content protection */
.content-blurred {
    filter: blur(5px) !important;
    pointer-events: none !important;
    transition: filter 0.3s ease !important;
}

/* Mobile-specific styles */
@media (max-width: 768px) {
    .protection-badge {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    .protection-badge-top-left,
    .protection-badge-top-right {
        top: 15px;
    }
    
    .protection-badge-bottom-left,
    .protection-badge-bottom-right {
        bottom: 15px;
    }
    
    .protection-badge-top-left,
    .protection-badge-bottom-left {
        left: 15px;
    }
    
    .protection-badge-top-right,
    .protection-badge-bottom-right {
        right: 15px;
    }
    
    .protection-toast {
        top: 15px;
        right: 15px;
        left: 15px;
        max-width: none;
        font-size: 13px;
        padding: 12px 16px;
    }
    
    .devtools-warning-content {
        margin: 20px;
        padding: 30px 20px;
    }
    
    .devtools-warning-content h3 {
        font-size: 20px;
    }
    
    .devtools-warning-content p {
        font-size: 14px;
    }
}

/* Print protection */
@media print {
    .disable-right-click-protection {
        display: none !important;
    }
    
    body::before {
        content: "This content is protected and cannot be printed.";
        display: block;
        text-align: center;
        font-size: 24px;
        color: #e74c3c;
        padding: 50px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .protection-badge {
        border: 2px solid white;
    }
    
    .protection-toast {
        border: 2px solid white;
    }
}
