/* Design Tokens - Bewegingstherapie Davidse */
:root {
    --color-primary: #de2e81;
    --color-info: #0098d2;
    --color-text: #3b3630;
    --color-bg: #ffffff;
    --color-surface: #ffffff;
    --color-muted: #f8f9fa;
    --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-header: 0 2px 12px rgba(0, 0, 0, 0.08);
    --radius-card: 12px;
    --radius-button: 8px;
    --spacing-xs: 8px;
    --spacing-sm: 12px;
    --spacing-md: 16px;
    --spacing-lg: 20px;
    --spacing-xl: 32px;
    --header-height: 64px;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-text);
    background-color: #f5f5f7;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--color-text);
    font-weight: 700;
    margin: 0 0 var(--spacing-md) 0;
}

h1 {
    font-size: 1.75rem;
}

h2 {
    font-size: 1.375rem;
}

h3 {
    font-size: 1.25rem;
}

p {
    margin: 0 0 var(--spacing-md) 0;
}

/* Header - Sticky White Bar */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-bg);
    box-shadow: var(--shadow-header);
    height: var(--header-height);
}

.header__inner {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header__brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    text-decoration: none;
    color: var(--color-text);
}

.header__logo {
    height: 40px;
    width: auto;
}

.header__title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    display: none;
}

.header__page-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--color-info);
}

/* Main Content Layout */
.main-content {
    max-width: 600px;
    margin: 0 auto;
    padding: var(--spacing-lg) var(--spacing-md);
    padding-bottom: 0;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: var(--spacing-md);
}

/* Section Title */
.section-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-lg);
}

/* Exercises Section */
.exercises-section {
    margin-bottom: var(--spacing-xl);
}

/* Cards */
.card {
    background: var(--color-surface);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.card--clickable {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card--clickable:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* Oefening Card */
.oefening-card {
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
}

.oefening-card__thumbnail {
    width: 72px;
    height: 72px;
    background: var(--color-primary);
    border-radius: 50% 50% 50% 0; /* Leaf shape */
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.card--clickable:hover .oefening-card__thumbnail {
    transform: scale(1.05);
}

.oefening-card__thumbnail svg {
    width: 28px;
    height: 28px;
    fill: white;
    margin-left: 2px;
}

.oefening-card__content {
    flex: 1;
    min-width: 0;
}

.oefening-card__title {
    font-size: 1.25rem; /* 20px as per CLAUDE.md */
    font-weight: 700;
    margin: 0 0 var(--spacing-xs) 0;
    line-height: 1.3;
}

.oefening-card__description {
    font-size: 0.9375rem;
    color: #666;
    margin: 0 0 var(--spacing-sm) 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.oefening-card__meta {
    display: flex;
    gap: var(--spacing-lg);
    font-size: 0.875rem;
    color: var(--color-info);
    font-weight: 500;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.meta-icon {
    width: 16px;
    height: 16px;
    opacity: 0.8;
}

/* WhatsApp Section - Distinct Admin Area */
.whatsapp-section {
    background: var(--color-muted);
    border-top: 1px solid #e5e5e7;
    margin: 0 calc(-1 * var(--spacing-md));
    padding: var(--spacing-xl) var(--spacing-md);
}

.whatsapp-section__inner {
    max-width: 600px;
    margin: 0 auto;
}

.whatsapp-section__header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.whatsapp-section__header h2 {
    margin: 0;
    font-size: 1.25rem;
}

.whatsapp-icon {
    width: 28px;
    height: 28px;
    color: #25D366;
}

.whatsapp-form {
    background: var(--color-bg);
    border-radius: var(--radius-card);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-card);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-lg);
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-button);
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 44px;
    min-width: 44px;
    text-decoration: none;
}

.btn:active {
    transform: scale(0.98);
}

.btn--primary {
    background-color: var(--color-primary);
    color: white;
}

.btn--primary:hover {
    background-color: #c42870;
    box-shadow: 0 4px 12px rgba(222, 46, 129, 0.3);
}

.btn--secondary {
    background-color: transparent;
    color: var(--color-info);
    border: 2px solid var(--color-info);
}

.btn--secondary:hover {
    background-color: rgba(0, 152, 210, 0.1);
}

.btn--pill {
    border-radius: 50px;
}

.btn--full {
    width: 100%;
}

.btn--lg {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1.0625rem;
    min-height: 52px;
}

.btn svg {
    width: 20px;
    height: 20px;
}

/* Forms - Modernized */
.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    font-size: 0.9375rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: var(--spacing-md);
    font-size: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: var(--radius-button);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    min-height: 52px;
    background: white;
}

.form-group input::placeholder {
    color: #999;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-info);
    box-shadow: 0 0 0 3px rgba(0, 152, 210, 0.15);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%233b3630' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 44px;
}

/* Flash Messages */
.flash {
    padding: var(--spacing-md);
    border-radius: var(--radius-button);
    margin-bottom: var(--spacing-md);
    font-weight: 500;
}

.flash--success {
    background-color: rgba(0, 152, 210, 0.1);
    color: var(--color-info);
    border: 1px solid var(--color-info);
}

.flash--error {
    background-color: rgba(222, 46, 129, 0.1);
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}

/* Video Player */
.video-container {
    position: relative;
    border-radius: var(--radius-card);
    overflow: hidden;
    background: #000;
    margin-bottom: var(--spacing-md);
}

.video-container video,
.video-container iframe {
    width: 100%;
    display: block;
}

.video-container--stream {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    background: var(--color-primary);
    border: none;
    border-radius: 50% 50% 50% 0; /* Leaf shape */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.video-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.video-play-btn svg {
    width: 28px;
    height: 28px;
    fill: white;
    margin-left: 4px;
}

/* Oefening Details */
.oefening-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.oefening-info__item {
    text-align: center;
    padding: var(--spacing-lg);
    background: var(--color-muted);
    border-radius: var(--radius-card);
}

.oefening-info__label {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
}

.oefening-info__value {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-info);
}

/* Status Indicators */
.status {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 0.875rem;
    padding: 4px 12px;
    border-radius: 50px;
    font-weight: 500;
}

.status--new {
    background-color: rgba(0, 152, 210, 0.1);
    color: var(--color-info);
}

.status--done {
    background-color: rgba(222, 46, 129, 0.1);
    color: var(--color-primary);
}

/* Client List - Multi-select */
.client-list {
    max-height: 280px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: var(--radius-button);
    margin-bottom: var(--spacing-md);
}

.client-item {
    display: flex;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.15s ease;
    min-height: 48px;
}

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

.client-item:hover {
    background: var(--color-muted);
}

.client-item:has(input:checked) {
    background: rgba(0, 152, 210, 0.08);
}

.client-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: var(--spacing-sm);
    accent-color: var(--color-info);
    cursor: pointer;
}

.client-item__name {
    flex: 1;
    font-weight: 500;
    color: var(--color-text);
}

.client-item__phone {
    color: #666;
    font-size: 0.875rem;
}

.client-empty {
    padding: var(--spacing-lg);
    text-align: center;
    color: #666;
}

/* Utility */
.text-center {
    text-align: center;
}

.mt-lg {
    margin-top: var(--spacing-lg);
}

.mb-lg {
    margin-bottom: var(--spacing-lg);
}
