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

.ft-modal-content {
    position: relative;
    background: #fff;
    width: 90%;
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
    border-radius: 8px;
    max-height: 80vh;
    overflow-y: auto;
}

.ft-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
}

.ft-exercise-item {
    margin-bottom: 20px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 4px;
}

.ft-exercise-description {
    margin: 10px 0;
    font-size: 14px;
    color: #666;
}

.ft-exercise-meta {
    margin: 10px 0;
    color: #666;
}

.ft-sets-container {
    margin: 15px 0;
}

.ft-set-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
    padding: 10px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.ft-set-number {
    font-weight: bold;
    min-width: 60px;
}

.ft-input-group {
    flex: 1;
}

.ft-input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 0.9em;
    color: #555;
}

.ft-input-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.ft-add-set {
    background: #28a745;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px;
}

.ft-add-set:hover {
    background: #218838;
}

.ft-remove-set {
    background: #dc3545;
    color: #fff;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 0;
}

.ft-remove-set:hover {
    background: #c82333;
}

.ft-loading {
    text-align: center;
    padding: 20px;
}

.ft-error {
    color: #dc3545;
    padding: 10px;
    margin-bottom: 15px;
    background: #f8d7da;
    border-radius: 4px;
}

.ft-save-workout {
    display: block;
    width: 100%;
    padding: 12px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 20px;
}

.ft-save-workout:hover {
    background: #0056b3;
}

.ft-save-workout:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Exercise Links */
.ft-exercise-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.ft-exercise-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

.ft-exercise-list li {
    margin-bottom: 8px;
    line-height: 1.4;
}

.ft-exercise-list small {
    display: inline-block;
    margin-left: 6px;
    color: #666;
}

.ft-cancel-plan {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-left: 10px;
}

.ft-cancel-plan:hover {
    background-color: #c82333;
}

.ft-progress-container {
    display: flex;
    align-items: center;
    margin-top: 15px;
}

.ft-progress-bar {
    flex: 1;
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.ft-progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: #28a745;
    transition: width 0.3s ease;
}
