/* ===== Attendance — Structural CSS only =====
 * No colors, backgrounds, borders, shadows, or blur are set here on purpose.
 * Every visual property is controlled from the Elementor widget's Style tab
 * (see includes/elementor/class-att-elementor-widget.php) so nothing here
 * fights your own design. This file only handles layout/spacing/behaviour
 * that has to work regardless of styling (flex layout, disabled states,
 * responsive stacking).
 */

.att-wrap {
	width: 100%;
	display: flex;
	justify-content: center;
	box-sizing: border-box;
}

.att-card {
	position: relative;
	width: 100%;
	box-sizing: border-box;
	text-align: center;
}

.att-card * {
	box-sizing: border-box;
}

.att-name,
.att-title {
	margin: 0 0 0.35rem;
}

.att-subtitle {
	margin: 0 0 1.5rem;
}

.att-datetime {
	margin-bottom: 1.25rem;
}

.att-status-badge {
	display: inline-block;
	margin-bottom: 1.5rem;
}

.att-row {
	display: flex;
	justify-content: space-between;
	padding: 0.6rem 0.25rem;
}

.att-actions {
	display: flex;
	gap: 0.75rem;
	margin-top: 1.75rem;
}

.att-btn {
	flex: 1;
	cursor: pointer;
	border: none;
	transition: opacity 0.15s ease, transform 0.15s ease;
}
.att-btn:hover:not(:disabled) {
	transform: translateY(-1px);
}
.att-btn:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

.att-btn-login {
	width: 100%;
	margin-top: 0.5rem;
}

.att-logout {
	position: absolute;
	top: 1rem;
	left: 1rem;
	cursor: pointer;
	border: none;
	background: transparent;
	font-size: 0.75rem;
}

/* Login form fields — structural only */
.att-field {
	text-align: right;
	margin-bottom: 1rem;
}
.att-field label {
	display: block;
	font-size: 0.82rem;
	margin-bottom: 0.35rem;
}
.att-field input {
	width: 100%;
	box-sizing: border-box;
	outline: none;
	font-family: inherit;
}
.att-field input:focus {
	outline: none;
}

.att-message {
	margin-top: 1rem;
	min-height: 1.25rem;
	font-size: 0.85rem;
}
.att-message.att-success {
	color: #1e8e3e;
}
.att-message.att-error {
	color: #d93025;
}

@media (max-width: 480px) {
	.att-actions {
		flex-direction: column;
	}
}
