* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ---- MODIFIED ---- */
body {
    background: radial-gradient(ellipse at center, #0a0e27 0%, #000000 100%);
    color: white;
    font-family: 'Courier New', Courier, monospace;
    overflow: hidden; /* This correctly prevents all scrolling */
    height: 100vh; /* We lock the body's height to the viewport height */
}

/* ---- MODIFIED ---- */
#game-container {
    position: relative;
    border: 2px solid transparent;
    background: linear-gradient(45deg, #ff00ff, #00ffff, #ff00ff);
    background-size: 300% 300%;
    animation: borderGlow 3s ease-in-out infinite;
    padding: 2px;
    
    /* ADDED: Make the container fill the screen... */
    width: 100vw;
    height: 100vh;
    
    /* ADDED: ...and center its child (the canvas) inside it. */
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes borderGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

#gameCanvas {
    background-color: #000;
    display: block;
    box-shadow: 0 0 50px rgba(0, 255, 255, 0.5);
}

/* Menu Styles */
.menu-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(ellipse at center, #0a0e27 0%, #000000 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.menu-content {
    text-align: center;
    z-index: 1001;
    background: rgba(0, 0, 0, 0.8);
    padding: 40px;
    border-radius: 15px;
    border: 2px solid #00ffff;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
}

.game-title {
    font-size: 4rem;
    color: #ff00ff;
    text-shadow: 0 0 20px #ff00ff;
    margin-bottom: 20px;
    letter-spacing: 3px;
}

.game-subtitle {
    font-size: 1.2rem;
    color: #00ffff;
    margin-bottom: 30px;
}

.menu-btn {
    padding: 15px 40px;
    font-size: 1.5rem;
    background: linear-gradient(45deg, #ff00ff, #00ffff);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Courier New', Courier, monospace;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.menu-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.7);
}

.controls-info {
    font-size: 0.9rem;
    color: #cccccc;
    line-height: 1.5;
}

.menu-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1" fill="%23ffffff" opacity="0.3"/><circle cx="80" cy="40" r="0.5" fill="%2300ffff" opacity="0.5"/><circle cx="40" cy="80" r="1.5" fill="%23ff00ff" opacity="0.4"/></svg>');
    animation: twinkle 4s infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

#ui-container {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    padding: 20px;
    width: 100%;
    height: 45px;
    display: flex;
    justify-content: space-between;
    font-size: 24px;
    text-shadow: 2px 2px 4px #000, 0 0 10px currentColor;
}

.ui-element {
    padding: 10px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    backdrop-filter: blur(5px);
}

.ui-element span:first-child {
    color: #00ffff;
    margin-right: 10px;
}

.ui-element span:last-child {
    color: #ffff00;
    font-weight: bold;
}

#game-over-ui {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(20, 0, 30, 0.9));
    padding: 40px;
    border: 2px solid #ff00ff;
    border-radius: 10px;
    text-align: center;
    font-size: 28px;
    box-shadow: 0 0 50px rgba(255, 0, 255, 0.5), inset 0 0 30px rgba(255, 0, 255, 0.2);
    backdrop-filter: blur(10px);
}

#game-over-ui h1 {
    font-size: 48px;
    color: #ff0066;
    text-shadow: 0 0 20px currentColor;
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

#game-over-ui p {
    margin: 20px 0;
    color: #00ffff;
}

#final-score {
    color: #ffff00;
    font-size: 36px;
    text-shadow: 0 0 10px currentColor;
}

#restart-button {
    margin-top: 30px;
    padding: 15px 40px;
    font-size: 24px;
    background: linear-gradient(45deg, #ff00ff, #00ffff);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Courier New', Courier, monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.5);
}

#restart-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 255, 0.7);
    background: linear-gradient(45deg, #ff33ff, #33ffff);
}

#restart-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 255, 255, 0.5);
}

/* Wave Configuration Panel Styles */
.config-panel {
    position: fixed;
    top: 0;
    left: 0;
    transform: none;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95), rgba(20, 0, 30, 0.95));
    border: 3px solid #00ffff;
    border-radius: 0;
    padding: 25px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 50px rgba(0, 255, 255, 0.7);
    font-size: 16px;
    overflow-y: auto;
    z-index: 1000;
    transition: all 0.3s ease;
}

.config-panel h3 {
    color: #ff00ff;
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
    text-shadow: 0 0 15px #ff00ff;
}

.config-section {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.config-section label {
    display: block;
    color: #00ffff;
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 14px;
}

.config-section select,
.config-section input[type="range"] {
    width: 100%;
    margin-bottom: 10px;
}

.config-section select {
    padding: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: 2px solid #00ffff;
    border-radius: 5px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
}

.config-section input[type="range"] {
    -webkit-appearance: none;
    height: 10px;
    border-radius: 5px;
    background: linear-gradient(to right, #ff00ff, #00ffff);
    outline: none;
}

.config-section input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.config-section input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.wave-info {
    color: #ffff00;
    font-size: 12px;
    line-height: 1.4;
}

.wave-info div {
    margin: 3px 0;
}

.config-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.config-buttons button {
    flex: 1;
    min-width: 80px;
    padding: 8px 12px;
    background: linear-gradient(45deg, #ff00ff, #00ffff);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Courier New', Courier, monospace;
    font-size: 11px;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.config-buttons button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 255, 255, 0.5);
    background: linear-gradient(45deg, #ff33ff, #33ffff);
}

.config-buttons button:active {
    transform: translateY(0);
}

.config-buttons button.active {
    background: linear-gradient(45deg, #00ff00, #ffff00);
    color: #000;
}

.config-toggle {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #ff00ff, #00ffff);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.5);
}

.config-toggle:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 6px 20px rgba(0, 255, 255, 0.7);
}

.hidden {
    display: none;
}

/* Tab System Styles */
.config-tabs {
    display: flex;
    margin-bottom: 25px;
    border-bottom: 3px solid rgba(0, 255, 255, 0.3);
}

.tab-button {
    flex: 1;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.5);
    color: #00ffff;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-family: 'Courier New', Courier, monospace;
    font-size: 16px;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.tab-button:hover {
    background: rgba(0, 255, 255, 0.1);
}

.tab-button.active {
    background: rgba(0, 255, 255, 0.2);
    border-bottom-color: #ff00ff;
    color: #ff00ff;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Wave Editor Styles */
.wave-editor-container {
    display: flex;
    gap: 10px;
    height: 60vh;
}

.wave-navigator {
    flex: 0 0 140px;
    border-right: 1px solid rgba(0, 255, 255, 0.3);
    padding-right: 10px;
}

.wave-navigator h4 {
    color: #00ffff;
    margin: 0 0 10px 0;
    font-size: 14px;
}

.level-controls {
    margin-bottom: 10px;
    font-size: 10px;
}

.level-controls label {
    color: #ffff00;
    display: block;
    margin-bottom: 3px;
}

.level-controls input {
    width: 40px;
    padding: 2px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #00ffff;
    color: white;
    font-size: 10px;
}

.level-controls button {
    padding: 2px 6px;
    background: linear-gradient(45deg, #ff00ff, #00ffff);
    border: none;
    color: white;
    font-size: 9px;
    cursor: pointer;
    margin-left: 3px;
}

.wave-list {
    max-height: 40vh;
    overflow-y: auto;
    margin-bottom: 10px;
}

.wave-item {
    display: flex;
    align-items: center;
    padding: 3px 5px;
    margin-bottom: 2px;
    cursor: pointer;
    border-radius: 3px;
    font-size: 10px;
    transition: all 0.2s ease;
}

.wave-item:hover {
    background: rgba(0, 255, 255, 0.1);
}

.wave-item.active {
    background: rgba(255, 0, 255, 0.3);
    color: #ff00ff;
}

.wave-item.current {
    border-left: 3px solid #ffff00;
    padding-left: 7px;
}

.wave-item.completed {
    color: #888;
}

.wave-item.boss {
    color: #ff0066;
    font-weight: bold;
}

.wave-nav-controls {
    border-top: 1px solid rgba(0, 255, 255, 0.3);
    padding-top: 8px;
}

.wave-nav-controls input {
    width: 50px;
    padding: 2px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #00ffff;
    color: white;
    font-size: 10px;
    margin-bottom: 5px;
}

.wave-nav-controls button {
    padding: 3px 6px;
    background: linear-gradient(45deg, #ff00ff, #00ffff);
    border: none;
    color: white;
    font-size: 9px;
    cursor: pointer;
    width: 100%;
}

/* Level Import/Export Styles */
.level-io-section {
    border-top: 1px solid rgba(0, 255, 255, 0.3);
    padding-top: 8px;
    margin-top: 8px;
}

.level-io-section h4 {
    color: #00ffff;
    margin: 0 0 8px 0;
    font-size: 12px;
    text-align: center;
}

.io-buttons {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.io-btn {
    padding: 4px 8px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-family: 'Courier New', Courier, monospace;
    font-size: 8px;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.export-btn {
    background: linear-gradient(45deg, #00ff00, #66ff66);
    color: white;
}

.import-btn {
    background: linear-gradient(45deg, #0066ff, #66aaff);
    color: white;
}

.clear-btn {
    background: linear-gradient(45deg, #ff6600, #ffaa00);
    color: white;
}

.io-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.io-btn:active {
    transform: translateY(0);
}

/* Selected Wave Controls */
.selected-wave-controls {
    flex: 1;
    padding-left: 10px;
}

.wave-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
}

.wave-header h4 {
    color: #ff00ff;
    margin: 0;
    font-size: 14px;
}

.wave-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wave-controls label {
    color: #00ffff;
    font-size: 10px;
}

.wave-controls select {
    padding: 2px 4px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: 1px solid #00ffff;
    font-size: 10px;
}

.wave-controls button {
    padding: 3px 8px;
    background: linear-gradient(45deg, #ff6600, #ffaa00);
    border: none;
    color: white;
    font-size: 9px;
    cursor: pointer;
    border-radius: 3px;
}

.wave-properties {
    margin-bottom: 15px;
}

/* Formation Preview Styles */
.formation-preview-section {
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
    padding-bottom: 15px;
}

.preview-container {
    display: flex;
    gap: 10px;
}

.preview-canvas-container,
.wave-timeline-container {
    flex: 1;
}

.preview-canvas-container h5,
.wave-timeline-container h5 {
    color: #00ffff;
    margin: 0 0 8px 0;
    font-size: 11px;
    text-align: center;
}

#formation-preview,
#wave-timeline {
    width: 100%;
    height: auto;
    border: 1px solid #00ffff;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 3px;
    display: block;
}

#formation-preview {
    max-width: 200px;
    max-height: 150px;
}

#wave-timeline {
    max-width: 200px;
    max-height: 60px;
}

.preview-info {
    text-align: center;
    margin-top: 5px;
}

.preview-info span {
    color: #ffff00;
    font-size: 9px;
}

.timeline-canvas-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timeline-controls {
    display: flex;
    gap: 5px;
    margin-top: 5px;
}

.timeline-btn {
    padding: 3px 6px;
    background: linear-gradient(45deg, #ff00ff, #00ffff);
    border: none;
    color: white;
    font-size: 8px;
    cursor: pointer;
    border-radius: 2px;
    font-family: 'Courier New', Courier, monospace;
}

.timeline-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Enemy Types Section */
.enemy-types-section h5,
.formations-section h5 {
    color: #00ffff;
    margin: 0 0 8px 0;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.add-btn {
    padding: 2px 6px;
    background: linear-gradient(45deg, #00ff00, #66ff66);
    border: none;
    color: white;
    font-size: 9px;
    cursor: pointer;
    border-radius: 3px;
}

.enemy-type-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px;
    margin-bottom: 3px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.enemy-type-item input[type="checkbox"] {
    margin: 0;
}

.enemy-type-item label {
    flex: 1;
    color: #ffffff;
    font-size: 10px;
    margin: 0;
}

.enemy-count-control {
    display: flex;
    align-items: center;
    gap: 4px;
}

.enemy-count-control input[type="range"] {
    width: 60px;
    height: 4px;
}

.enemy-count-control span {
    color: #ffff00;
    font-size: 10px;
    min-width: 15px;
}

/* Formation Items */
.formation-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px;
    margin-bottom: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    font-size: 10px;
}

.formation-info {
    flex: 1;
    color: #ffffff;
}

.formation-type {
    color: #00ffff;
    font-weight: bold;
}

.formation-enemies {
    color: #ffff00;
    margin-left: 5px;
}

.formation-delay {
    color: #ff00ff;
    margin-left: 5px;
}

.formation-controls {
    display: flex;
    gap: 4px;
}

.formation-controls button {
    padding: 2px 6px;
    border: none;
    font-size: 8px;
    cursor: pointer;
    border-radius: 2px;
}

.edit-btn {
    background: linear-gradient(45deg, #0066ff, #66aaff);
    color: white;
}

.remove-btn {
    background: linear-gradient(45deg, #ff0066, #ff6600);
    color: white;
}

.up-btn, .down-btn {
    background: linear-gradient(45deg, #666666, #aaaaaa);
    color: white;
    font-size: 8px;
    width: 18px;
    height: 18px;
}

/* Enemy Creator Tab Styles */
.enemy-creator-container {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.creator-left {
    flex: 0 0 100px;
}

.creator-right {
    flex: 1;
}

.image-section {
    text-align: center;
}

.image-section label {
    display: block;
    color: #00ffff;
    font-size: 11px;
    margin-bottom: 5px;
}

.image-section input[type="file"] {
    width: 100%;
    margin-bottom: 8px;
    padding: 3px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #00ffff;
    color: white;
    font-size: 9px;
    border-radius: 3px;
}

#image-preview {
    width: 80px;
    height: 64px;
    border: 2px solid #00ffff;
    background: rgba(0, 0, 0, 0.3);
    margin-bottom: 5px;
    border-radius: 3px;
}

.image-info {
    font-size: 9px;
    color: #888;
    text-align: center;
}

.creator-actions {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.creator-actions button {
    padding: 6px 12px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-family: 'Courier New', Courier, monospace;
    font-size: 9px;
    transition: all 0.2s ease;
}

.test-btn {
    background: linear-gradient(45deg, #ffaa00, #ff6600);
    color: white;
}

.save-btn {
    background: linear-gradient(45deg, #00ff00, #66ff66);
    color: white;
}

.creator-actions .cancel-btn {
    background: linear-gradient(45deg, #666666, #aaaaaa);
    color: white;
}

.creator-actions button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Custom Enemy List */
.custom-enemy-list {
    border-top: 1px solid rgba(0, 255, 255, 0.3);
    padding-top: 15px;
}

.custom-enemy-list h5 {
    color: #00ffff;
    margin: 0 0 10px 0;
    font-size: 12px;
}

.saved-enemies {
    max-height: 150px;
    overflow-y: auto;
}

.saved-enemy-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px;
    margin-bottom: 3px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    font-size: 10px;
}

.saved-enemy-info {
    flex: 1;
    color: #ffffff;
}

.saved-enemy-name {
    color: #ff00ff;
    font-weight: bold;
}

.saved-enemy-stats {
    color: #ffff00;
    font-size: 9px;
    margin-left: 5px;
}

.saved-enemy-controls {
    display: flex;
    gap: 3px;
}

.saved-enemy-controls button {
    padding: 2px 5px;
    border: none;
    font-size: 8px;
    cursor: pointer;
    border-radius: 2px;
}

.delete-enemy-btn {
    background: linear-gradient(45deg, #ff0066, #ff6600);
    color: white;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    #ui-container {
        font-size: 18px;
        padding: 10px;
    }
    
    .ui-element {
        padding: 5px 10px;
    }
    
    #game-over-ui {
        padding: 20px;
        font-size: 20px;
    }
    
    #game-over-ui h1 {
        font-size: 36px;
    }
    
    #restart-button {
        font-size: 18px;
        padding: 12px 30px;
    }
    
    .config-panel {
        width: 350px;
        right: 10px;
        font-size: 11px;
        max-height: 75vh;
    }
    
    .wave-editor-container {
        flex-direction: column;
        height: auto;
    }
    
    .wave-navigator {
        flex: none;
        border-right: none;
        border-bottom: 1px solid rgba(0, 255, 255, 0.3);
        padding-right: 0;
        padding-bottom: 10px;
        margin-bottom: 10px;
    }
    
    .selected-wave-controls {
        padding-left: 0;
    }
    
    .config-toggle {
        top: 60px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .game-title {
        font-size: 2.5rem;
    }
    
    .menu-btn {
        font-size: 1.2rem;
        padding: 12px 30px;
    }
}

@media (max-width: 480px) {
    .config-panel {
        width: calc(100vw - 20px);
        right: 10px;
        left: 10px;
        transform: translateY(-50%);
    }
    
    .game-title {
        font-size: 2rem;
    }
}

/* Formation Templates Styles */
.formation-templates-section {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
}

.template-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
}

.template-btn {
    background: linear-gradient(135deg, rgba(255, 0, 255, 0.2), rgba(0, 255, 255, 0.2));
    border: 1px solid rgba(0, 255, 255, 0.5);
    color: #00ffff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.template-btn:hover {
    background: linear-gradient(135deg, rgba(255, 0, 255, 0.4), rgba(0, 255, 255, 0.4));
    border-color: #00ffff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* Asset Manager Styles */
.asset-manager-container {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    padding-right: 15px;
}

.asset-category {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(0, 255, 255, 0.3);
}

.asset-category h4 {
    color: #00ffff;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.asset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
}

.asset-slot {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(0, 50, 100, 0.3));
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 10px;
    padding: 15px;
    transition: all 0.3s ease;
}

.asset-slot:hover {
    border-color: #00ffff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
}

.asset-preview-container {
    text-align: center;
    margin-bottom: 12px;
}

.asset-preview {
    border: 2px solid rgba(0, 255, 255, 0.5);
    border-radius: 6px;
    background: #000;
    display: block;
    margin: 0 auto 8px auto;
}

.asset-name {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: bold;
}

.asset-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.replace-btn, .reset-btn {
    background: linear-gradient(135deg, rgba(255, 0, 255, 0.3), rgba(0, 255, 255, 0.3));
    border: 2px solid rgba(0, 255, 255, 0.5);
    color: #00ffff;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.replace-btn:hover, .reset-btn:hover {
    background: linear-gradient(135deg, rgba(255, 0, 255, 0.5), rgba(0, 255, 255, 0.5));
    transform: translateY(-1px);
}

.reset-btn {
    background: linear-gradient(135deg, rgba(255, 100, 0, 0.3), rgba(255, 0, 0, 0.3));
    border-color: rgba(255, 100, 0, 0.5);
    color: #ffa500;
}

.reset-btn:hover {
    background: linear-gradient(135deg, rgba(255, 100, 0, 0.5), rgba(255, 0, 0, 0.5));
}

.asset-pack-section {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(0, 25, 50, 0.4));
    padding: 15px;
    border-radius: 6px;
    border: 1px solid rgba(0, 255, 255, 0.2);
}

.asset-pack-section h4 {
    color: #00ffff;
    margin-bottom: 10px;
}

.pack-controls {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.pack-btn {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.2), rgba(255, 0, 255, 0.2));
    border: 2px solid rgba(0, 255, 255, 0.5);
    color: #00ffff;
    padding: 12px 18px;
    border-radius: 6px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.pack-btn:hover {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.4), rgba(255, 0, 255, 0.4));
    transform: translateY(-1px);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.reset-all-btn {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.2), rgba(255, 100, 0, 0.2));
    border-color: rgba(255, 100, 0, 0.5);
    color: #ff6666;
}

.reset-all-btn:hover {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.4), rgba(255, 100, 0, 0.4));
    box-shadow: 0 0 10px rgba(255, 100, 0, 0.3);
}

.pack-info {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    font-style: italic;
}

.pack-info p {
    margin: 0;
}

