/* ===== RIDES COMMON STYLES ===== */
/* Gedeelde styling voor alle ride gerelateerde pagina's */

/* Base card styling */
.rides-card {
    background-color: var(--surface-color);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--surface-shadow);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--surface-border);
}

.rides-card-header {
    background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
    padding: 1.25rem 1.5rem;
    color: var(--primary-contrast);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.rides-card-header h3 {
    margin: 0;
    flex: 1;
    color: var(--primary-contrast);
}

.rides-card-header .rides-btn {
    flex-shrink: 0;
}

.header-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.header-actions .rides-btn {
    flex-shrink: 0;
}

.checkbox-group-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 200px;
    overflow-y: auto;
    padding: 0.5rem;
    border: 1px solid var(--surface-border);
    border-radius: var(--border-radius);
    background-color: var(--surface-muted);
}

.rides-card-content {
    padding: 1.5rem;
}

/* Form styling */
.rides-form-input,
.rides-form-select,
.rides-form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--primary-border);
    border-radius: var(--border-radius-lg);
    background-color: var(--surface-color);
    box-shadow: var(--shadow-sm);
    color: var(--text-color);
    transition: var(--transition);
    font-size: 0.875rem;
    font-weight: 500;
}

.rides-form-input:focus,
.rides-form-select:focus,
.rides-form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

.rides-form-input:hover,
.rides-form-select:hover,
.rides-form-textarea:hover {
    border-color: var(--primary-light);
}

.rides-form-textarea {
    min-height: 120px;
    resize: vertical;
}

.rides-form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

/* Checkbox styling */
.rides-form-checkbox {
    width: 1rem;
    height: 1rem;
    border: 2px solid var(--primary-border);
    border-radius: 0.25rem;
    background-color: var(--surface-color);
    cursor: pointer;
    transition: var(--transition);
    margin-right: 0.5rem;
}

.rides-form-checkbox:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='m13.854 3.646-7-7a.5.5 0 0 0-.708 0l-3.5 3.5a.5.5 0 1 0 .708.708L6 4.207l6.646 6.647a.5.5 0 0 0 .708-.708z'/%3e%3c/svg%3e");
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
}

.rides-form-checkbox:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.checkbox-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    cursor: pointer;
}

/* Specific styling for select options */
.rides-form-select option {
    color: var(--text-color);
    background-color: var(--surface-color);
    font-weight: 500;
}

.rides-form-select option:checked {
    background-color: var(--primary-color);
    color: var(--primary-contrast);
}

/* Button styling */
.rides-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-lg);
    font-weight: 500;
    font-size: 0.875rem;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    border: none;
    outline: none;
}

.rides-btn-sm {
    padding: 0.5rem 0.9rem;
    font-size: 0.75rem;
}

.rides-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--primary-contrast), 0 0 0 4px var(--primary-color);
}

.rides-btn-primary {
    background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
    color: var(--primary-contrast);
    box-shadow: var(--shadow-md);
}

.rides-btn-primary:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.rides-btn-primary:focus {
    box-shadow: 0 0 0 2px var(--primary-contrast), 0 0 0 4px var(--primary-color);
}

.rides-btn-secondary {
    border: 2px solid var(--surface-border);
    color: var(--text-color);
    background-color: var(--surface-color);
}

.rides-btn-secondary:hover {
    background-color: var(--surface-muted);
    border-color: var(--gray-300);
}

.rides-btn-secondary:focus {
    box-shadow: 0 0 0 2px var(--surface-color), 0 0 0 4px var(--gray-400);
}

.rides-btn-danger {
    background: linear-gradient(to right, var(--error-color), #dc2626);
    color: var(--primary-contrast);
    box-shadow: var(--shadow-md);
}

.rides-btn-danger:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.rides-btn-warning {
  background: var(--warning-color);
  color: var(--primary-contrast);
}

.rides-btn-warning:hover {
  background: #dc6626;
}

.rides-btn-info {
  background: linear-gradient(to right, var(--info-color), #0ea5e9);
  color: var(--primary-contrast);
}

.rides-btn-info:hover {
  background: #0ea5e9;
}

/* Section styling */
.rides-section {
    margin-bottom: 2rem;
}

.rides-section-header {
    border-bottom: 1px solid var(--surface-border);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.rides-section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rides-section-subtitle {
    font-size: 0.875rem;
    color: var(--text-subtle);
    margin-top: 0.25rem;
}

.rides-section-description {
    font-size: 0.9rem;
    color: var(--text-subtle);
    margin: 0;
    line-height: 1.4;
}

.rides-section-notes{
    font-size: 0.70rem;
    color: var(--text-subtle);
    margin: 0;
    line-height: 1.4;
}

.rides-section-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background-color: var(--primary-soft);
    color: var(--primary-color);
    border-radius: 50%;
    font-size: 0.875rem;
    font-weight: 700;
}

/* Grid layouts */
.rides-grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

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

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

@media (min-width: 100px) {
    .rides-grid-4 {
        grid-template-columns: repeat(1, 1fr);
    }
    .rides-grid-3 {
        grid-template-columns: repeat(1, 1fr);
    }
}
@media (min-width: 275px) {
    .rides-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (min-width: 288px) {
    .rides-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (min-width: 450px) {
    .rides-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .rides-grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    .rides-grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}


/* Info cards */
.rides-info-card {
    padding: 1.5rem;
    background: linear-gradient(to bottom right, var(--primary-soft), rgba(255, 255, 255, 0.85));
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--primary-border);
}

.rides-stats-card {
    padding: 1rem;
    background-color: var(--surface-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--surface-border);
    text-align: center;
}

.rides-highlight-card {
    padding: 1.5rem;
    background: linear-gradient(to bottom right, var(--accent-soft), rgba(255, 255, 255, 0.9));
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--accent-soft);
}

/* List items */
.rides-list-item {
    background-color: var(--surface-color);
    border: 1px solid var(--surface-border);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    transition: var(--transition);
    cursor: pointer;
}

.rides-list-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.rides-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.rides-list-item__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.rides-list-item__title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.rides-list-item__body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: var(--text-muted);
}

.rides-list-item__text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    margin: 0;
}

.rides-list-item__icon {
    font-size: 1rem;
}

.rides-list-item__footer {
    margin-top: 1rem;
    display: flex;
    justify-content: flex-end;
}

.rides-list-item__meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rides-list-more {
    margin-top: 1rem;
    text-align: center;
}

.rides-list-item__actions {
    display: flex;
    gap: 0.5rem;
}

.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem 0;
}

.quick-actions__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 0.85rem;
    background: none;
    border: none;
    text-align: left;
    font: inherit;
    color: var(--text-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
    cursor: pointer;
}

.quick-actions__item:hover {
    background: var(--surface-muted);
}

.quick-actions__item--danger {
    color: var(--error-color);
}

.quick-actions__item--danger:hover {
    background: rgba(239, 68, 68, 0.12);
}

/* Locations */
.page-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

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

.locations-filter {
    display: grid;
    gap: 1.25rem;
}

.locations-filter__search,
.locations-filter__toggle {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.locations-filter__toggle {
    flex-wrap: wrap;
    flex-direction: row;
}

.locations-filter__toggle .rides-btn.is-active {
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    color: var(--primary-contrast);
}

.locations-grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 640px) {
    .locations-filter {
        grid-template-columns: 1fr auto;
        align-items: flex-end;
    }
    .locations-filter__search {
        max-width: 22rem;
    }
    .locations-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }
}

.location-card {
    background: var(--surface-color);
    border: 1px solid var(--surface-border);
    border-radius: var(--border-radius-lg);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    transition: var(--transition);
}

.location-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.location-card__header {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: flex-start;
}

.location-card__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-color);
    flex: 1;
}

.location-card__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--surface-muted);
    color: var(--text-subtle);
    white-space: nowrap;
}

.location-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.location-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    color: var(--text-subtle);
    font-size: 0.8rem;
}

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

.location-card__actions .rides-btn {
    flex: 1 1 120px;
}

@media (min-width: 640px) {
    .location-card__actions .rides-btn {
        flex: 0 0 auto;
    }
}

.rides-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-top: 0rem;
    padding-bottom: 1.5rem;
}

.rides-modal-actions {
    display: flex;
    gap: 0.75rem;
}

.rides-modal-content--lg {
    max-width: 640px;
}

.favorite-btn-text {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.location-horses-grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 768px) {
    .location-horses-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }
}

.horse-card {
    background: var(--surface-color);
    border: 1px solid var(--surface-border);
    border-radius: var(--border-radius-lg);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: var(--transition);
}

.horse-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.horse-card--unsuitable {
    border-style: dashed;
    opacity: 0.85;
}

.horse-card__header {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
}

.horse-card__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-color);
}

.horse-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-subtle);
}

.horse-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.horse-card__actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.horse-card__actions .rides-btn {
    flex: 1;
    min-width: fit-content;
}

.location-stats-grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 640px) {
    .location-stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

.location-detail-grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 640px) {
    .location-detail-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

.detail-item {
    background: var(--surface-muted);
    border-radius: var(--border-radius);
    padding: 0.85rem 1rem;
}

.detail-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-subtle);
    margin-bottom: 0.25rem;
}

.detail-value {
    color: var(--text-color);
    font-weight: 600;
}

.horse-detail-grid {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .horse-detail-grid {
        grid-template-columns: 220px 1fr;
    }
}

.horse-detail-image {
    width: 100%;
    border-radius: var(--border-radius-lg);
    object-fit: cover;
}

.horse-detail-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: var(--surface-muted);
    border-radius: var(--border-radius-lg);
    font-size: 2.5rem;
}

/* Placeholder for favorite cards - fixed height instead of aspect ratio */
.favorite-card__image .horse-detail-placeholder {
    aspect-ratio: unset;
    height: 100%;
}

.horse-details-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Profile */
.profile-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.profile-picture-section {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.profile-picture-preview {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--surface-border);
    background: var(--surface-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-subtle);
}

.profile-picture-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-picture-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    background: var(--surface-muted);
    color: var(--text-subtle);
}

.profile-picture-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.favorite-horses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.favorite-card {
    position: relative;
    border: 1px solid var(--surface-border);
    border-radius: var(--border-radius-lg);
    background: var(--surface-color);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.favorite-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.favorite-card__image {
    position: relative;
    height: 120px;
    background: var(--surface-muted);
}

.favorite-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.favorite-card__remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--error-color);
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
    opacity: 0;
    transition: var(--transition);
}

.favorite-card:hover .favorite-card__remove {
    opacity: 1;
}

.favorite-card__body {
    padding: 0.75rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.favorite-card__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
}

.favorite-card__meta {
    font-size: 0.85rem;
    color: var(--text-subtle);
}

.rides-card-header--danger {
    background: linear-gradient(90deg, #dc2626, #b91c1c);
}

/* Profile card helpers */
.profile-card__summary {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--surface-border);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.profile-avatar--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-muted);
    color: var(--text-subtle);
    font-weight: 700;
    font-size: 1.25rem;
}

.profile-card__details {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.profile-card__title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.profile-card__name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.profile-card__meta {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-subtle);
}

.profile-card__bio {
    margin: 1rem 0;
    color: var(--text-muted);
    line-height: 1.5;
}

.profile-card__grid {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.profile-card__grid dt {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-subtle);
    margin: 0 0 0.25rem 0;
}

.profile-card__grid dd {
    margin: 0;
    font-weight: 600;
    color: var(--text-color);
}

/* Badges */
.rides-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.rides-badge-blue {
    background-color: #dbeafe;
    color: #1e40af;
}

.rides-badge-green {
    background-color: #d1fae5;
    color: #065f46;
}

.rides-badge-yellow {
    background-color: #fef3c7;
    color: #92400e;
}

.rides-badge-red {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Progress bar */
.rides-progress {
    width: 100%;
    background-color: var(--gray-200);
    border-radius: 9999px;
    height: 0.5rem;
    overflow: hidden;
}

.rides-progress-bar {
    background: linear-gradient(to right, var(--primary-color), var(--primary-light));
    height: 100%;
    border-radius: 9999px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Loading spinner */
.rides-loading {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid var(--gray-600);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Empty states */
.rides-empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.rides-empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.rides-empty-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.rides-empty-description {
    color: var(--gray-500);
    margin-bottom: 1.5rem;
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
}

/* Star rating */
.rides-star-rating {
    display: flex !important;
    flex-direction: row !important;
    gap: 0.25rem !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
}

.rides-star {
  font-size: 28px !important;         /* Grotere ster */
  width: 36px !important;             /* Touch target breedte */
  height: 36px !important;            /* Touch target hoogte */
  line-height: 36px !important;
  text-align: center !important;
  color: #ccc !important;
  cursor: pointer !important;
  user-select: none !important;
  touch-action: manipulation !important;
}

.rides-star {
    font-size: 1.75rem !important;
    color: #d1d5db !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    padding: 0.25rem !important;
    border-radius: 0.25rem !important;
    min-width: 35px !important;
    height: 50px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    user-select: none !important;
    border: none !important;
    background: transparent !important;
    flex-shrink: 0 !important;
    line-height: 1 !important;
    position: relative !important;
}

.rides-star:hover {
    transform: scale(1.1) !important;
    color: #fbbf24 !important;
}

.rides-star.active {
    color: #f59e0b !important;
    text-shadow: 0 1px 2px rgba(245, 158, 11, 0.3) !important;
}

.rides-star.hover-active {
    color: #fbbf24 !important;
}

.rides-star::after {
    content: attr(data-value) !important;
    font-size: 0.75rem !important;
    color: #6b7280 !important;
    position: absolute !important;
    bottom: -2px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
}

.rides-star.active::after {
    color: #f59e0b !important;
}

.rides-star.hover-active::after {
    color: #fbbf24 !important;
}

.rides-star::after {
    content: attr(data-value) !important;
    font-size: 0.75rem !important;
    color: #6b7280 !important;
    position: absolute !important;
    bottom: -2px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
}

.rides-star.active::after {
    color: #f59e0b !important;
}

.rides-star.hover-active::after {
    color: #fbbf24 !important;
}

/* General star rating */
.star-rating {
    display: flex !important;
    flex-direction: row !important;
    gap: 0.25rem !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
}

.star {
    font-size: 1.5rem !important;
    color: #d1d5db !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    padding: 0.25rem !important;
    border-radius: 0.25rem !important;
    min-width: 30px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    user-select: none !important;
    border: none !important;
    background: transparent !important;
    flex-shrink: 0 !important;
    line-height: 1 !important;
}

.star:hover {
    transform: scale(1.1) !important;
    color: #fbbf24 !important;
}

.star.active {
    color: #f59e0b !important;
    text-shadow: 0 1px 2px rgba(245, 158, 11, 0.3) !important;
}

.star.hover-active {
    color: #fbbf24 !important;
}

/* Template buttons */
.rides-template-btn {
    padding: 1rem;
    border: 1px solid var(--surface-border);
    border-radius: var(--border-radius);
    text-align: center;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    background: var(--surface-color);
}

.rides-template-btn:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* Floating action button */
.rides-fab {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 3.5rem;
    height: 3.5rem;
    background: linear-gradient(to right, var(--primary-color), var(--primary-light));
    color: var(--primary-contrast);
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.25rem;
    transition: var(--transition);
    z-index: 99999;
    border: none;
    cursor: pointer;
}

.rides-fab:hover {
    box-shadow: var(--shadow-xl);
    transform: scale(1.05);
}

.rides-fab:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--primary-contrast), 0 0 0 4px var(--primary-color);
}

/* Extra iPhone/iOS specifieke styling voor FAB */
@media screen and (max-width: 480px) {
    .rides-fab {
        position: fixed !important;
        z-index: 99999 !important;
        bottom: 2rem !important;
        right: 1rem !important;
        width: 3rem !important;
        height: 3rem !important;
        font-size: 1rem !important;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
        transition: bottom 0.3s ease !important;
    }
    
    /* Wanneer mobiel menu actief is, verhoog de bottom afstand */
    body.mobile-menu-active .rides-fab {
        bottom: 280px !important; /* Aanpassen op basis van menu hoogte */
    }
}

/* Voor zeer kleine schermen (iPhone SE, etc.) */
@media screen and (max-width: 375px) {
    .rides-fab {
        bottom: 1.5rem !important;
        right: 0.75rem !important;
        width: 2.75rem !important;
        height: 2.75rem !important;
        font-size: 0.9rem !important;
    }
}

/* Kritische override voor mobile menu conflicts */
.rides-fab {
    z-index: 999999 !important;
    position: fixed !important;
    pointer-events: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
}

/* iOS Safari specifieke fixes */
@supports (-webkit-appearance: none) {
    .rides-fab {
        -webkit-transform: translateZ(0) !important;
        transform: translateZ(0) !important;
        -webkit-backface-visibility: hidden !important;
        backface-visibility: hidden !important;
    }
}

/* Algemene mobiele menu compensatie voor fixed elementen */
@media screen and (max-width: 768px) {
    /* Wanneer mobiel menu actief is, voeg padding toe aan body */
    body.mobile-menu-active {
        padding-bottom: 250px !important;
        transition: padding-bottom 0.3s ease !important;
    }
    
    /* Fixed elementen aanpassen wanneer menu actief is */
    body.mobile-menu-active .rides-fab,
    body.mobile-menu-active [style*="position: fixed"],
    body.mobile-menu-active .fixed {
        bottom: calc(250px + 1rem) !important;
        transition: bottom 0.3s ease !important;
    }
    
    /* Form sections en buttons een hogere z-index geven wanneer menu actief is */
    body.mobile-menu-active .rides-form-section,
    body.mobile-menu-active .rides-form,
    body.mobile-menu-active .form-actions,
    body.mobile-menu-active .rides-btn,
    body.mobile-menu-active button,
    body.mobile-menu-active .btn,
    body.mobile-menu-active form,
    body.mobile-menu-active .flex-1,
    body.mobile-menu-active .rides-btn-primary,
    body.mobile-menu-active [class*="btn"] {
        position: relative !important;
        z-index: 999999 !important;
    }
    
    /* Voor zeer kleine schermen andere menu hoogte */
    @media screen and (max-width: 375px) {
        body.mobile-menu-active .rides-fab {
            bottom: calc(220px + 1rem) !important;
        }
    }
}

/* Modal styling */
.rides-modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.rides-modal.hidden {
    display: none;
}

.rides-modal-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.rides-modal-content {
    position: relative;
    background-color: var(--surface-color);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-2xl);
    max-width: 32rem;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--surface-border);
}

.rides-modal-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--surface-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rides-modal-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-color);
}

.rides-modal-close {
    color: var(--gray-400);
    padding: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
    background: none;
    border: none;
    font-size: 1.125rem;
}

.rides-modal-close:hover {
    color: var(--gray-600);
}

.rides-modal-body {
    padding: 1.5rem;
}

/* Filter section */
.rides-filter-section {
    background-color: var(--surface-color);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 1.5rem;
    border: 1px solid var(--surface-border);
}

.rides-filter-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.rides-filter-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (min-width: 640px) {
    .rides-filter-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .rides-filter-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Search input specific styling */
.rides-search-input {
    position: relative;
}

.rides-search-input::before {
    content: "🔍";
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    pointer-events: none;
}

.rides-search-input input {
    padding-left: 2.5rem;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .rides-card-header {
        padding: 1rem 1rem;
    }
    
    .rides-card-content {
        padding: 1rem;
    }
    
    .rides-grid-2,
    /* .rides-grid-3, */
    /* .rides-grid-4 {
        grid-template-columns: 1fr;
    } */
    
    .rides-filter-grid {
        grid-template-columns: 1fr;
    }
    
    .rides-fab {
        bottom: 1rem;
        right: 1rem;
    }
}

/* Animation classes */
.rides-fade-in {
    animation: fadeIn 0.6s ease-out;
}

.rides-slide-in {
    animation: slideIn 0.4s ease-out;
}

.rides-bounce-in {
    animation: bounceIn 0.6s ease-out;
}

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

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Custom scrollbar */
.rides-scroll::-webkit-scrollbar {
    width: 6px;
}

.rides-scroll::-webkit-scrollbar-track {
    background-color: var(--gray-100);
    border-radius: 9999px;
}

.rides-scroll::-webkit-scrollbar-thumb {
    background-color: var(--gray-300);
    border-radius: 9999px;
}

.rides-scroll::-webkit-scrollbar-thumb:hover {
    background-color: var(--gray-400);
}

/* Kids mode styling for horse details */
.horse-property-description,
.horse-riding-type-description,
.horse-size-description {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.25rem;
    line-height: 1.2;
}

.kids-mode .horse-property-description,
.kids-mode .horse-riding-type-description,
.kids-mode .horse-size-description {
    display: none;
}

.horse-detail-property,
.horse-detail-riding-type {
    margin-bottom: 0.5rem;
}

.kids-mode .horse-detail-property .description,
.kids-mode .horse-detail-riding-type .description {
    display: none;
}

/* ===== RIDE DETAIL PAGE STYLES ===== */

/* Page navigation */
.page-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.page-actions {
    display: flex;
    gap: 0.5rem;
}

/* Clickable detail items */
.detail-item-clickable {
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-radius: 4px;
    padding: 0.5rem;
    margin: -0.5rem;
}

.detail-item-clickable:hover {
    background-color: #f3f4f6;
}

.detail-item-clickable:active {
    background-color: #e5e7eb;
}

.detail-item-clickable:focus {
    outline: 2px solid #93c5fd;
    outline-offset: 2px;
}

/* Ride details grid and items */
.ride-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-4);
}

.ride-detail-grid .detail-item {
    padding: var(--spacing-3);
    background: var(--gray-50);
    border-radius: var(--border-radius);
}

.ride-detail-grid .detail-label {
    font-size: var(--font-size-sm);
    color: var(--gray-600);
    margin-bottom: var(--spacing-1);
    font-weight: 500;
}

.ride-detail-grid .detail-value {
    font-size: var(--font-size-base);
    color: var(--gray-900);
    font-weight: 600;
}

/* Enhanced detail section styles */
.detail-section-header {
    grid-column: 1 / -1;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    margin-top: 1rem;
    margin-bottom: 0.75rem;
}

/* Subsection headers for categories */
.detail-subsection-header {
    grid-column: 1 / -1;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--secondary-color);
    border-bottom: 1px solid var(--secondary-border);
    padding-bottom: 0.3rem;
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
    background: var(--secondary-soft);
    padding: 0.4rem 0.75rem;
    border-radius: var(--border-radius);
}

/* Nested detail items for individual scores */
.detail-item-nested {
    background: var(--surface-muted);
    border-left: 3px solid var(--secondary-color);
    padding-left: 1rem;
    margin-left: 0.5rem;
}

/* Average score items */
.detail-item-average {
    background: linear-gradient(to right, var(--primary-soft), var(--primary-light));
    border: 1px solid var(--primary-border);
    border-radius: var(--border-radius);
    font-weight: 600;
}

/* Kids mode responses styling */
.kids-mode-responses {
    background: linear-gradient(to right, #fef3c7, #fde68a65);
    border: 2px solid #f59e0b;
    border-radius: var(--border-radius-lg);
    padding: 1.25rem;
    margin-top: 1rem;
}

.kids-mode-responses h4 {
    margin: 0 0 1rem 0;
    color: #92400e;
    font-size: 1.1rem;
}

.kids-response-item {
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: var(--border-radius);
    border-left: 3px solid #f59e0b;
}

.kids-response-item:last-child {
    margin-bottom: 0;
}

.kids-response-item strong {
    color: #92400e;
    display: block;
    margin-bottom: 0.25rem;
}

/* Equipment styling */
.detail-item-equipment {
    background: linear-gradient(to right, #f8fafc, #f1f5f9);
    border-left: 4px solid #3b82f6;
    padding: 1rem;
    border-radius: 0.5rem;
}

.stirrup-measurements {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.stirrup-side {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stirrup-side strong {
    color: #374151;
    font-weight: 600;
}

.measurement {
    background: #e5e7eb;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    font-weight: 500;
    color: #1f2937;
}

.stirrup-divider {
    color: #9ca3af;
    font-weight: bold;
}

/* Trainer feedback styling */
.trainer-name {
    font-size: var(--font-size-sm);
    color: var(--gray-500);
    font-style: italic;
}

.trainer-score {
    margin-top: 1rem;
    padding: 0.75rem;
    background: linear-gradient(to right, #f0f9ff, #e0f2fe);
    border-radius: 0.5rem;
    border-left: 4px solid #0ea5e9;
}

.reflection-text, .goals-text, .feedback-text {
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--gray-700);
}

/* Badge styles */
.ride-badges {
    display: flex;
    gap: var(--spacing-2);
    flex-wrap: wrap;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-right: 0.5rem;
    margin-bottom: 0.25rem;
}

.badge-primary {
    background-color: #dbeafe;
    color: #1e40af;
}

.badge-secondary {
    background-color: #f3f4f6;
    color: #374151;
}

.badge-success {
    background-color: #d1fae5;
    color: #065f46;
}

.badge-warning {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-info {
    background-color: #e0f2fe;
    color: #0c4a6e;
}

.badge-danger {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Upload styles */
.uploads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-4);
}

.upload-item {
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.upload-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.upload-preview {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    overflow: hidden;
}

.upload-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: var(--transition);
}

.upload-image:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.upload-icon {
    font-size: 3rem;
    color: var(--gray-400);
}

.upload-info {
    padding: var(--spacing-3);
    position: relative;
}

.upload-name {
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--spacing-1);
    word-break: break-word;
}

.upload-note {
    font-size: var(--font-size-sm);
    color: var(--gray-600);
    margin-bottom: var(--spacing-1);
}

.upload-date {
    font-size: var(--font-size-xs);
    color: var(--gray-500);
}

.upload-actions {
    position: absolute;
    top: var(--spacing-2);
    right: var(--spacing-2);
    display: flex;
    gap: var(--spacing-1);
    opacity: 0;
    transition: var(--transition);
}

.upload-item:hover .upload-actions {
    opacity: 1;
}

.upload-action-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: var(--border-radius-sm);
    padding: var(--spacing-1);
    cursor: pointer;
    font-size: var(--font-size-sm);
    transition: var(--transition);
}

.upload-action-btn:hover {
    background: white;
    box-shadow: var(--shadow-sm);
}

.upload-action-btn.danger {
    color: var(--error-color);
}

.empty-uploads {
    text-align: center;
    padding: var(--spacing-8) var(--spacing-4);
    grid-column: 1 / -1;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: var(--spacing-4);
    color: var(--gray-400);
}

.empty-text {
    color: var(--gray-600);
    margin-bottom: var(--spacing-4);
}

/* Statistics */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-4);
}

.stat-item {
    text-align: center;
    padding: var(--spacing-3);
    background: var(--gray-50);
    border-radius: var(--border-radius);
}

.stat-label {
    font-size: var(--font-size-sm);
    color: var(--gray-600);
    margin-bottom: var(--spacing-1);
}

.stat-value {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--gray-900);
}

/* ===== MODAL STYLES ===== */

/* Modal base styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal.show {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.modal .modal-content {
    background-color: white;
    margin: auto;
    padding: 0;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    max-width: 90vw;
    max-height: 90vh;
    overflow: auto;
    position: relative;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
}

.modal-close:hover,
.modal-close:focus {
    color: #000;
    text-decoration: none;
}

/* Horse and Location modal specific styling */
#horseModal .modal-content,
#locationModal .modal-content {
    padding: 2rem;
    min-width: 300px;
    max-width: 600px;
}

#horseModalContent,
#locationModalContent {
    padding-top: 1rem;
}

/* Horse modal detail styling */
.horse-detail-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.5rem;
    align-items: start;
}

.horse-image-section {
    display: flex;
    justify-content: center;
    align-items: center;
}

.horse-detail-image {
    max-width: 200px;
    max-height: 200px;
    border-radius: 8px;
    object-fit: cover;
}

.horse-detail-placeholder {
    font-size: 4rem;
    color: #9ca3af;
    text-align: center;
    padding: 2rem;
}

.horse-details-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.detail-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row .detail-label {
    font-weight: 600;
    color: #374151;
}

.detail-row .detail-value {
    color: #6b7280;
}

/* Location Details Styling */
.location-detail-grid {
    max-width: 500px;
}

.location-info-section h3 {
    margin: 0 0 1rem 0;
    color: var(--color-primary);
    font-size: 1.5rem;
}

.location-details .detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-border);
}

.location-details .detail-row:last-child {
    border-bottom: none;
}

.location-details .detail-label {
    font-weight: 600;
    color: var(--color-text-secondary);
    min-width: 120px;
}

.location-details .detail-value {
    color: var(--color-text-primary);
    text-align: right;
}

/* Modal large size variant */
.modal-lg .modal-content {
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
}

.media-viewer {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: var(--spacing-4);
}

.image-viewer, .video-viewer {
    text-align: center;
    max-width: 100%;
}

.modal-image, .modal-video {
    max-width: 100%;
    max-height: 70vh;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.image-note, .video-note {
    margin-top: var(--spacing-3);
    padding: var(--spacing-3);
    background: var(--gray-50);
    border-radius: var(--border-radius);
    font-style: italic;
    color: var(--gray-700);
}

.image-meta, .video-meta, .file-meta {
    margin-top: var(--spacing-2);
    color: var(--gray-500);
}

.file-preview {
    text-align: center;
    padding: var(--spacing-6);
}

.file-icon-large {
    font-size: 5rem;
    margin-bottom: var(--spacing-4);
    color: var(--gray-400);
}

.file-info h4 {
    margin-bottom: var(--spacing-2);
    color: var(--gray-900);
}

.file-note {
    color: var(--gray-600);
    font-style: italic;
    margin-bottom: var(--spacing-3);
}

/* ===== RESPONSIVE STYLES ===== */

@media (max-width: 768px) {
    .page-nav {
        flex-direction: column;
        gap: var(--spacing-3);
        align-items: stretch;
    }

    .page-actions {
        justify-content: center;
    }

    .ride-detail-grid {
        grid-template-columns: 1fr;
    }

    .uploads-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .horse-detail-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .detail-row {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .location-details .detail-row {
        flex-direction: column;
        gap: 0.25rem;
    }

    .location-details .detail-value {
        text-align: left;
    }

    .stirrup-measurements {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .stirrup-divider {
        display: none;
    }
}

/* ===== TOGGLE SWITCH STYLING ===== */
.toggle-switch {
    position: relative;
    width: 3rem;
    height: 1.5rem;
    background-color: #e5e7eb;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border: 2px solid transparent;
}

.toggle-switch:hover {
    background-color: #d1d5db;
}

.toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 1.25rem;
    height: 1.25rem;
    background-color: var(--primary-color);
    border-radius: 50%;
    transition: transform 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-switch:hover .toggle-slider {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* ===== STAR RATING SYSTEM ===== */
.star-rating {
    display: flex !important;
    gap: 0.125rem !important;
    margin: 12px 0 !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    overflow: visible !important;
}

.star {
    font-size: 1.125rem !important;
    color: #d1d5db !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    user-select: none !important;
    position: relative !important;
    padding: 0.125rem !important;
    border-radius: 0.125rem !important;
    min-width: 1.5rem !important;
    height: 1.5rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    line-height: 1 !important;
}

.star:hover {
    transform: scale(1.1) !important;
    color: #fbbf24 !important;
}

.star.filled {
    color: #f59e0b !important;
    text-shadow: 0 1px 2px rgba(245, 158, 11, 0.3) !important;
}

.star.filled:hover {
    color: #d97706 !important;
}

/* Confetti animation */
@keyframes confetti-fall {
    0% {
        top: -10px;
        opacity: 1;
        transform: rotate(0deg);
    }
    100% {
        top: 100vh;
        opacity: 0;
        transform: rotate(720deg);
    }
}

/* Custom scrollbar for textarea */
textarea::-webkit-scrollbar {
    width: 6px;
}

textarea::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

textarea::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

textarea::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ===== ASSESSMENT GROUPS STYLING ===== */
/* Styling voor de nieuwe beoordelingsvelden georganiseerd in groepen */

/* Container max-width voor de rode rand tot rand */
.page-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 1rem !important;
}

.rides-card-content {
    max-width: 100% !important;
    padding: 1.5rem !important;
}

/* Algemene sectie styling voor consistente breedte */
.rides-section {
    max-width: 900px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 2rem !important;
}

/* Normal mode assessment container styling */
.normal-mode-assessment {
    max-width: 900px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 1rem !important;
    box-sizing: border-box !important;
}

/* Assessment group container */
.assessment-group {
    background: var(--surface-color) !important;
    border: 1px solid var(--surface-border) !important;
    border-radius: var(--border-radius-lg) !important;
    padding: 1.5rem !important;
    margin-bottom: 1.5rem !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
    transition: var(--transition) !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.assessment-group:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    border-color: var(--primary-color) !important;
}

/* Assessment group header */
.assessment-group-header {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    margin-bottom: 1.25rem !important;
    padding-bottom: 0.75rem !important;
    border-bottom: 2px solid var(--surface-border) !important;
}

.assessment-group-icon {
    width: 3rem !important;
    height: 3rem !important;
    border-radius: var(--border-radius-lg) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.5rem !important;
    color: white !important;
    font-weight: 600 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
    flex-shrink: 0 !important;
}

.assessment-group-icon.posture {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;
}

.assessment-group-icon.communication {
    background: linear-gradient(135deg, #10b981, #047857) !important;
}

.assessment-group-icon.movement {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
}

.assessment-group-icon.mental {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed) !important;
}

.assessment-group-title {
    flex: 1 !important;
}

.assessment-group-title h4 {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: var(--text-primary) !important;
    margin: 0 0 0.25rem 0 !important;
    line-height: 1.2 !important;
}

.assessment-group-title p {
    font-size: 0.875rem !important;
    color: var(--text-secondary) !important;
    margin: 0 !important;
    line-height: 1.4 !important;
}

/* Assessment fields container */
.assessment-fields {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.25rem !important;
    padding: 0.5rem 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    max-width: 100% !important;
}

/* Individual assessment field */
.assessment-field {
    background: rgba(255, 255, 255, 0.7) !important;
    border: 1px solid var(--surface-border) !important;
    border-radius: var(--border-radius) !important;
    padding: 1.25rem !important;
    margin-bottom: 1rem !important;
    transition: var(--transition) !important;
    min-height: 120px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.assessment-field:hover {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: var(--primary-color) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.assessment-field-label {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    margin-bottom: 1rem !important;
    font-weight: 600 !important;
    color: var(--text-primary) !important;
    font-size: 0.9rem !important;
    line-height: 1.3 !important;
}

.assessment-field-emoji {
    font-size: 1.2rem !important;
    flex-shrink: 0 !important;
}

/* Kids mode styling */
.kids-mode .assessment-group {
    background: linear-gradient(135deg, rgba(255, 182, 193, 0.1), rgba(255, 160, 122, 0.1)) !important;
    border: 2px solid #ff69b4 !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.kids-mode .assessment-group-header {
    border-bottom-color: #ff69b4 !important;
}

.kids-mode .assessment-field {
    background: rgba(255, 192, 203, 0.2) !important;
    border-color: #ff69b4 !important;
}

.kids-mode .assessment-field:hover {
    background: rgba(255, 192, 203, 0.4) !important;
    transform: translateY(-2px) !important;
}

/* Personal goal styling */
.personal-goal-container {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(22, 163, 74, 0.1));
    border: 2px solid var(--success-color);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.personal-goal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.personal-goal-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--success-color);
    font-size: 1.1rem;
}

.personal-goal-btn {
    background: var(--success-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.personal-goal-btn:hover {
    background: var(--success-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(34, 197, 94, 0.3);
}

.personal-goal-btn:active {
    transform: translateY(0);
}

/* Mode toggle styling */
.mode-toggle-container {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(79, 70, 229, 0.1));
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius-lg);
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.mode-toggle-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.mode-toggle-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.mode-toggle-text h4 {
    margin: 0 0 0.25rem 0;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1rem;
}

.mode-toggle-text p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Assessment progress indicator */
.assessment-progress {
    background: var(--surface-color);
    border: 1px solid var(--surface-border);
    border-radius: var(--border-radius-lg);
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.assessment-progress-header {
    display: flex;
    align-items: center;
    justify-content: between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.assessment-progress-title {
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.assessment-progress-stats {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.assessment-progress-bar {
    width: 100%;
    height: 0.5rem;
    background: var(--gray-200);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.assessment-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--success-color), var(--primary-color));
    border-radius: var(--border-radius);
    transition: width 0.3s ease;
}

/* Responsive design for assessment groups */
@media (max-width: 768px) {
    .assessment-fields {
        gap: 0.75rem;
    }
    
    .assessment-group {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .assessment-group-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        text-align: left;
    }
    
    .assessment-group-icon {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.25rem;
    }
    
    .mode-toggle-container {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .personal-goal-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Dark mode support for assessment groups */
@media (prefers-color-scheme: dark) {
    .assessment-field {
        background: rgba(255, 255, 255, 0.05);
    }
    
    .assessment-field:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .kids-mode .assessment-field {
        background: rgba(255, 192, 203, 0.1);
    }
    
    .kids-mode .assessment-field:hover {
        background: rgba(255, 192, 203, 0.2);
    }
}

/* ===== RIDE DETAIL VIEW STYLING ===== */
/* Styling voor de ride detail weergave met nieuwe assessment data */

/* Goal status styling */
.goal-status {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
}

.goal-status.achieved {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.goal-status.not-achieved {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error-color);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Enhanced detail section headers */
.detail-section-header {
    font-weight: 700;
    color: var(--text-primary);
    margin: 1.5rem 0 1rem 0;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(79, 70, 229, 0.1));
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Enhanced detail items for assessment scores */
.detail-item {
    transition: var(--transition);
}

.detail-item:hover {
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--border-radius);
    transform: translateX(2px);
}

.detail-value {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Enhanced star display */
.star-rating-display {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.star-rating-display .stars {
    font-size: 1.1rem;
    letter-spacing: 0.1rem;
}

.star-rating-display .score-text {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-left: 0.5rem;
}

/* Assessment group indicators in detail view */
.assessment-category-indicator {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.5rem;
}

.assessment-category-indicator.posture {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.assessment-category-indicator.communication {
    background: linear-gradient(135deg, #10b981, #047857);
}

.assessment-category-indicator.movement {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.assessment-category-indicator.mental {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

/* ===== RESPONSIVE ADJUSTMENTS FOR ASSESSMENT GROUPS ===== */
@media (max-width: 768px) {
    .assessment-group {
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 1rem !important;
    }
    
    .rides-section {
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .normal-mode-assessment {
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 0 !important;
    }
    
    .assessment-fields {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .assessment-field {
        padding: 1rem !important;
        min-height: 90px !important;
    }
    
    .assessment-field-label {
        font-size: 0.85rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .rides-star-rating {
        flex-wrap: nowrap !important;
        overflow: visible !important;
        gap: 0.1rem !important;
        flex-direction: row !important;
        display: flex !important;
    }
    
    .rides-star {
        font-size: 1rem !important;
        min-width: 1.25rem !important;
        height: 1.25rem !important;
        padding: 0.1rem !important;
        flex-shrink: 0 !important;
    }
    
    .star-rating {
        flex-wrap: nowrap !important;
        overflow: visible !important;
        gap: 0.1rem !important;
        flex-direction: row !important;
        display: flex !important;
    }
    
    .star {
        font-size: 1rem !important;
        min-width: 1.25rem !important;
        height: 1.25rem !important;
        flex-shrink: 0 !important;
        padding: 0.1rem !important;
    }
}

@media (max-width: 480px) {
    .assessment-group {
        padding: 0.75rem !important;
        margin-bottom: 1rem !important;
    }
    
    .rides-section {
        margin-bottom: 1.5rem !important;
    }
    
    .normal-mode-assessment {
        padding: 0 !important;
    }
    
    .assessment-group-header {
        flex-direction: column !important;
        text-align: center !important;
        gap: 0.5rem !important;
    }
    
    .assessment-fields {
        gap: 0.75rem !important;
    }
    
    .assessment-field {
        padding: 0.75rem !important;
        min-height: 80px !important;
    }
    
    .rides-star-rating {
        gap: 0.075rem !important;
        flex-direction: row !important;
        display: flex !important;
    }
    
    .rides-star {
        font-size: 0.9rem !important;
        min-width: 1.1rem !important;
        height: 1.1rem !important;
        padding: 0.075rem !important;
    }
    
    .star-rating {
        gap: 0.075rem !important;
        flex-direction: row !important;
        display: flex !important;
    }
    
    .star {
        font-size: 0.9rem !important;
        min-width: 1.1rem !important;
        height: 1.1rem !important;
        padding: 0.075rem !important;
    }
}
