/**
 * Ulu Personel Takip — front-end paneli stili.
 *
 * Tema-agnostik: kendi sınıflarımızla scope'lu, tema değişkenlerine dokunmuyor.
 * Mobil-öncelikli; flexbox ile butonlar küçük ekranda üst üste, geniş ekranda yan yana.
 */

.upt-panel {
	max-width: 560px;
	margin: 1.5rem auto;
	padding: 1.25rem 1.25rem 1.5rem;
	border-radius: 12px;
	background: #ffffff;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
	font-family: inherit;
	color: #1f2937;
	box-sizing: border-box;
}

.upt-panel *, .upt-panel *::before, .upt-panel *::after { box-sizing: border-box; }

.upt-panel--notice {
	text-align: center;
}

.upt-panel--notice p {
	margin: 0 0 1rem;
	font-size: 1rem;
}

.upt-panel__head {
	margin-bottom: 1rem;
	text-align: center;
}

.upt-panel__title {
	margin: 0 0 .25rem;
	font-size: 1.25rem;
	font-weight: 700;
}

.upt-panel__user {
	margin: 0;
	color: #6b7280;
	font-size: .9rem;
}

.upt-panel__status {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: .75rem;
	margin-bottom: 1.25rem;
}

.upt-status-pill {
	display: inline-flex;
	align-items: center;
	padding: .35rem .85rem;
	border-radius: 999px;
	font-size: .85rem;
	font-weight: 600;
	letter-spacing: .02em;
}

.upt-status-pill--none  { background: #f3f4f6; color: #6b7280; }
.upt-status-pill--open  { background: #dcfce7; color: #166534; }
.upt-status-pill--break { background: #fef3c7; color: #92400e; }

.upt-panel__timer {
	display: flex;
	gap: 1.5rem;
	justify-content: center;
	flex-wrap: wrap;
	width: 100%;
}

.upt-timer {
	text-align: center;
	min-width: 110px;
}

.upt-timer__label {
	display: block;
	font-size: .75rem;
	color: #6b7280;
	text-transform: uppercase;
	letter-spacing: .05em;
	margin-bottom: .25rem;
}

.upt-timer__value {
	display: block;
	font-size: 1.6rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums; /* monospace rakamlar — sayaç zıplamaz */
	color: #111827;
}

.upt-timer--break .upt-timer__value { color: #92400e; }

.upt-panel__actions {
	display: flex;
	gap: .75rem;
	flex-wrap: wrap;
}

.upt-btn {
	flex: 1 1 calc(50% - .375rem);
	min-width: 140px;
	padding: .85rem 1rem;
	border: 0;
	border-radius: 10px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: transform .08s ease, box-shadow .15s ease, background-color .15s ease;
	color: #fff;
	background: #2563eb;
}

.upt-btn:hover:not(:disabled)  { background: #1d4ed8; }
.upt-btn:active:not(:disabled) { transform: translateY(1px); }
.upt-btn:disabled              { opacity: .5; cursor: not-allowed; }
.upt-btn:focus-visible         { outline: 2px solid #93c5fd; outline-offset: 2px; }

.upt-btn--primary { background: #2563eb; }
.upt-btn--shift[data-upt-action="start_shift"] { background: #16a34a; }
.upt-btn--shift[data-upt-action="start_shift"]:hover:not(:disabled) { background: #15803d; }
.upt-btn--shift[data-upt-action="end_shift"]   { background: #dc2626; }
.upt-btn--shift[data-upt-action="end_shift"]:hover:not(:disabled)   { background: #b91c1c; }

.upt-btn--break[data-upt-action="start_break"] { background: #f59e0b; }
.upt-btn--break[data-upt-action="start_break"]:hover:not(:disabled) { background: #d97706; }
.upt-btn--break[data-upt-action="end_break"]   { background: #0ea5e9; }
.upt-btn--break[data-upt-action="end_break"]:hover:not(:disabled)   { background: #0284c7; }

.upt-panel__msg {
	margin-top: 1rem;
	padding: .65rem .85rem;
	border-radius: 8px;
	font-size: .9rem;
}

.upt-msg--error   { background: #fee2e2; color: #991b1b; }
.upt-msg--success { background: #dcfce7; color: #166534; }
.upt-msg--info    { background: #e0f2fe; color: #075985; }

/* ------------------------------------------------------------------ */
/*  Responsive breakpoints                                              */
/* ------------------------------------------------------------------ */

@media (max-width: 600px) {
	.upt-panel {
		margin: .75rem;
		padding: 1rem;
		border-radius: 10px;
	}
	.upt-panel__title {
		font-size: 1.1rem;
	}
	.upt-panel__timer {
		gap: 1rem;
	}
	.upt-timer__value {
		font-size: 1.5rem;
	}
}

@media (max-width: 420px) {
	.upt-panel {
		margin: .5rem;
		padding: .85rem;
	}
	.upt-panel__actions {
		gap: .5rem;
	}
	.upt-btn {
		flex: 1 1 100%;
		min-width: 0;
		padding: .8rem 1rem;
		font-size: .95rem;
	}
	.upt-timer__value { font-size: 1.35rem; }
	.upt-timer { min-width: 90px; }
	.upt-timer__label { font-size: .7rem; }
}

@media (max-width: 340px) {
	.upt-timer__value { font-size: 1.2rem; }
	.upt-panel__title { font-size: 1rem; }
}
