html, body {
    margin: 0;
    padding: 0;
    height: 100vh;
    width: 100vw;
    overflow: hidden; /* Prevent browser scrolling */
    overscroll-behavior: none; /* Prevent overscroll in all directions */
    position: fixed; /* Ensure body doesn't scroll */
}

#app {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* Drag and drop visual feedback */
body.drag-drop-active {
    background-color: #001122 !important;
    transition: background-color 0.2s ease;
}

body.drag-drop-active::after {
    content: '📁 Drop images here';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 100, 200, 0.9);
    color: white;
    padding: 20px 40px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    pointer-events: none;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 100, 200, 0.3);
}

/* Floating toolbar styling */
.floating-toolbar {
    position: fixed;
    background: white;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    gap: 2px;
    padding: 4px;
    transform: translateX(-50%);
}

/* Animation toolbar submenu */
.animation-submenu {
    padding: 8px;
    min-width: 240px;
}

.animation-submenu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.animation-item-primary {
    color: black !important;
}

.animation-no-animations-text {
    color: #666 !important;
}

.animation-dialog-paper {
    width: 750px !important;
    height: 600px !important;
}

.animation-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 8px;
}

.animation-no-animations {
    color: #999;
}

.animation-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid transparent;
    background: transparent;
}

.animation-tile.selected {
    border: 2px solid #1976d2;
    background: rgba(25, 118, 210, 0.06);
}

.animation-icon-wrapper {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.animation-icon {
    font-size: 28px !important;
    color: #333 !important;
}

.animation-tile-label {
    margin-top: 6px;
    font-size: 13px;
    text-align: center;
    color: #222;
}

/* Product Tour Highlight Animation */
@keyframes tourPulse {
    0%, 100% {
        box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.3), 0 0 20px rgba(33, 150, 243, 0.5);
    }
    50% {
        box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.5), 0 0 30px rgba(33, 150, 243, 0.8);
    }
}
