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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: #f4f8f8;
    color: #1a3432;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Top bar (email + sign out, above header) */
.top-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 0.5rem;
    min-height: 28px;
}

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

.user-email {
    font-size: 0.8rem;
    color: #4a7e78;
    font-weight: 400;
}

.signout-btn {
    background: transparent;
    color: #3a706a;
    border: 1px solid #b8d0ce;
    padding: 4px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.15s ease;
}

.signout-btn:hover {
    background: rgba(77, 139, 132, 0.08);
    border-color: #4d8b84;
    color: #1a3432;
}

/* Header */
.header {
    background: #ffffff;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 16px rgba(15, 60, 58, 0.2);
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 1.5rem;
    box-sizing: border-box;
}

.header-logo {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

/* Navigation */
.nav-tabs {
    display: flex;
    background: #ddeae9;
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(20, 60, 58, 0.08);
    border: 1px solid #c4d8d6;
}

.nav-tab {
    flex: 1;
    padding: 12px 16px;
    background: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #4a7e78;
    transition: all 0.2s ease;
}

.nav-tab.active {
    background: #4d8b84;
    color: #f0f7f6;
}

.nav-tab:hover:not(.active) {
    background: rgba(77, 139, 132, 0.1);
    color: #1a3432;
}

/* Tab Content */
.tab-content {
    display: none;
}

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

/* Cards */
.card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

/* Forms */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2a3d3c;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    background: #fff;
    color: #1e3d3b;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
    cursor: pointer;
}

.form-group select option {
    color: #1e3d3b;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4d8b84;
    box-shadow: 0 0 0 3px rgba(77, 139, 132, 0.12);
}

.form-group textarea {
    min-height: 80px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
}

/* Buttons */
.btn {
    background: #4d8b84;
    color: #f0f7f6;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn:hover {
    background: #3a706a;
}

.btn-secondary {
    background: transparent;
    color: #4a7e78;
    border: 1px solid #8aaaa6;
}

.btn-secondary:hover {
    background: rgba(77, 139, 132, 0.08);
    border-color: #4d8b84;
}

.btn-danger {
    background: #c0392b;
    color: white;
    border: none;
}

.btn-danger:hover {
    background: #a93226;
}

.btn-sm {
    padding: 4px 8px;
    font-size: 12px;
}

/* Day Selection */
.day-buttons {
    display: flex;
    gap: 0.4rem;
}

.day-button {
    flex: 1;
    min-width: 0;
    aspect-ratio: 1;
    max-width: 38px;
    border: 1px solid #b8d0ce;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: #4a7e78;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.day-button.selected {
    background: #4d8b84;
    color: #f0f7f6;
    border-color: #4d8b84;
}

.day-button:hover:not(.selected) {
    background: #f0f7f6;
    border-color: #4d8b84;
}

/* Calendar */
.calendar-col {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
}

.calendar-surface {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.calendar-hint {
    background: #f0f7f6;
    border: 1px dashed #8aaaa6;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    color: #5a8280;
    margin-bottom: 1rem;
    text-align: center;
}

/* Calendar grid table */
.cal-table-wrap {
    overflow-x: auto;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(20, 60, 58, 0.08);
    border: 1px solid #d4e2e1;
}

.cal-grid-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    min-width: 520px;
}

.cal-grid-table th,
.cal-grid-table td {
    border: 1px solid #d4e2e1;
    vertical-align: top;
}

.cal-day-th {
    background: #f0f7f6;
    color: #3d6e6a;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.75rem 1rem;
    text-align: center;
    min-width: 80px;
    white-space: nowrap;
}

.cal-cat-th {
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    padding: 0.75rem 0.75rem;
    text-align: center;
    letter-spacing: 0.03em;
    min-width: 130px;
}

.cal-day-td {
    font-weight: 700;
    font-size: 13px;
    color: #2d3748;
    padding: 0.6rem 1rem;
    background: #f8fafa;
    white-space: nowrap;
    text-align: center;
    vertical-align: middle;
}

.cal-cell-td {
    padding: 0.4rem;
    min-width: 130px;
    vertical-align: top;
}

.cal-empty-td {
    background: #fcfcfc;
    min-width: 130px;
}

.cal-rest-td {
    color: #94a3b8;
    font-style: italic;
    font-size: 13px;
    padding: 0.75rem;
    background: #f8fafa;
    text-align: center;
    vertical-align: middle;
}

.cal-note {
    font-style: italic;
    color: #718096 !important;
}

/* ---- Exercise block on calendar ---- */
.exercise-block {
    background: #f8fafa;
    border-radius: 7px;
    margin-bottom: 6px;
    border-left: 3px solid #4d8b84;
    overflow: hidden;
    transition: box-shadow 0.15s;
    cursor: pointer;
}

.exercise-block:hover {
    box-shadow: 0 2px 8px rgba(20, 60, 58, 0.12);
}

.exercise-block.eb-expanded {
    box-shadow: 0 3px 12px rgba(20, 60, 58, 0.15);
}

.eb-top {
    padding: 7px 8px 6px;
}

.exercise-block-name {
    font-weight: 600;
    color: #1a3432;
    font-size: 11.5px;
    line-height: 1.3;
}

.exercise-block-detail {
    color: #5a8280;
    font-size: 10.5px;
    margin-top: 2px;
    line-height: 1.3;
}

.eb-setup-hint {
    display: block;
    font-size: 10px;
    color: #9ab5b3;
    font-style: italic;
    margin-top: 2px;
}

/* Inline edit form */
.eb-inline-form {
    padding: 8px 8px 10px;
    border-top: 1px solid #e8f0ef;
    background: #fff;
}

@keyframes ebFormIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.eb-form-in {
    animation: ebFormIn 0.18s ease;
}

.eb-form-row {
    display: flex;
    gap: 6px;
}

.eb-form-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.eb-form-field label {
    font-size: 10.5px;
    font-weight: 600;
    color: #7a9a98;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.eb-input {
    width: 100%;
    padding: 7px 8px;
    border: 1px solid #d4e2e1;
    border-radius: 4px;
    font-size: 13px;
    color: #1a3432;
    background: #f8fafa;
    box-sizing: border-box;
    transition: border-color 0.15s;
}

.eb-input:focus {
    outline: none;
    border-color: #4d8b84;
    background: #fff;
}

.eb-form-actions {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    align-items: center;
}

.eb-save-btn {
    flex: 1;
    padding: 5px 0;
    background: #4d8b84;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.eb-save-btn:hover {
    background: #3d6e68;
}

.block-action-btn {
    border: none;
    border-radius: 4px;
    background: transparent;
    color: #7a9a98;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 10.5px;
    padding: 4px 6px;
    transition: background 0.15s, color 0.15s;
}

.block-action-btn:hover {
    background: rgba(77, 139, 132, 0.1);
}

.block-action-remove {
    color: #b45a4a;
}

.block-action-remove:hover {
    background: rgba(180, 50, 30, 0.08);
    color: #b43222;
}

/* ---- Builder panel (step-based) ---- */
.builder-step {
    margin-bottom: 10px;
}

.builder-step-hidden {
    display: none !important;
}

@keyframes stepIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.builder-step-in {
    animation: stepIn 0.22s ease;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.step-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #4d8b84;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-title {
    font-size: 12px;
    font-weight: 700;
    color: #2d4a49;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex: 1;
}

.select-all-link {
    background: none;
    border: none;
    color: #4d8b84;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

.builder-select-wrap {
    position: relative;
    width: 100%;
}

.builder-select-wrap::after {
    content: "";
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #4d8b84;
    pointer-events: none;
}

.builder-select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    background: #fff;
    border: 1.5px solid #c8d9cb;
    border-radius: 10px;
    padding: 11px 38px 11px 14px;
    font-size: 14px;
    font-weight: 500;
    color: #1e3d3b;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    line-height: 1.3;
}

.builder-select:focus {
    outline: none;
    border-color: #4d8b84;
    box-shadow: 0 0 0 3px rgba(77,107,85,0.15);
}

.builder-select:hover {
    border-color: #4d8b84;
}

.builder-select option {
    color: #1e3d3b;
    font-size: 14px;
}

.exercise-checklist {
    max-height: 210px;
    overflow-y: auto;
    border: 1px solid #d4e2e1;
    border-radius: 8px;
    background: #fff;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    cursor: pointer;
    transition: background 0.12s;
    border-bottom: 1px solid #f0f7f6;
}

.checklist-item:last-child {
    border-bottom: none;
}

.checklist-item:hover {
    background: #f0f7f6;
}

.checklist-checkbox {
    accent-color: #4d8b84;
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    cursor: pointer;
}

.checklist-name {
    font-size: 12.5px;
    color: #1a3432;
    font-weight: 500;
    line-height: 1.3;
}

.checklist-empty {
    padding: 16px;
    text-align: center;
    color: #9ab5b3;
    font-size: 12px;
    font-style: italic;
}

.builder-color-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 4px 0;
}

.builder-color-dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    border: 2px solid transparent;
}

.builder-color-dot:hover {
    transform: scale(1.15);
}

.builder-color-dot.active {
    border-color: #fff;
    box-shadow: 0 0 0 2px #4d8b84, 0 2px 6px rgba(0,0,0,0.2);
    transform: scale(1.1);
}

.builder-color-dot.color-taken,
.color-dot.color-taken {
    opacity: 0.25;
    cursor: not-allowed;
    position: relative;
}

.builder-color-dot.color-taken:hover,
.color-dot.color-taken:hover {
    transform: none;
}

.builder-cat-preview {
    font-size: 11.5px;
    color: #4d8b84;
    font-weight: 600;
    min-height: 16px;
    margin-bottom: 6px;
    font-style: italic;
}

/* Exercise hover preview card */
.ex-hover-preview {
    display: none;
    position: fixed;
    z-index: 9999;
    width: 280px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.10);
    overflow: hidden;
    pointer-events: auto;
    border: 1px solid #e4edec;
    animation: previewFadeIn 0.15s ease;
}

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

.ehp-images {
    display: flex;
    gap: 0;
    background: #f0f7f6;
    max-height: 160px;
    overflow: hidden;
}

.ehp-img {
    flex: 1;
    width: 0;
    min-width: 0;
    object-fit: cover;
    max-height: 160px;
    display: block;
}

.ehp-body {
    padding: 12px 14px 14px;
}

.ehp-name {
    font-size: 13px;
    font-weight: 700;
    color: #1e3d3b;
    margin-bottom: 6px;
    line-height: 1.3;
}

.ehp-desc {
    font-size: 11.5px;
    color: #4a5568;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* Exercise Library */
/* Exercise Library Container */
.exercise-library-container {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

/* Exercise Grid Layout */
.exercise-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.exercise-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.2s ease;
}

.exercise-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-color: #d1d5db;
}

.exercise-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #111827;
}

.category-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    margin-bottom: 0.5rem;
    margin-right: 0.25rem;
    background: #f0f7f6;
    color: #4b5563;
}

/* Image Upload */
.image-upload {
    border: 2px dashed #d1d5db;
    border-radius: 6px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.image-upload:hover {
    border-color: #4d8b84;
    background: #f8fafc;
}

.image-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.image-preview {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
}

/* Program Bar */
.program-bar {
    background: white;
    border: 1px solid #d4e2e1;
    border-radius: 10px;
    padding: 2rem 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 1px 4px rgba(20, 60, 58, 0.07);
}

.program-bar-left {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
    flex: 1;
}

.program-title-input {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a3432;
    border: none;
    background: transparent;
    outline: none;
    padding: 0;
    width: 100%;
    letter-spacing: -0.01em;
}

.program-title-input::placeholder {
    color: #8aaaa6;
    font-weight: 400;
}

.program-title-input:focus {
    border-bottom: 1.5px solid #4d8b84;
}

.program-meta-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.program-meta-input {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a3432;
    border: none;
    background: transparent;
    outline: none;
    padding: 0;
    width: 220px;
    letter-spacing: -0.01em;
}

.program-meta-input::placeholder {
    color: #a0b8b6;
    font-weight: 400;
}

.program-meta-input:focus {
    border-bottom: 1.5px solid #4d8b84;
    color: #1a3432;
    animation: none;
}


.program-meta-select {
    font-size: 0.85rem;
    color: #6a9a97;
    border: none;
    background: transparent;
    outline: none;
    padding: 0;
    cursor: pointer;
    font-weight: 500;
}

.meta-sep {
    color: #c4d8d6;
    font-size: 0.9rem;
}

.program-bar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.save-status {
    display: none;
}

/* Exercise searchable combobox */
.exercise-combobox {
    position: relative;
    width: 100%;
}

.exercise-combobox input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}

.exercise-combobox input:focus {
    outline: none;
    border-color: #4d8b84;
    box-shadow: 0 0 0 3px rgba(77, 139, 132, 0.12);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.exercise-combo-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #4d8b84;
    border-top: none;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 100;
    max-height: 220px;
    overflow-y: auto;
}

.exercise-combo-list.open {
    display: block;
}

.combo-option {
    padding: 8px 12px;
    font-size: 14px;
    color: #2a3d3c;
    cursor: pointer;
    transition: background 0.15s ease;
}

.combo-option:hover {
    background: #f0f7f6;
    color: #4d8b84;
}

.combo-empty {
    padding: 10px 12px;
    font-size: 13px;
    color: #9ca3af;
    text-align: center;
    font-style: italic;
}

.export-mobile-btn {
    display: none;
}

.export-wrapper {
    position: relative;
}

.export-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: white;
    border: 1px solid #d4e2e1;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(20, 60, 58, 0.12);
    min-width: 160px;
    z-index: 100;
    overflow: hidden;
}

.export-menu.open {
    display: block;
}

.export-menu button {
    display: block;
    width: 100%;
    padding: 0.65rem 1rem;
    text-align: left;
    background: none;
    border: none;
    font-size: 0.875rem;
    color: #1a3432;
    cursor: pointer;
    transition: background 0.1s;
}

.export-menu button:hover {
    background: #f0f7f6;
}

/* Plan Builder */
.plan-builder {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1rem;
    align-items: start;
}

/* Add Panel */
.add-panel {
    background: white;
    border-radius: 10px;
    padding: 1.25rem;
    box-shadow: 0 1px 4px rgba(20, 60, 58, 0.07);
    border: 1px solid #d4e2e1;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.panel-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #7aaaa8;
    margin-bottom: 0.75rem;
}

.field-error {
    font-size: 0.8rem;
    color: #b43222;
    background: #fdf0ee;
    border-radius: 5px;
    padding: 0.4rem 0.6rem;
    display: none;
    margin-bottom: 0.25rem;
}

.label-hint {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #d4e2e1;
    color: #5a8280;
    font-size: 10px;
    font-weight: 700;
    cursor: help;
    margin-left: 4px;
    vertical-align: middle;
}

.btn-add {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
    padding: 10px;
    font-size: 0.9rem;
}

.panel-stats {
    font-size: 0.78rem;
    color: #5a8280;
    text-align: center;
    padding: 0.25rem 0 0;
    line-height: 1.6;
}

.stat-sep {
    color: #b8d0ce;
    margin: 0 0.25rem;
}

.btn-ghost-danger {
    background: none;
    border: none;
    color: #7aaaa8;
    font-size: 0.78rem;
    cursor: pointer;
    padding: 0.15rem 0 0;
    text-align: center;
    width: 100%;
    transition: color 0.15s;
}

.btn-ghost-danger:hover {
    color: #b43222;
}

.btn-ghost-danger.confirming {
    color: #b43222;
    font-weight: 600;
}

/* Config Section */
.config-section {
    background: white;
    border-radius: 10px;
    border: 1px solid #d4e2e1;
    margin-top: 1.5rem;
    margin-left: calc(280px + 1.5rem);
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(20, 60, 58, 0.07);
}

.config-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f0e4d4;
}

.collapse-toggle {
    background: none;
    border: none;
    color: #5a8280;
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
    line-height: 1;
    transition: transform 0.2s;
}

.category-config-grid {
    padding: 0.6rem 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.category-config-grid.collapsed {
    display: none;
}

.no-config-msg {
    font-size: 0.85rem;
    color: #7aaaa8;
    text-align: center;
    padding: 0.5rem 0;
}

/* Category Cards */
.cat-card {
    border: 1px solid #e4edec;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.cat-card-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    min-height: 36px;
}

.cat-color-swatch {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
    cursor: pointer;
    border: 2px solid rgba(0,0,0,0.1);
    transition: transform 0.15s;
}

.cat-color-swatch:hover { transform: scale(1.2); }

.cat-card-picker {
    display: none;
    gap: 4px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.color-dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.15s, border-color 0.15s;
    flex-shrink: 0;
}

.color-dot:hover { transform: scale(1.2); }
.color-dot.active { border-color: #1a3432; }

.cat-card-name {
    font-size: 12px;
    font-weight: 600;
    color: #1a3432;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cat-card-summary {
    font-size: 11px;
    color: #8a9e9c;
    white-space: nowrap;
    flex-shrink: 0;
}

.cat-card-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.cat-action-btn {
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 600;
    border-radius: 10px;
    border: 1.5px solid #c8d9cb;
    color: #4d8b84;
    background: transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}

.cat-action-btn:hover {
    background: #4d8b84;
    color: #fff;
    border-color: #4d8b84;
}

.cat-notes-body {
    padding: 6px 10px 8px;
    border-top: 1px solid #e4edec;
}

.cat-notes-input {
    width: 100%;
    font-size: 12px;
    padding: 5px 8px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    resize: none;
    min-height: 44px;
    box-sizing: border-box;
    font-family: inherit;
    color: #2a3d3c;
}

.cat-notes-input:focus {
    outline: none;
    border-color: #4d8b84;
    box-shadow: 0 0 0 2px rgba(77,107,85,0.12);
}

/* Color Picker (legacy compat) */
.color-picker {
    display: flex;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.color-option {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
}

.color-option:hover {
    transform: scale(1.15);
}

.color-option.selected {
    border-color: #1a3432;
}

/* Category Management (modal) */
.modal-subtext {
    font-size: 13px;
    color: #7aaaa8;
    margin: -8px 0 16px;
    font-weight: 500;
}

.cat-mgr-btns {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    align-items: center;
}

.cat-mgr-add-row {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    align-items: center;
}

.cat-mgr-checklist {
    border: 1.5px solid #c8d9cb;
    border-radius: 8px;
    overflow-y: auto;
    max-height: 220px;
    background: #fff;
}

.cat-mgr-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f0f7f6;
    font-size: 13px;
    color: #1e3d3b;
    transition: background 0.1s;
}

.cat-mgr-item:last-child {
    border-bottom: none;
}

.cat-mgr-item:hover {
    background: #f0f7f6;
}

.cat-mgr-checkbox {
    width: 15px;
    height: 15px;
    accent-color: #4d8b84;
    cursor: pointer;
    flex-shrink: 0;
}

.cat-mgr-empty {
    padding: 16px;
    text-align: center;
    color: #8a9e9c;
    font-size: 13px;
}

.cat-mgr-input {
    flex: 1;
    padding: 8px 12px;
    border: 1.5px solid #c8d9cb;
    border-radius: 8px;
    font-size: 13px;
    color: #1e3d3b;
    outline: none;
    transition: border-color 0.15s;
}

.cat-mgr-input:focus {
    border-color: #4d8b84;
    box-shadow: 0 0 0 3px rgba(77,107,85,0.12);
}

.cat-mgr-search {
    width: 100%;
    box-sizing: border-box;
    padding: 7px 12px;
    border: 1.5px solid #c8d9cb;
    border-radius: 8px;
    font-size: 13px;
    color: #1e3d3b;
    outline: none;
    transition: border-color 0.15s;
    margin-bottom: 6px;
}

.cat-mgr-search:focus {
    border-color: #4d8b84;
    box-shadow: 0 0 0 3px rgba(77,107,85,0.12);
}


#deleteCategoryBtn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.close {
    color: #6b7280;
    float: right;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: #2a3d3c;
}

/* Responsive Design */
/* Inline Category Creator */
.inline-cat-creator {
    margin-top: 0.5rem;
}

.inline-cat-trigger {
    background: none;
    border: none;
    color: #4d8b84;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: color 0.15s;
}

.inline-cat-trigger:hover {
    color: #7a4a2e;
}

.inline-cat-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.4rem;
    flex-wrap: wrap;
}

.inline-cat-form input {
    flex: 1;
    min-width: 140px;
    padding: 6px 10px;
    border: 1px solid #8aaaa6;
    border-radius: 6px;
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.15s;
}

.inline-cat-form input:focus {
    border-color: #4d8b84;
    box-shadow: 0 0 0 3px rgba(77, 139, 132, 0.12);
}

.btn-inline-cancel {
    background: none;
    border: none;
    color: #5a8280;
    font-size: 0.82rem;
    cursor: pointer;
    padding: 0 4px;
    transition: color 0.15s;
}

.btn-inline-cancel:hover {
    color: #1a3432;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: #1a3432;
    color: #f0f7f6;
    padding: 0.65rem 1rem 0.65rem 1.1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    z-index: 9999;
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
    white-space: nowrap;
}

.toast.toast-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast-undo {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    color: #f0f7f6;
    padding: 3px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
}

.toast-undo:hover {
    background: rgba(255,255,255,0.25);
}

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
    }

    .container {
        padding: 10px;
        width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    #plan {
        width: 100%;
        overflow: hidden;
    }

    .plan-builder {
        width: 100%;
        overflow: hidden;
    }

    .program-bar,
    .add-panel {
        box-shadow: none;
    }

    .plan-builder > * {
        min-width: 0;
        width: 100%;
        box-sizing: border-box;
    }

    .add-panel {
        width: 100%;
        box-sizing: border-box;
    }

    .calendar-surface {
        min-width: 0;
        width: 100%;
        overflow: hidden;
    }

    .program-bar {
        width: 100%;
        box-sizing: border-box;
    }

    .cal-table-wrap {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .header {
        height: 100px;
        padding: 1rem 1.5rem;
    }

    .header-logo {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
    }

    .form-row, .form-row-3 {
        grid-template-columns: 1fr;
    }

    .plan-builder {
        grid-template-columns: 1fr;
        width: 100%;
        box-sizing: border-box;
    }

    .calendar-col {
        display: contents;
    }

    .program-bar {
        order: 1;
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        padding: 1rem;
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
        margin-bottom: 1rem;
    }

    .add-panel {
        order: 2;
        width: 100%;
        box-sizing: border-box;
    }

    .calendar-surface {
        order: 3;
        width: 100%;
        min-width: 0;
    }

    .config-section {
        margin-left: 0;
    }

    .program-bar-left {
        width: 100%;
    }

    .checklist-checkbox {
        width: 22px;
        height: 22px;
    }

    .checklist-item {
        padding: 12px 12px;
        gap: 12px;
    }

    .checklist-name {
        font-size: 14px;
    }

    .exercise-checklist {
        max-height: 280px;
    }

    .program-bar-right {
        display: flex;
        justify-content: flex-end;
        flex-wrap: wrap;
        gap: 0.5rem;
        width: 100%;
        box-sizing: border-box;
    }

    .program-meta-input {
        font-size: 1rem;
        width: auto;
        min-width: 0;
        flex: 1;
    }

    .export-desktop-wrapper {
        display: none;
    }

    .export-mobile-btn {
        display: inline-flex;
    }

    /* Calendar: on mobile, allow horizontal scroll */
    .cal-table-wrap {
        border-radius: 6px;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .cal-grid-table {
        min-width: 480px;
    }

    .nav-tab {
        font-size: 12px;
        padding: 8px 6px;
    }

    .day-buttons {
        justify-content: center;
    }

    .exercise-library {
        grid-template-columns: 1fr;
    }
}


/* Enhanced Exercise Library Styles - Add these to your styles.css */

/* Exercise Grid Layout */
.exercise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Enhanced Exercise Cards */
.exercise-card-enhanced {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.exercise-card-enhanced:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #d1d5db;
    transform: translateY(-2px);
}

/* Card Header */
.exercise-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1rem 1rem 0.5rem;
    gap: 0.5rem;
}

.exercise-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    flex: 1;
}

.category-badge-enhanced {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #f0f7f6 0%, #e5e7eb 100%);
    color: #4b5563;
    border: 1px solid #d1d5db;
}

.exercise-actions {
    display: flex;
    gap: 0.25rem;
    flex-shrink: 0;
}

/* Category Checkbox Dropdown */
.cat-dropdown {
    position: relative;
    width: 100%;
}

.cat-dropdown-trigger {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    color: #2a3d3c;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: border-color 0.2s ease;
    text-align: left;
}

.cat-dropdown-trigger:focus {
    outline: none;
    border-color: #4d8b84;
    box-shadow: 0 0 0 3px rgba(77, 139, 132, 0.12);
}

.cat-dropdown-trigger:hover {
    border-color: #4d8b84;
}

.cat-dropdown-trigger span {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #6b7280;
}

.cat-dropdown-trigger span.has-selection {
    color: #1a3432;
}

.cat-dropdown-trigger svg {
    flex-shrink: 0;
    margin-left: 8px;
    color: #9ca3af;
    transition: transform 0.2s ease;
}

.cat-dropdown-trigger.active svg {
    transform: rotate(180deg);
}

.cat-dropdown-trigger.active {
    border-color: #4d8b84;
    box-shadow: 0 0 0 3px rgba(77, 139, 132, 0.12);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.cat-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #4d8b84;
    border-top: none;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 100;
    max-height: 200px;
    overflow-y: auto;
}

.cat-dropdown-menu.open {
    display: block;
}

.cat-checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    color: #2a3d3c;
    transition: background 0.15s ease;
    user-select: none;
}

.cat-checkbox-item:hover {
    background: #f0f7f6;
}

.cat-checkbox-item input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: #4d8b84;
    cursor: pointer;
    flex-shrink: 0;
    margin: 0;
}

.cat-dropdown-empty {
    padding: 10px 12px;
    font-size: 13px;
    color: #9ca3af;
    text-align: center;
    font-style: italic;
}

/* Icon Buttons */
.btn-icon {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: #f8fafc;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border: 1px solid #e5e7eb;
}

.btn-icon:hover {
    background: #4d8b84;
    color: white;
    border-color: #4d8b84;
    transform: scale(1.05);
}

.btn-icon.btn-danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

/* Exercise Images */
.exercise-images {
    position: relative;
    margin: 0 1rem;
    border-radius: 8px;
    overflow: hidden;
    height: 160px;
    background: #f8fafc;
}

.exercise-image-main {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.exercise-image-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: pointer;
    display: block;
    background: #f0f7f6;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.exercise-image-main img.loaded {
    opacity: 1;
}

.exercise-image-main:hover img.loaded {
    transform: scale(1.05);
    transition: opacity 0.2s ease, transform 0.3s ease;
}

.exercise-image-main:hover img {
    transform: scale(1.05);
}

.image-count {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

/* No Image Placeholder */
.exercise-no-image {
    margin: 0 1rem;
    aspect-ratio: 16/10;
    border-radius: 8px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px dashed #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-image-placeholder {
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Exercise Content */
.exercise-content {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.exercise-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.exercise-description {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    flex: 1;
}

.exercise-notes {
    background: #fef3cd;
    border: 1px solid #f59e0b;
    border-radius: 6px;
    padding: 0.5rem;
    font-size: 0.85rem;
    color: #92400e;
    margin-top: 0.5rem;
}

.exercise-notes strong {
    color: #78350f;
}

/* Card Footer */
.exercise-card-footer {
    padding: 0 1rem 1rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: auto;
}

.btn-primary-outline {
    background: transparent;
    color: #4d8b84;
    border: 1px solid #4d8b84;
    flex: 1;
}

.btn-primary-outline:hover {
    background: #4d8b84;
    color: white;
}

.btn-secondary-outline {
    background: transparent;
    color: #6b7280;
    border: 1px solid #d1d5db;
}

.btn-secondary-outline:hover {
    background: #6b7280;
    color: white;
    border-color: #6b7280;
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding: 1rem 0;
    border-top: 1px solid #e5e7eb;
}

.pagination-info {
    color: #6b7280;
    font-size: 0.9rem;
}

.pagination {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.pagination-btn {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    background: white;
    color: #2a3d3c;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-btn:hover:not(.active) {
    background: #f0f7f6;
    border-color: #9ca3af;
}

.pagination-btn.active {
    background: #4d8b84;
    color: white;
    border-color: #4d8b84;
    font-weight: 600;
}

.pagination-ellipsis {
    padding: 8px 4px;
    color: #9ca3af;
    font-size: 0.9rem;
}

/* No Exercises State */
.no-exercises {
    text-align: center;
    padding: 4rem 2rem;
    color: #6b7280;
}

.no-exercises-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-exercises h3 {
    color: #2a3d3c;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.no-exercises p {
    font-size: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

/* Exercise Details Modal */
.exercise-details-modal {
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

.exercise-details-header {
    margin-bottom: 1.5rem;
}

.exercise-details-header h2 {
    margin-bottom: 0.75rem;
    color: #111827;
    font-size: 1.75rem;
}

.exercise-details-images {
    margin-bottom: 2rem;
}

.main-image {
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    background: #f8fafc;
}

.main-image img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
}

.image-thumbnails {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.5rem 0;
}

.thumbnail {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: #4d8b84;
    transform: scale(1.05);
}

.exercise-details-content {
    margin-bottom: 1.5rem;
}

.exercise-section {
    margin-bottom: 1.5rem;
}

.exercise-section h3 {
    color: #2a3d3c;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.exercise-section p {
    color: #4b5563;
    line-height: 1.6;
}

.exercise-details-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .exercise-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .exercise-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .exercise-actions {
        align-self: flex-end;
    }
    
    .pagination-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .pagination {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .exercise-details-actions {
        flex-direction: column;
    }
    
    .image-thumbnails {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .exercise-card-footer {
        flex-direction: column;
    }
    
    .pagination-btn {
        min-width: 36px;
        padding: 6px 10px;
        font-size: 0.85rem;
    }
}
/* Program Library Styles */
.program-library {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.program-card {
  transition: transform 0.2s, box-shadow 0.2s;
}

.program-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.category-badge {
  display: inline-block;
  background: #4d8b84;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  margin: 0.25rem;
  font-weight: 500;
}

/* Loading indicator for image uploads */
.image-preview.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f7f6;
  border: 2px dashed #d1d5db;
  border-radius: 8px;
  min-height: 100px;
  color: #6b7280;
  font-weight: 500;
}

.image-preview.loading::after {
  content: '';
  width: 20px;
  height: 20px;
  margin-left: 10px;
  border: 3px solid #d1d5db;
  border-top-color: #4d8b84;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}