/* Custom CSS for Font/Icon Editor */

:root {
    --color-grid-border: #e5e7eb; /* grayish */
    --color-grid-cell-off: #ffffff;
    --color-grid-cell-on: #0d9488;  /* teal-600 */
    --color-grid-cell-hover: #99f6e4; /* teal-200 */
}

/* Custom Shadow mapping to the one from emulator */
.custom-shadow {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Hide scrollbar for Chrome, Safari and Opera */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
/* Hide scrollbar for IE, Edge and Firefox */
.no-scrollbar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Grid drawing container */
.k1200-grid {
    display: grid;
    /* Grid template columns will be set via inline styling dynamically */
    grid-template-rows: repeat(9, 1fr);
    gap: 1px;
    background-color: var(--color-grid-border); /* provides the border color via gap */
    border: 1px solid var(--color-grid-border);
    padding: 1px;
    width: fit-content;
}

/* Base cell */
.k1200-cell {
    width: 32px;
    height: 32px;
    background-color: var(--color-grid-cell-off);
    cursor: crosshair;
    user-select: none; /* Prevent text selection while dragging */
    touch-action: none; /* Prevent scrolling on touch */
}

/* Active cell */
.k1200-cell.active {
    background-color: var(--color-grid-cell-on);
}

/* Hover cell */
.k1200-cell:hover {
    border: 2px solid var(--color-grid-cell-hover);
    /* box-sizing is border-box by default in tailwind */
}

/* Active hover cell */
.k1200-cell.active:hover {
    background-color: var(--color-grid-cell-on);
    filter: brightness(1.1);
}

/* Row Labels */
.row-label {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    font-size: 12px;
    color: #6b7280; /* gray-500 */
    font-family: monospace;
    user-select: none;
}

/* Column Labels */
.col-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    font-size: 12px;
    color: #6b7280; /* gray-500 */
    font-family: monospace;
    user-select: none;
}
