/* Modern Styling & UI for Ironprint */

:root {
    --bg-dark: #090d16;
    --bg-surface: rgba(17, 24, 39, 0.7);
    --bg-surface-hover: rgba(31, 41, 55, 0.85);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(59, 130, 246, 0.2);
    
    --color-primary: #3b82f6; /* Electric Blue */
    --color-primary-glow: rgba(59, 130, 246, 0.4);
    --color-secondary: #8b5cf6; /* Cyber Purple */
    --color-success: #10b981; /* Emerald Green */
    --color-success-glow: rgba(16, 185, 129, 0.15);
    --color-danger: #ef4444;
    
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --text-inverse: #111827;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

/* Background Ambient Glows */
.glow-bg {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    top: -10%;
    right: -10%;
    z-index: -1;
    pointer-events: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Glassmorphism Panel base */
.glass-panel {
    background: var(--bg-surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.glass-panel:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

/* Buttons styling */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    text-decoration: none;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.btn-danger-outline {
    background: transparent;
    color: var(--color-danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger-outline:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--color-danger);
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

.icon-inline {
    width: 1.1em;
    height: 1.1em;
}

/* Header */
.app-header {
    background: rgba(9, 13, 22, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.brand-icon svg {
    width: 24px;
    height: 24px;
}

.brand-text h1 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    background: linear-gradient(to right, #ffffff, #9ca3af);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.brand-text p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.equipment-badge {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #93c5fd;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-primary);
    border-radius: 50%;
    box-shadow: 0 0 0 0 var(--color-primary-glow);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(59, 130, 246, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

/* Dashboard Section */
.dashboard-section {
    margin: 2rem auto;
    padding: 2rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2.5rem;
    align-items: center;
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }
}

/* Radial Progress styling */
.radial-progress-wrapper {
    position: relative;
    width: 130px;
    height: 130px;
}

.radial-progress-svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.radial-progress-svg circle {
    fill: transparent;
    stroke-width: 8;
}

.radial-progress-svg circle.bg {
    stroke: rgba(255, 255, 255, 0.05);
}

.radial-progress-svg circle.progress {
    stroke: url(#radial-gradient-paint); /* Set programmatically or simple fallback below */
    stroke: var(--color-primary);
    stroke-linecap: round;
    transition: stroke-dashoffset var(--transition-normal);
}

.progress-text-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.percentage-val {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
}

.progress-text-container .label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dashboard-stats {
    width: 100%;
}

.stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

@media (max-width: 480px) {
    .stats-header {
        flex-direction: column;
        gap: 1rem;
    }
}

.stats-header h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}

.stats-counter-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    text-align: center;
}

/* Tabs Navigation */
.navigation-tabs-wrapper {
    margin-bottom: 2rem;
}

.navigation-tabs {
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 0.35rem;
    border-radius: 12px;
}

.tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.tab-btn svg {
    width: 18px;
    height: 18px;
}

.tab-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
}

.tab-btn.active {
    color: #ffffff;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.25);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

@media (max-width: 600px) {
    .navigation-tabs {
        flex-direction: column;
    }
}

/* Tab panes switching */
.tab-pane {
    display: none;
    animation: fadeIn var(--transition-normal);
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Week Selector inside Calendar */
.week-selector-wrapper {
    margin-bottom: 2rem;
}

.week-selector {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

@media (max-width: 768px) {
    .week-selector {
        grid-template-columns: repeat(2, 1fr);
    }
}

.week-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all var(--transition-normal);
}

.week-btn:hover {
    background: var(--bg-surface-hover);
    border-color: rgba(255, 255, 255, 0.15);
}

.week-btn.active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-color: var(--color-primary);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.15);
}

.week-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
}

.week-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    text-align: center;
}

/* Workout Schedule View (Days display) */
.week-schedule-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.day-card {
    border-radius: 16px;
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    padding: 1.5rem;
    transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.day-card.completed-day {
    border-color: var(--color-success);
    box-shadow: 0 0 15px var(--color-success-glow);
}

.day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 1rem;
    margin-bottom: 1.25rem;
}

.day-title-block h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
}

.day-subtitle-block {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.day-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
}

.day-card.completed-day .day-badge {
    background: rgba(16, 185, 129, 0.15);
    border-color: var(--color-success);
    color: #34d399;
}

.task-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.task-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: all var(--transition-fast);
}

.task-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

/* Custom Checkbox Design */
.checkbox-container {
    position: relative;
    display: block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    transition: all var(--transition-fast);
}

.checkbox-container:hover input ~ .checkmark {
    border-color: var(--color-primary);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--color-success);
    border-color: var(--color-success);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.3);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.task-text {
    font-size: 0.95rem;
    color: var(--text-main);
    transition: color var(--transition-fast);
}

.task-item.checked {
    border-color: rgba(16, 185, 129, 0.2);
}

.task-item.checked .task-text {
    color: var(--text-muted);
    text-decoration: line-through;
}

/* Equipment View Styles */
.equipment-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .equipment-grid {
        grid-template-columns: 1fr;
    }
}

.equipment-card {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
}

.eq-icon-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.eq-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.eq-icon-box svg {
    width: 26px;
    height: 26px;
}

.barbell-icon { background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); }
.dumbbell-icon { background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%); }
.kettlebell-icon { background: linear-gradient(135deg, #10b981 0%, #047857 100%); }
.pushup-icon { background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%); }

.eq-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.eq-steps h4 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: #ffffff;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.eq-steps ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.eq-steps li {
    font-size: 0.9rem;
    color: var(--text-main);
    position: relative;
    padding-left: 1.25rem;
}

.eq-steps li::before {
    content: "•";
    color: var(--color-primary);
    position: absolute;
    left: 0.25rem;
    font-weight: bold;
}

/* Responsive custom iframe video player if loaded later */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    width: 100%;
    border-radius: 8px;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.movement-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .movement-grid {
        grid-template-columns: 1fr;
    }
}

.movement-card {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.move-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.move-setup-tag {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.move-setup-tag.barbell { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.move-setup-tag.pushup { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.move-setup-tag.dumbbell { background: rgba(139, 92, 246, 0.15); color: #a78bfa; }
.move-setup-tag.kettlebell { background: rgba(16, 185, 129, 0.15); color: #34d399; }

.body-part {
    font-size: 0.75rem;
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.02);
}

.move-body h4 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.move-body p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.move-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.25rem;
    margin-top: 1.25rem;
}

/* Footer styling */
.app-footer {
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    background: rgba(9, 13, 22, 0.6);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

@media (max-width: 600px) {
    .footer-content {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

.footer-note {
    font-size: 0.75rem;
}

/* Sequential locking styles */
.day-card.locked-day {
    opacity: 0.55;
    border-color: rgba(239, 68, 68, 0.15);
    background: rgba(17, 24, 39, 0.4);
}

.day-card.locked-day .task-item {
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.01);
}

.day-card.locked-day .task-item:hover {
    border-color: rgba(255, 255, 255, 0.03);
    background: rgba(255, 255, 255, 0.01);
}

.day-badge.locked-badge {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.week-btn.locked-week {
    opacity: 0.65;
}

.week-btn.locked-week:hover {
    border-color: var(--border-color);
    background: var(--bg-surface);
}

.lock-indicator {
    font-size: 0.85em;
    vertical-align: middle;
}

/* Modal Popup Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    width: 90%;
    max-width: 650px;
    padding: 1.75rem;
    position: relative;
    transform: scale(0.92);
    transition: transform var(--transition-normal);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 0.75rem;
}

.modal-header h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: #ffffff;
}

.close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.85rem;
    cursor: pointer;
    line-height: 1;
    transition: color var(--transition-fast);
}

.close-btn:hover {
    color: #ffffff;
}

.modal-body {
    width: 100%;
}

/* Play button inline task item */
.task-video-btn {
    background: transparent;
    border: none;
    color: var(--color-primary);
    cursor: pointer;
    padding: 0.35rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    transition: all var(--transition-fast);
}

.task-video-btn:hover {
    color: var(--color-secondary);
    background: rgba(255, 255, 255, 0.06);
}

.task-video-btn svg {
    width: 16px;
    height: 16px;
}

/* Weight Guide & Plate Calculator Styles */
.weight-guide-split-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
}

@media (max-width: 900px) {
    .weight-guide-split-layout {
        grid-template-columns: 1fr;
    }
}

.exercise-weight-card {
    transition: all var(--transition-normal);
}

.exercise-weight-card:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(59, 130, 246, 0.3) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.05);
}

.exercise-weight-card.active {
    background: rgba(59, 130, 246, 0.08) !important;
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.15);
}

.calc-setup-btn.active {
    background: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
    color: #ffffff !important;
}

.weight-opt-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    padding: 0.5rem;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.weight-opt-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.weight-opt-btn.active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
    border-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.1);
}

/* Plate Graphics */
.plate-drawing {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.75rem;
    color: #ffffff;
    user-select: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.plate-2-0 {
    width: 24px;
    height: 76px;
    background: linear-gradient(180deg, #ef4444 0%, #dc2626 50%, #991b1b 100%);
    border: 2px solid #fca5a5;
}

.plate-1-5 {
    width: 21px;
    height: 68px;
    background: linear-gradient(180deg, #f97316 0%, #ea580c 50%, #7c2d12 100%);
    border: 2px solid #ffedd5;
}

.plate-1-25 {
    width: 18px;
    height: 60px;
    background: linear-gradient(180deg, #eab308 0%, #ca8a04 50%, #713f12 100%);
    border: 2px solid #fef9c3;
}

.bar-shaft {
    height: 10px;
    background: linear-gradient(180deg, #cbd5e1 0%, #64748b 50%, #334155 100%);
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.bar-connector {
    height: 16px;
    background: linear-gradient(180deg, #374151 0%, #111827 50%, #030712 100%);
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    width: 40px;
    position: absolute;
}

.kb-handle-graphic {
    width: 60px;
    height: 40px;
    border: 10px solid #4b5563;
    border-bottom: none;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    background: transparent;
}

/* Extracted UI classes from index.html & app.js */
.terminology-card {
    margin-bottom: 2rem;
    padding: 1.5rem;
}

.terminology-header {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.75rem;
}

.info-icon {
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.info-svg {
    width: 20px;
    height: 20px;
}

.terminology-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: #ffffff;
    font-weight: 700;
}

.terminology-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-muted);
}

.terminology-strong {
    color: #ffffff;
    display: block;
    margin-bottom: 0.25rem;
}

.move-footer-wrap {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.weight-summary-card {
    margin-bottom: 2rem;
    padding: 2rem;
}

.weight-summary-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 1rem;
}

.weight-summary-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
}

.inventory-item {
    background: rgba(255, 255, 255, 0.02);
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.plate-visual-circle {
    border-radius: 50%;
    margin: 0 auto 0.75rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
}

.plate-visual-circle.red-plate {
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    font-size: 0.8rem;
}

.plate-visual-circle.orange-plate {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #f97316 0%, #c2410c 100%);
    font-size: 0.75rem;
    margin-top: 4px;
}

.plate-visual-circle.yellow-plate {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%);
    font-size: 0.7rem;
    margin-top: 8px;
}

.inventory-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: #ffffff;
    font-weight: 600;
}

.inventory-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.inventory-emoji {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.recommended-weights-panel {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.weights-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.weights-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.exercise-weight-selectors {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.exercise-weight-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all var(--transition-fast);
}

.card-setup-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.label-blue { color: #60a5fa; }
.label-purple { color: #a78bfa; }
.label-green { color: #34d399; }

.card-exercise-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: #ffffff;
    font-weight: 600;
}

.card-weight-block {
    text-align: right;
}

.card-weight-value {
    font-size: 1.15rem;
    font-weight: 700;
}

.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }
.text-success { color: var(--color-success); }

.card-weight-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.visualizer-panel {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.visualizer-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: #ffffff;
    font-weight: 700;
}

.flex-wrap-gap {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.flex-col-gap-sm {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.visualizer-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.weight-options-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.visualizer-display-box {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 12px;
    border: 1px dashed rgba(255, 255, 255, 0.08);
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    width: 100%;
}

#plate-graphic-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 1.5rem;
    min-height: 100px;
    width: 100%;
    position: relative;
}

#plate-text-guide {
    text-align: center;
    color: #ffffff;
    font-size: 0.95rem;
    line-height: 1.5;
}

.barbell-shaft {
    width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.dumbbell-shaft {
    width: 55px;
    position: relative;
}

.kb-plate-2-0 {
    width: 80px;
    height: 16px;
    margin: 2px 0;
}

.kb-plate-1-5 {
    width: 70px;
    height: 14px;
    margin: 2px 0;
}

.kb-plate-1-25 {
    width: 60px;
    height: 12px;
    margin: 2px 0;
}

.kb-visualizer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.kb-pin-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 80px;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px;
    border-radius: 4px;
}

.kb-empty-pin-text {
    color: var(--text-muted);
    font-size: 0.8rem;
    padding-top: 10px;
}

/* Video modal specific styling */
.modal-guide-container {
    padding: 0.5rem;
    color: #ffffff;
    line-height: 1.6;
}

.modal-guide-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--color-primary);
    font-weight: 700;
}

.modal-guide-text {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.modal-guide-list {
    margin-left: 1.25rem;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.modal-guide-list-item {
    margin-bottom: 0.75rem;
}

.modal-guide-strong {
    color: #ffffff;
}

.modal-guide-alert {
    background: rgba(59, 130, 246, 0.05);
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    border-left: 3px solid var(--color-primary);
    color: #ffffff;
}

.modal-video-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.modal-video-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
    font-weight: 600;
}

.modal-video-single {
    margin-bottom: 1rem;
}

.modal-video-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.25rem;
}

.youtube-link {
    color: var(--color-primary);
    font-size: 0.85rem;
    text-decoration: underline;
    font-weight: 500;
}

.youtube-link:hover {
    color: var(--color-secondary);
}

.modal-no-video {
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
}

.visualizer-total-weight {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}
