/* ==========================
   CONTAINER
========================== */

.bylit-ch-container {
	max-width: 420px;
	margin: 30px auto;
	padding: 25px;
	border-radius: 20px;
	background: linear-gradient(145deg, #ffffff, #f0f2f5);
	box-shadow: 0 10px 35px rgba(0,0,0,0.08);
	text-align: center;
	font-family: -apple-system, BlinkMacSystemFont, sans-serif;
	transition: 0.3s ease;
}

.bylit-ch-pwa-install {
	display: grid;
	grid-template-columns: 52px 1fr auto;
	gap: 12px;
	align-items: center;
	text-align: left;
	background: #fff;
	border: 1px solid #e4e7ec;
	border-left: 4px solid #ff9618;
	border-radius: 14px;
	padding: 12px;
	margin-bottom: 18px;
	box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.bylit-ch-pwa-install[hidden] {
	display: none;
}

.bylit-ch-pwa-install img {
	width: 52px;
	height: 52px;
	border-radius: 12px;
	box-shadow: 0 3px 10px rgba(0,0,0,0.12);
}

.bylit-ch-pwa-copy {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.bylit-ch-pwa-copy strong {
	color: #123d67;
	font-size: 14px;
}

.bylit-ch-pwa-copy span {
	color: #555;
	font-size: 12px;
	line-height: 1.35;
}

.bylit-ch-pwa-ios {
	color: #8a5a00 !important;
	font-weight: 600;
}

.bylit-ch-pwa-actions {
	display: flex;
	align-items: center;
	gap: 6px;
}

.bylit-ch-pwa-add {
	background: #145a92;
	color: #fff;
	border: 0;
	border-radius: 10px;
	padding: 9px 12px;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}

.bylit-ch-pwa-dismiss {
	width: 30px;
	height: 30px;
	border: 0;
	border-radius: 50%;
	background: #f0f2f5;
	color: #667085;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}

/* ==========================
   STATUS + HORA
========================== */

.bylit-ch-status {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 15px;
	margin-bottom: 10px;
}

.bylit-ch-status strong {
	display: inline-block;
	padding: 6px 14px;
	border-radius: 50px;
	font-size: 13px;
}

/* Estat colors */

.status-working strong {
	background: #d4f5d4;
	color: #117a11;
}

.status-break strong {
	background: #fff3cd;
	color: #8a6d3b;
}

.status-finished strong {
	background: #f8d7da;
	color: #842029;
}

/* Hora actual */

.bylit-ch-clock-now {
	font-size: 14px;
	opacity: 0.6;
	font-weight: 500;
}

/* ==========================
   TIMER PRINCIPAL
========================== */

.bylit-ch-timer {
	font-size: 42px;
	font-weight: bold;
	margin: 15px 0 20px 0;
	letter-spacing: 1px;
}

/* ==========================
   BOTONS
========================== */

.bylit-ch-buttons {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.bylit-ch-btn {
	padding: 14px;
	border: none;
	border-radius: 12px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: 0.2s ease;
}

.bylit-ch-btn:hover:not(:disabled) {
	transform: translateY(-2px);
}

/* Tipus de botó */

.bylit-ch-btn[data-action="in"] {
	background: #2e7d32;
	color: white;
}

.bylit-ch-btn[data-action="break_start"] {
	background: #ff9800;
	color: white;
}

.bylit-ch-btn[data-action="break_end"] {
	background: #2196f3;
	color: white;
}

.bylit-ch-btn-danger {
	background: #b00020;
	color: white;
}

.bylit-ch-btn-disabled {
	background: #ccc;
	cursor: not-allowed;
	opacity: 0.7;
}
.bylit-ch-status-warning{
	background:#fff7d6;
	border-left:4px solid #f0b429;
	padding:10px 14px;
	border-radius:6px;
}

/* ==========================
   ANIMACIONS SUAUS
========================== */

.fade-out {
	opacity: 0.3;
	transform: scale(0.98);
}

.fade-in {
	opacity: 1;
	transform: scale(1);
}

/* ==========================
   RESPONSIVE
========================== */

@media (max-width: 480px) {
	.bylit-ch-container {
		margin: 15px;
		padding: 20px;
	}

	.bylit-ch-pwa-install {
		grid-template-columns: 44px 1fr;
	}

	.bylit-ch-pwa-install img {
		width: 44px;
		height: 44px;
	}

	.bylit-ch-pwa-actions {
		grid-column: 1 / -1;
		justify-content: flex-end;
	}

	.bylit-ch-timer {
		font-size: 34px;
	}
}
