/* Custom scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(0, 184, 148, 0.2);
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 184, 148, 0.5);
}

/* Base styles */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.viewport-btn.active {
    background: rgba(0, 184, 148, 0.2);
    color: #55EFC4;
    border-color: rgba(0, 184, 148, 0.5);
}

/* Grid Cell Interactive Styles */
.grid-cell {
    border: 1px dashed rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.02);
    transition: background-color 0.2s, border-color 0.2s;
    user-select: none;
}

.grid-cell:hover {
    background-color: rgba(0, 184, 148, 0.1);
    border-color: rgba(0, 184, 148, 0.3);
}

.grid-cell.drag-over {
    background-color: rgba(85, 239, 196, 0.3);
    border: 1px solid #55EFC4;
}

/* Configured Areas */
.grid-area {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1A1A2E;
    font-weight: 700;
    font-size: 0.875rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: context-menu;
    transition: transform 0.2s, box-shadow 0.2s;
}

.grid-area:hover {
    transform: scale(0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.bg-pattern {
    background-image: repeating-linear-gradient(45deg,
            rgba(255, 255, 255, 0.03) 0,
            rgba(255, 255, 255, 0.03) 1px,
            transparent 1px,
            transparent 10px);
}