/**
 * Negavid Device License Manager Styles
 */

.negavid-protected-content {
    position: relative;
    min-height: 50px;
}

.negavid-protected-content.hidden {
    display: none !important;
}

.negavid-unauthorized-message {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 25px;
    margin: 15px 0;
    text-align: center;
    color: #495057;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.negavid-unauthorized-message::before {
    content: '🔒';
    font-size: 24px;
    display: block;
    margin-bottom: 10px;
}

.negavid-unauthorized-message p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 500;
}

.negavid-unauthorized-message strong {
    color: #dc3545;
    font-weight: 600;
}

.negavid-login-required {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    text-align: center;
    color: #856404;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-shadow: 0 2px 10px rgba(255, 193, 7, 0.2);
}

.negavid-login-required::before {
    content: '⚠️';
    font-size: 20px;
    display: block;
    margin-bottom: 8px;
}

.negavid-login-required p {
    margin: 0;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 500;
}

/* Loading state for device validation */
.negavid-loading {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 20px;
    margin: 10px 0;
    text-align: center;
    color: #6c757d;
    position: relative;
}

.negavid-loading::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #dee2e6;
    border-radius: 50%;
    border-top-color: #007bff;
    animation: negavid-spin 1s ease-in-out infinite;
    margin-right: 10px;
}

@keyframes negavid-spin {
    to { transform: rotate(360deg); }
}

/* Success state */
.negavid-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 2px solid #28a745;
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
    text-align: center;
    color: #155724;
    font-weight: 500;
}

.negavid-success::before {
    content: '✅';
    font-size: 18px;
    display: block;
    margin-bottom: 5px;
}

/* Error state */
.negavid-error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border: 2px solid #dc3545;
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
    text-align: center;
    color: #721c24;
    font-weight: 500;
}

.negavid-error::before {
    content: '❌';
    font-size: 18px;
    display: block;
    margin-bottom: 5px;
}

/* Device Change Message */
.negavid-device-change-message {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    text-align: center;
    color: #856404;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-shadow: 0 2px 10px rgba(255, 193, 7, 0.2);
    position: relative;
}

.negavid-device-change-message::before {
    content: '🔄';
    font-size: 24px;
    display: block;
    margin-bottom: 10px;
}

.negavid-device-change-message p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 500;
}

.negavid-device-change-message strong {
    color: #d68910;
    font-weight: 600;
}

/* Device Limit Error */
.negavid-device-limit-error {
    padding: 20px;
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    margin: 15px 0;
    text-align: center;
    color: #856404;
    font-weight: 500;
}

.negavid-device-limit-error p {
    margin: 0;
    line-height: 1.6;
}

.negavid-device-limit-error strong {
    color: #856404;
}

/* Notifications */
.negavid-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 4px;
    color: white;
    font-weight: 500;
    z-index: 999999;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.negavid-notification:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.negavid-notification-success {
    background-color: #28a745;
}

.negavid-notification-error {
    background-color: #dc3545;
}

.negavid-notification-warning {
    background-color: #ffc107;
    color: #212529;
}

.negavid-notification-info {
    background-color: #17a2b8;
}

/* Device Mismatch Alert */
.negavid-device-mismatch-alert {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border: 2px solid #dc3545;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    text-align: center;
    color: #721c24;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-shadow: 0 2px 10px rgba(220, 53, 69, 0.2);
    position: relative;
}

.negavid-device-mismatch-alert::before {
    content: '⚠️';
    font-size: 24px;
    display: block;
    margin-bottom: 10px;
}

.negavid-device-mismatch-alert p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 500;
}

.negavid-device-mismatch-alert strong {
    color: #dc3545;
    font-weight: 600;
}

/* Responsive design */
@media (max-width: 768px) {
    .negavid-unauthorized-message,
    .negavid-login-required {
        padding: 20px 15px;
        margin: 10px 0;
    }
    
    .negavid-unauthorized-message p,
    .negavid-login-required p {
        font-size: 14px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .negavid-unauthorized-message {
        background: linear-gradient(135deg, #343a40 0%, #495057 100%);
        border-color: #6c757d;
        color: #f8f9fa;
    }
    
    .negavid-login-required {
        background: linear-gradient(135deg, #664d03 0%, #856404 100%);
        border-color: #ffc107;
        color: #fff3cd;
    }
    
    .negavid-loading {
        background: #343a40;
        border-color: #6c757d;
        color: #f8f9fa;
    }

    /* Dark mode support for device change message */
    .negavid-device-change-message {
        background: linear-gradient(135deg, #664d03 0%, #856404 100%);
        border-color: #ffc107;
        color: #fff3cd;
    }
    
    .negavid-device-change-message strong {
        color: #ffd54f;
    }

    /* Dark mode support for device mismatch alert */
    .negavid-device-mismatch-alert {
        background: linear-gradient(135deg, #721c24 0%, #8b2634 100%);
        border-color: #dc3545;
        color: #f8d7da;
    }
    
    .negavid-device-mismatch-alert strong {
        color: #ff6b6b;
    }
} 