/* Enhanced Editor Styles with Drag & Drop */

/* Edit Mode Button */
.edit-mode-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    background: linear-gradient(45deg, #00ffff, #0080ff);
    color: #000;
    border: none;
    border-radius: 25px;
    padding: 12px 20px;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.edit-mode-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 255, 0.5);
    background: linear-gradient(45deg, #ffff00, #ff00ff);
}

.edit-mode-btn.editing {
    background: linear-gradient(45deg, #ff00ff, #ff0080);
    animation: pulse 2s infinite;
}

/* Action Panel */
.editor-action-panel {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    display: none;
    flex-direction: column;
    gap: 10px;
    background: rgba(0, 0, 0, 0.9);
    padding: 20px;
    border-radius: 15px;
    border: 2px solid #00ffff;
    box-shadow: 0 8px 32px rgba(0, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.action-btn {
    background: linear-gradient(45deg, #1a1a2e, #16213e);
    color: #00ffff;
    border: 2px solid #00ffff;
    border-radius: 8px;
    padding: 10px 15px;
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    min-width: 140px;
}

.action-btn:hover {
    background: linear-gradient(45deg, #00ffff, #0080ff);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.4);
}

.save-btn {
    border-color: #00ff00;
    color: #00ff00;
}

.save-btn:hover {
    background: linear-gradient(45deg, #00ff00, #80ff00);
}

.cancel-btn {
    border-color: #ff0080;
    color: #ff0080;
}

.cancel-btn:hover {
    background: linear-gradient(45deg, #ff0080, #ff4080);
}

.upload-btn {
    border-color: #ffff00;
    color: #ffff00;
}

.upload-btn:hover {
    background: linear-gradient(45deg, #ffff00, #ff8000);
}

/* Editable Elements */
.editable-element {
    border: 2px dashed #00ffff !important;
    border-radius: 4px;
    padding: 4px;
    transition: all 0.3s ease;
    cursor: text;
    position: relative;
}

.editable-element:hover {
    border-color: #ffff00 !important;
    box-shadow: 0 0 10px rgba(255, 255, 0, 0.3);
}

.editable-element:focus {
    border-color: #00ff00 !important;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
    outline: none;
}

.selected-element {
    border-color: #ff00ff !important;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.6) !important;
}

/* Editable Images */
.editable-image {
    border: 3px dashed #ffff00 !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.editable-image:hover {
    border-color: #ff00ff !important;
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.4);
    transform: scale(1.02);
}

.selected-image {
    border-color: #00ff00 !important;
    box-shadow: 0 0 25px rgba(0, 255, 0, 0.7) !important;
    transform: scale(1.05);
}

/* Drag & Drop States */
.dragging {
    opacity: 0.5;
    transform: rotate(5deg);
    z-index: 1000;
    border-color: #ff0080 !important;
    box-shadow: 0 8px 25px rgba(255, 0, 128, 0.6) !important;
}

.drag-over {
    background: rgba(0, 255, 255, 0.1) !important;
    border-color: #00ffff !important;
    transform: scale(1.02);
}

/* Notifications */
.notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10001;
    padding: 15px 25px;
    border-radius: 8px;
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    animation: slideIn 0.3s ease-out;
}

.notification-success {
    background: rgba(0, 255, 0, 0.9);
    color: #000;
    border: 2px solid #00ff00;
}

.notification-error {
    background: rgba(255, 0, 0, 0.9);
    color: #fff;
    border: 2px solid #ff0000;
}

.notification-warning {
    background: rgba(255, 255, 0, 0.9);
    color: #000;
    border: 2px solid #ffff00;
}

.notification-info {
    background: rgba(0, 255, 255, 0.9);
    color: #000;
    border: 2px solid #00ffff;
}

/* Instruction Modal */
.instruction-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.instruction-content {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #fff;
    padding: 30px;
    border-radius: 15px;
    border: 2px solid #00ffff;
    box-shadow: 0 20px 60px rgba(0, 255, 255, 0.3);
    max-width: 500px;
    text-align: left;
}

.instruction-content h3 {
    color: #00ffff;
    margin-bottom: 20px;
    font-family: 'Orbitron', monospace;
    text-align: center;
}

.instruction-content ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.instruction-content li {
    margin: 10px 0;
    padding: 8px 0;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
}

.instruction-content button {
    background: linear-gradient(45deg, #00ffff, #0080ff);
    color: #000;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    width: 100%;
    transition: all 0.3s ease;
}

.instruction-content button:hover {
    background: linear-gradient(45deg, #ffff00, #ff00ff);
    transform: translateY(-2px);
}

/* Animations */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .edit-mode-btn {
        top: 10px;
        right: 10px;
        padding: 10px 15px;
        font-size: 0.8rem;
    }
    
    .editor-action-panel {
        top: 60px;
        right: 10px;
        padding: 15px;
    }
    
    .action-btn {
        padding: 8px 12px;
        font-size: 0.7rem;
        min-width: 120px;
    }
    
    .instruction-content {
        margin: 20px;
        padding: 20px;
    }
    
    .notification {
        margin: 0 20px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .edit-mode-btn {
        padding: 8px 12px;
        font-size: 0.7rem;
    }
    
    .editor-action-panel {
        top: 50px;
        right: 5px;
        padding: 10px;
    }
    
    .action-btn {
        padding: 6px 10px;
        font-size: 0.6rem;
        min-width: 100px;
    }
}

