.cyber-translate-button {
    position: fixed;
    z-index: 9999;
    padding: 12px 24px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.cyber-translate-button:hover {
    background: #45a049;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.cyber-translate-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Default: bottom-right */
.cyber-translate-button {
    bottom: 20px;
    right: 20px;
}

/* Position classes - set via JavaScript based on config */
body[data-translate-position="top-left"] .cyber-translate-button {
    top: 20px;
    bottom: auto;
    left: 20px;
    right: auto;
}

body[data-translate-position="top-right"] .cyber-translate-button {
    top: 20px;
    bottom: auto;
    right: 20px;
    left: auto;
}

body[data-translate-position="bottom-left"] .cyber-translate-button {
    bottom: 20px;
    top: auto;
    left: 20px;
    right: auto;
}

body[data-translate-position="bottom-right"] .cyber-translate-button {
    bottom: 20px;
    top: auto;
    right: 20px;
    left: auto;
}

/* Translation Overlay */
.cyber-translate-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.cyber-translate-overlay-content {
    background: white;
    padding: 40px 60px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 400px;
}

.cyber-translate-spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4CAF50;
    border-radius: 50%;
    animation: cyber-spin 1s linear infinite;
}

@keyframes cyber-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.cyber-translate-overlay-text {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin: 0 0 20px 0;
}

.cyber-translate-cancel-btn {
    background: #f44336;
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.cyber-translate-cancel-btn:hover {
    background: #d32f2f;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .cyber-translate-button {
        padding: 10px 20px;
        font-size: 12px;
    }

    .cyber-translate-overlay-content {
        padding: 30px 40px;
        max-width: 300px;
    }

    .cyber-translate-overlay-text {
        font-size: 16px;
    }
}
