/* ============================================================
   SHARED BUTTON MODULE — Album Collection
   Replaces custom per-template button rules
   ============================================================ */

/* Base button */
.btn {
	font-size: 12px;
	font-weight: 400;
	color: #fff;
	width: 80px;
	height: 25px;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	position: relative;
	overflow: hidden;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	user-select: none;
}

/* Hover fill sweep */
.btn::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	width: 0%;
	height: 100%;
	z-index: -1;
	transition: width .25s ease-out;
}

.btn:hover::before {
	width: 100%;
}

/* Elastic press */
.btn:active {
	transform: scale(0.94);
	animation: elastic-press 0.25s ease-out;
}

@keyframes elastic-press {
	0%   { transform: scale(1); }
	50%  { transform: scale(0.90); }
	80%  { transform: scale(1.03); }
	100% { transform: scale(1); }
}

/* ------------------------------------------------------------
   COLOR VARIANTS (used across all editing pages)
   ------------------------------------------------------------ */

/* Save / Guardar */
.btn-save {
	background: var(--verde);
}
.btn-save::before {
	background: var(--verde-claro);
}

/* Cancel / Cancelar */
.btn-cancel {
	background: var(--rojo);
}
.btn-cancel::before {
	background: #db8a97;
}

/* Delete / Borrar */
.btn-delete {
	background: var(--negro);
}
.btn-delete::before {
	background: #999;
}

/* Upload */
.btn-upload {
	background: var(--verde-claro);
	font-variant: small-caps;
}
.btn-upload::before {
	background: var(--verde);
}

/* Optional disabled state */
.btn[disabled],
.btn.disabled {
	opacity: .5;
	cursor: not-allowed;
	pointer-events: none;
}