/* Contenedor que será la "pared" de pintura */
.graffiti-wall {
	position: relative;
	overflow: hidden;
}

/* Canvas donde se pinta */
.graffiti-wall .graffiti-canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: 10;
	/* Cursor en forma de bote de graffiti (opcional: requiere cursor-spray.png en /assets) */
	cursor: url('cursor-spray.png') 10 10, crosshair;
}

/* Toolbar lateral izquierda */
.graffiti-wall .graffiti-toolbar {
	position: absolute;
	left: 15px;
	top: 50%;
	transform: translateY(-50%);
	z-index: 20;
	display: flex;
	flex-direction: column;
	gap: 10px;
	background: rgba(0, 0, 0, 0.7);
	padding: 10px;
	border-radius: 10px;
	backdrop-filter: blur(4px);
}

/* Título de la toolbar */
.graffiti-wall .graffiti-toolbar-title {
	color: #fff;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-bottom: 4px;
}

/* Paleta de colores */
.graffiti-wall .graffiti-colors {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 4px;
}

.graffiti-wall .graffiti-color-swatch {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	border: 2px solid #fff;
	outline: 2px solid transparent;
	box-sizing: border-box;
	cursor: pointer;
}

.graffiti-wall .graffiti-color-swatch.is-active {
	outline-color: #fff;
}

/* Selector de grosor */
.graffiti-wall .graffiti-size-wrapper {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-bottom: 8px;
}

.graffiti-wall .graffiti-size-label {
	color: #fff;
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.graffiti-wall .graffiti-size-range {
	width: 80px;
}

/* Botones de borrar / guardar */
.graffiti-wall .graffiti-buttons {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.graffiti-wall .graffiti-btn {
	font-size: 10px;
	line-height: 1.2;
	padding: 6px 8px;
	border-radius: 6px;
	border: none;
	cursor: pointer;
	white-space: nowrap;
}

.graffiti-wall .graffiti-btn-clear {
	background: #ff4d4d;
	color: #fff;
}

.graffiti-wall .graffiti-btn-save {
	background: #ffd23f;
	color: #000;
}

/* Botones específicos de móvil: activar / desactivar graffiti */
.graffiti-wall .graffiti-mobile-toggle {
	display: none; /* solo en móvil */
	flex-direction: column;
	gap: 6px;
	margin-top: 4px;
}

.graffiti-wall .graffiti-btn-mobile-start {
	background: #00e676;
	color: #000;
}

.graffiti-wall .graffiti-btn-mobile-stop {
	background: #ff9800;
	color: #000;
}

/* Estado deshabilitado */
.graffiti-wall .graffiti-btn[disabled] {
	opacity: 0.5;
	cursor: default;
}

/* Responsive: toolbar y controles más pequeños en móvil */
@media (max-width: 767px) {
	.graffiti-wall .graffiti-toolbar {
		left: 10px;
		padding: 8px;
	}

	.graffiti-wall .graffiti-color-swatch {
		width: 20px;
		height: 20px;
	}

	.graffiti-wall .graffiti-size-range {
		width: 70px;
	}

	/* Mostrar controles de activar/desactivar graffiti solo en móvil */
    .graffiti-wall .graffiti-mobile-toggle {
		display: flex;
	}
}
