:root {
	--primary: #461E96;
	--secondary: #00B4E6;
	--pink: #E6008C;
	--green: #00DC8C;
	--purple-soft: #735CCC;
	--blue-soft: #80DEFF;
	--bg-1: #f6f4ff;
	--bg-2: #eefbff;
	--text-main: #1f2937;
	--text-soft: #6b7280;
	--card-bg: rgba(255,255,255,0.92);
	--card-border: rgba(255,255,255,0.55);
	--success-bg: #d9fff0;
	--success-text: #007f52;
	--todo-bg: #efe8ff;
	--todo-text: #461E96;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	min-height: 100vh;
	font-family: Arial, sans-serif;
	color: var(--text-main);
	background:
		radial-gradient(circle at top left, rgba(70, 30, 150, 0.10), transparent 28%),
		radial-gradient(circle at top right, rgba(0, 180, 230, 0.12), transparent 32%),
		linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 100%);
}

.app-shell {
	
	width: 100%;
	max-width: 520px;
	margin: 0 auto;
	padding: 18px 16px 100px;
}

.brand-title {
	font-weight: 800;
	font-size: 1.8rem;
	color: #4f46e5;
}

.subtitle {
	color: #6c757d;
	font-size: 0.95rem;
}

.glass-card {
	background: rgba(255,255,255,0.88);
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255,255,255,0.4);
	border-radius: 22px;
	box-shadow: 0 10px 30px rgba(79,70,229,0.08);
}

.summary-card {
	padding: 18px;
	margin-bottom: 18px;
}

.summary-label {
	font-size: 0.84rem;
	color: var(--text-soft);
	margin-bottom: 4px;
}

.summary-title {
	font-size: 1.12rem;
	font-weight: 800;
	margin-bottom: 14px;
}

.filter-btn {
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--primary);
    box-shadow: 0 10px 24px rgba(70, 30, 150, 0.10);
}

.topbar {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 18px;
}

.topbar h1 {
	margin: 0;
	font-size: 1.75rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--primary);
}

.topbar p {
	margin: 4px 0 0;
	color: var(--text-soft);
	font-size: 0.92rem;
}

.progress {
	height: 10px;
	border-radius: 999px;
	background: #e8eaf1;
	overflow: hidden;
}

.progress-bar {
	background: linear-gradient(90deg, var(--primary), var(--secondary));
	border-radius: 999px;
	transition: width 0.25s ease;
}

.summary-stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	margin-top: 14px;
}

.mini-stat {
	background: #f8fbff;
	border-radius: 18px;
	padding: 12px;
	text-align: center;
}

.mini-stat strong {
	display: block;
	font-size: 1.12rem;
	font-weight: 800;
}

.mini-stat span {
	font-size: 0.8rem;
	color: var(--text-soft);
}

.section-title {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 18px 0 12px;
}

.section-title h2 {
	margin: 0;
	font-size: 1rem;
	font-weight: 800;
}

.filter-pills {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 14px;
}

.filter-pill {
	border: 0;
	background: rgba(255,255,255,0.88);
	color: var(--text-main);
	padding: 10px 14px;
	border-radius: 999px;
	font-size: 0.86rem;
	font-weight: 700;
	box-shadow: 0 8px 18px rgba(70, 30, 150, 0.06);
}

.filter-pill.active {
	background: linear-gradient(135deg, var(--primary), var(--secondary));
	color: white;
}

.workout-list {
	display: grid;
	gap: 14px;
}

.workout-card {
	overflow: hidden;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.workout-card:hover {
	transform: translateY(-1px);
}

.workout-card.done {
	background: linear-gradient(135deg, #f3fff9, #defff1);
	border: 1px solid #b8f5da;
}

.workout-card.inactive {
	background: linear-gradient(135deg, #afafaf, #fff);
	border: 1px solid #3396ff;
}

.workout-card-body {
	padding: 18px;
}

.workout-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 14px;
}

.workout-title {
	margin: 0 0 4px;
	font-size: 1.05rem;
	font-weight: 800;
}

.workout-desc {
	margin: 0;
	color: var(--text-soft);
	font-size: 0.9rem;
}

.status-badge {
	white-space: nowrap;
	padding: 8px 12px;
	border-radius: 999px;
	font-size: 0.76rem;
	font-weight: 700;
	background: var(--todo-bg);
	color: var(--todo-text);
}

.status-badge.done {
	background: var(--success-bg);
	color: var(--success-text);
}

.status-badge.inactive {
	background: var(--bs-red);
	color: var(--bs-white);
}

.exercise-box {
	background: #f8fbff;
	border-radius: 18px;
	padding: 12px;
	margin-bottom: 10px;
}

.exercise-title {
	font-size: 0.94rem;
	font-weight: 800;
	margin-bottom: 4px;
}

.exercise-desc {
	font-size: 0.84rem;
	color: var(--text-soft);
	margin-bottom: 10px;
}

.exercise-meta {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.meta-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: white;
	border: 1px solid #edf0f5;
	border-radius: 999px;
	padding: 7px 10px;
	font-size: 0.8rem;
}

.btn-done {
	height: 50px;
	width: 100%;
	border: 0;
	border-radius: 16px;
	font-weight: 700;
	color: white;
	background: linear-gradient(135deg, var(--primary), var(--secondary));
	box-shadow: 0 12px 22px rgba(70, 30, 150, 0.18);
}

.btn-done.done {
	background: #16a34a;
	box-shadow: none;
}

.btn-inactive {
	height: 50px;
	width: 100%;
	border: 0;
	border-radius: 16px;
	font-weight: 700;
	color: white;
	background: linear-gradient(135deg, #1e968a, #00a8d7);
	box-shadow: 0 12px 22px rgba(70, 30, 150, 0.18);
}

.empty-state {
	text-align: center;
	padding: 32px 20px;
	color: var(--text-soft);
}

.empty-state i {
	font-size: 2rem;
	color: var(--secondary);
	margin-bottom: 10px;
	display: block;
}

.fab {
	position: fixed;
	right: 20px;
	bottom: 22px;
	width: 60px;
	height: 60px;
	border: 0;
	border-radius: 50%;
	color: white;
	font-size: 1.4rem;
	background: linear-gradient(135deg, var(--primary), var(--secondary));
	box-shadow: 0 16px 28px rgba(70, 30, 150, 0.28);
	z-index: 1050;
}

.modal-content {
	border: 0;
	border-radius: 24px;
	overflow: hidden;
}

.modal-header,
.modal-body,
.modal-footer {
	border: 0;
}

.form-control,
.form-select {
	border-radius: 14px;
	min-height: 48px;
}

textarea.form-control {
	min-height: 90px;
}

.exercise-builder {
	background: #f8fbff;
	border-radius: 18px;
	padding: 14px;
	margin-bottom: 12px;
}

.small-label {
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--text-soft);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-bottom: 10px;
}

.modal-dialog-scrollable .modal-content {
	overflow-y: visible !important;
}

.hidden {
	display: none !important;
}