/* Custom grid builder styles */

#grid-container {
    display: grid;
    /* Will be overridden by inline styles in JS */
}

.grid-cell {
    background-color: rgba(255, 255, 255, 0.5);
    border: 1px dashed #cbd5e1;
    border-radius: 6px;
    cursor: crosshair;
    transition: background-color 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 12px;
    user-select: none;
}

html.dark .grid-cell {
    background-color: rgba(30, 41, 59, 0.5);
    border-color: #334155;
    color: #475569;
}

.grid-cell:hover {
    background-color: rgba(99, 102, 241, 0.1);
}

.grid-cell.dragging {
    background-color: rgba(99, 102, 241, 0.3) !important;
    border-color: #6366f1 !important;
}

.grid-cell.area-assigned {
    border: 1px solid transparent;
    /* Replaces dashed border */
    cursor: not-allowed;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    /* background/color injected by JS */
}

.grid-cell.area-assigned.dragging-invalid {
    opacity: 0.5;
}

/* Animations for Modal */
#modal-name-area:not(.hidden) {
    opacity: 1;
}

#modal-name-area:not(.hidden) #modal-content {
    transform: scale(1);
}

/* Base scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: rgba(156, 163, 175, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(156, 163, 175, 0.8);
}