/* Sprite Previewer Styles */
.editor-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 1.5rem;
    height: calc(100vh - 180px);
}

.controls-panel {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    overflow: hidden;
}

.properties-scroll {
    overflow-y: auto;
    flex-grow: 1;
    padding-right: 0.5rem;
}

/* Custom Scrollbar for panel */
.properties-scroll::-webkit-scrollbar {
    width: 6px;
}
.properties-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}
.properties-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.prop-group {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.prop-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.prop-group h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.prop-row {
    margin-bottom: 0.75rem;
}

.prop-row.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.prop-row label {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.custom-input, .custom-select {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    padding: 0.5rem;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.9rem;
}

.custom-input:focus, .custom-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Dropzone */
.drop-zone {
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 2rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.2);
}

.drop-zone:hover, .drop-zone.dragover {
    border-color: var(--primary-color);
    background: rgba(var(--primary-color-rgb), 0.1);
}

.drop-zone .drop-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.drop-zone p {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.drop-zone .text-muted {
    font-size: 0.8rem;
}

/* Canvas Area */
.canvas-panel {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

.panel-header {
    margin-bottom: 1rem;
}

.canvas-wrapper {
    flex-grow: 1;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.checkered-bg {
    background-color: #1a1a1a;
    background-image: 
        linear-gradient(45deg, #2a2a2a 25%, transparent 25%, transparent 75%, #2a2a2a 75%, #2a2a2a),
        linear-gradient(45deg, #2a2a2a 25%, transparent 25%, transparent 75%, #2a2a2a 75%, #2a2a2a);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    padding: 2rem;
    max-width: 400px;
    text-align: center;
}

.modal-content h3 {
    margin-bottom: 1rem;
    color: #ff4757;
}

.modal-content p {
    color: var(--text-light);
    line-height: 1.5;
}
