/* ============================================
   SECURITY FEATURES STYLES
   ============================================ */

/* Privacy Overlay Animation */
#security-privacy-overlay {
    animation: fadeIn 0.3s ease-in-out;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Prevent screenshot capture styling */
body.screenshot-protected {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Secure content wrapper */
.secure-content {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Add blur effect to sensitive data when app loses focus */
body.app-blurred .sensitive-data {
    filter: blur(10px);
    transition: filter 0.2s ease;
}

/* Sensitive data elements */
.sensitive-data {
    transition: filter 0.2s ease;
}

/* Session expired overlay */
.session-expired-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999998;
    color: white;
    font-size: 18px;
    flex-direction: column;
    padding: 20px;
    text-align: center;
}

/* Security badge */
.security-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    background: #10B981;
    color: white;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    gap: 4px;
}

.security-badge::before {
    content: "🔒";
}

/* Disable text selection on financial data */
.account-balance,
.transaction-amount,
.card-number,
.account-number {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

/* Print protection */
@media print {
    body {
        display: none !important;
    }
    
    body::after {
        content: "Printing is disabled for security reasons";
        display: block;
        text-align: center;
        padding: 50px;
        font-size: 24px;
        color: #EF4444;
    }
}

/* Screenshot detection warning */
.screenshot-warning {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #EF4444;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 999997;
    display: none;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateX(-50%) translateY(-100%);
    }
    to {
        transform: translateX(-50%) translateY(0);
    }
}

/* Secure input fields */
.secure-input {
    -webkit-text-security: disc;
    text-security: disc;
}

/* Watermark for additional security (optional) */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999996;
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 100px,
        rgba(0, 0, 0, 0.01) 100px,
        rgba(0, 0, 0, 0.01) 200px
    );
}