﻿
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--dark-bg);
    color: var(--gothic-silver);
    overflow: hidden;
    height: 100vh;
}

#container {
    display: flex;
    height: 100vh;
    position: relative;
}

#canvasContainer {
    flex: 1;
    position: relative;
    background: linear-gradient(135deg, var(--gothic-black) 0%, var(--gothic-dark-gray) 100%);
}

#controls-panel {
    width: 320px;
    background: var(--gothic-dark-gray);
    border-left: 2px solid var(--gothic-red);
    overflow-y: auto;
    padding: 20px;
    box-shadow: -5px 0 15px var(--shadow-dark);
    transition: transform 0.3s ease;
}

.panel-section {
    background: var(--gothic-gray);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px var(--shadow-light);
}

.section-title {
    color: var(--gothic-red);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gothic-red);
    letter-spacing: 1px;
}

.control-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    color: var(--gothic-silver);
    font-size: 14px;
    font-weight: 500;
}

input[type="number"],
input[type="color"],
input[type="file"],
select {
    width: 100%;
    padding: 8px 12px;
    background: var(--gothic-dark-gray);
    border: 1px solid var(--gothic-light-gray);
    border-radius: 4px;
    color: var(--gothic-white);
    font-size: 14px;
    transition: all 0.3s ease;
}

    input[type="number"]:focus,
    select:focus {
        outline: none;
        border-color: var(--gothic-red);
        box-shadow: 0 0 5px rgba(178, 34, 34, 0.3);
    }

.btn {
    width: 100%;
}



.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #a02530 100%);
}

    .btn-danger:hover {
        background: linear-gradient(135deg, #e74c5c 0%, #b02838 100%);
    }

#wall-list {
    max-height: 200px;
    overflow-y: auto;
    background: var(--gothic-dark-gray);
    border-radius: 4px;
    padding: 5px;
}

.wall-item {
    padding: 8px;
    margin-bottom: 5px;
    background: var(--gothic-light-gray);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .wall-item:hover {
        background: var(--gothic-red);
        transform: translateX(5px);
    }

    .wall-item.selected {
        background: var(--gothic-red);
        box-shadow: 0 2px 5px var(--shadow-light);
    }

.delete-wall {
    background: #dc3545;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
}

#info-display {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(26, 26, 26, 0.9);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--gothic-red);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px var(--shadow-dark);
}

    #info-display h3 {
        color: var(--gothic-red);
        margin-bottom: 10px;
        font-size: 16px;
    }

    #info-display p {
        color: var(--gothic-silver);
        font-size: 13px;
        margin: 5px 0;
    }

.mobile-toggle {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: var(--gothic-red);
    color: var(--gothic-white);
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 2px 10px var(--shadow-dark);
}

@media (max-width: 768px) {
    #controls-panel {
        position: absolute;
        right: 0;
        top: 0;
        height: 100%;
        z-index: 999;
        transform: translateX(100%);
    }

        #controls-panel.active {
            transform: translateX(0);
        }

    .mobile-toggle {
        display: block;
    }

    #info-display {
        top: 70px;
    }
}

.loading-overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 26, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--gothic-gray);
    border-top: 3px solid var(--gothic-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.texture-preview {
    width: 100%;
    height: 60px;
    background: var(--gothic-dark-gray);
    border: 1px solid var(--gothic-light-gray);
    border-radius: 4px;
    margin-top: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gothic-silver);
    font-size: 12px;
    overflow: hidden;
}

    .texture-preview img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }


.gothic-select {
    background-color: var(--gothic-gray);
    color: var(--gothic-white);
    border: 2px solid var(--gothic-light-gray);
    border-radius: 0.3rem;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    cursor: pointer;
    appearance: none;
    box-shadow: inset 0 0 5px var(--shadow-dark);
    transition: all 0.2s ease;
}

    /* Hover and focus */
    .gothic-select:hover,
    .gothic-select:focus {
        border-color: var(--gothic-red);
        box-shadow: 0 0 6px var(--gothic-red), inset 0 0 4px var(--shadow-dark);
        outline: none;
    }

/* Dropdown arrow (custom gothic style) */
.gothic-select {
    background-image: linear-gradient(45deg, transparent 50%, var(--gothic-white) 50%), linear-gradient(135deg, var(--gothic-white) 50%, transparent 50%);
    background-position: right 1rem center, right 0.75rem center;
    background-size: 0.5rem 0.5rem;
    background-repeat: no-repeat;
    padding-right: 2rem;
}

.undoButton {
    display: block;
    width: 25px;
    height: 25px;
    margin-left: 4px;
    font-size: 12px;
    padding-top:1px;
    padding-right:3px;
}

.sideBySide {
    display: flex;
    align-items: center; /* centers vertically */
}

.thumbnail {
    width: 100px; /* thumbnail width */
    height: auto; /* keep aspect ratio */
    display: block; /* avoid inline gaps */
}
/*
.undoIconSpacing{
    margin-bottom: 3px;
    margin-right: 3px;
}*/

