/* ==========================
   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;
}

/* ==========================
   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-timer {
		font-size: 34px;
	}
}
