.url-scanner-frontend {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    font-family: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}

.scanner-header {
    text-align: center;
    margin-bottom: 30px;
}

.scanner-header h2 {
    font-size: 2em;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.scanner-description {
    color: #666;
    font-size: 1.1em;
    line-height: 1.5;
}

.url-scanner-form {
    margin-bottom: 30px;
}

.input-wrapper {
    display: flex;
    gap: 10px;
    background: #f8f9fa;
    padding: 5px;
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: border-color 0.3s ease;
}

.input-wrapper:focus-within {
    border-color: #2271b1;
}

.url-scanner-form input[type="text"] {
    flex: 1;
    padding: 12px 15px;
    border: none;
    background: transparent;
    font-size: 16px;
    color: #333;
}

.url-scanner-form input[type="text"]:focus {
    outline: none;
}

.scan-button {
    position: relative;
    padding: 12px 25px;
    background: #2271b1;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 120px;
    font-family: 'Cairo', sans-serif;
}

.scan-button:hover {
    background: #135e96;
    transform: translateY(-1px);
}

.scan-button.loading {
    background: #135e96;
    pointer-events: none;
}

.spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.url-scanner-results {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.scan-summary {
    text-align: center;
    margin-bottom: 25px;
}

.scan-ratio {
    font-size: 1.2em;
    color: #333;
    margin-bottom: 15px;
    font-weight: 500;
}

.scan-warning {
    background: #fff5f5;
    border-left: 4px solid #dc3545;
    padding: 15px 20px;
    margin: 15px 0;
    border-radius: 0 8px 8px 0;
}

.scan-safe {
    background: #f0fff4;
    border-left: 4px solid #38a169;
    padding: 15px 20px;
    margin: 15px 0;
    border-radius: 0 8px 8px 0;
}

.scan-details {
    margin-top: 25px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.scan-details h3 {
    color: #2d3748;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.scan-details ul {
    list-style: none;
    padding: 0;
}

.scan-details li {
    padding: 10px 0;
    border-bottom: 1px solid #edf2f7;
    color: #4a5568;
}

.scan-details li:last-child {
    border-bottom: none;
}

.url-scanner-error {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff5f5;
    border-left: 4px solid #dc3545;
    padding: 15px 20px;
    margin: 15px 0;
    border-radius: 0 8px 8px 0;
    color: #c53030;
}

.error-icon {
    font-size: 1.2em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .url-scanner-frontend {
        margin: 20px 15px;
        padding: 20px;
    }

    .input-wrapper {
        flex-direction: column;
    }

    .scan-button {
        width: 100%;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .url-scanner-frontend {
        background: #1a1a1a;
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    }

    .scanner-header h2 {
        color: #ffffff;
    }

    .scanner-description {
        color: #a0aec0;
    }

    .input-wrapper {
        background: #2d3748;
        border-color: #4a5568;
    }

    .url-scanner-form input[type="text"] {
        color: #ffffff;
    }

    .url-scanner-results {
        background: #2d3748;
    }

    .scan-ratio {
        color: #e2e8f0;
    }

    .scan-details {
        background: #1a202c;
    }

    .scan-details h3 {
        color: #e2e8f0;
    }

    .scan-details li {
        border-bottom-color: #4a5568;
        color: #a0aec0;
    }
}

/* Add these RTL-specific styles to your existing CSS */
[dir="rtl"] .url-scanner-frontend {
    text-align: right;
}

[dir="rtl"] .scan-warning,
[dir="rtl"] .scan-safe,
[dir="rtl"] .url-scanner-error {
    border-left: none;
    border-right: 4px solid;
    border-radius: 8px 0 0 8px;
}

[dir="rtl"] .error-icon {
    margin-left: 10px;
    margin-right: 0;
}

/* Update font for better Arabic text display */
.url-scanner-frontend {
    font-family: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}

/* Add these styles to your existing button styles */
[dir="rtl"] .scan-button {
    font-family: 'Cairo', sans-serif;
}

[dir="rtl"] .input-wrapper input {
    font-family: 'Cairo', sans-serif;
} 