:root {
    --accent: #6366f1;
    --accent-hover: #818cf8;
}

html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    min-height: 100vh;
}

/* Card hover effect */
.exercise-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.exercise-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.25) !important;
}

/* Truncate to 2 lines */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Tag input */
.tag-input-container {
    min-height: 42px;
    cursor: text;
    position: relative;
}

.tag-input-container:focus-within {
    border-color: var(--bs-primary) !important;
    box-shadow: 0 0 0 0.25rem rgba(99, 102, 241, 0.15);
}

.tag-text-input {
    min-width: 120px;
    outline: none !important;
    color: var(--bs-body-color);
}

.tag-text-input::placeholder {
    color: var(--bs-secondary-color);
}

.tag-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    background: var(--bs-primary);
    color: white;
    font-size: 0.8125rem;
    line-height: 1.4;
}

.tag-badge .tag-remove {
    cursor: pointer;
    opacity: 0.7;
    font-size: 0.875rem;
    line-height: 1;
    background: none;
    border: none;
    color: inherit;
    padding: 0;
}

.tag-badge .tag-remove:hover {
    opacity: 1;
}

.autocomplete-dropdown {
    max-height: 200px;
    overflow-y: auto;
    z-index: 1050;
}

.autocomplete-dropdown .dropdown-item {
    cursor: pointer;
    padding: 0.5rem 0.75rem;
}

.autocomplete-dropdown .dropdown-item.active,
.autocomplete-dropdown .dropdown-item:hover {
    background: var(--bs-primary);
    color: white;
}

/* Form sections */
.form-label {
    margin-bottom: 0.375rem;
}

/* Smooth transitions for modifications section */
#modificationsSection {
    transition: opacity 0.2s ease;
}

/* Better checkbox/radio sizing on mobile */
@media (max-width: 767px) {
    .form-check-input {
        width: 1.25em;
        height: 1.25em;
    }

    .form-check-label {
        padding-left: 0.25rem;
    }
}

/* Login page styling */
.login-card {
    max-width: 420px;
}
