/* AI Exercise Plan Cell States */

.cell-proposed {
    position: relative;
    background-color: #d4edfc !important;
    border: 2px dashed #2FA4E7 !important;
}


.cell-unchanged {
    background-color: white;
    border: 1px solid #dee2e6;
}

/* Input styling inside cells */
.plan-cell-input {
    border: none !important;
    background: transparent !important;
    padding: 2px 4px !important;
    font-size: 13px !important;
    width: 100% !important;
    box-shadow: none !important;
}

.plan-cell-input:focus {
    background: #fff !important;
    border: 1px solid #80bdff !important;
    box-shadow: 0 0 0 0.15rem rgba(0, 123, 255, 0.25) !important;
}

/* Prevent input text from flowing under tick button */
.cell-proposed .plan-cell-input {
    padding-right: 24px !important;
}

/* Table styling */
.ai-exercise-table {
    width: 100%;
    min-width: 650px;
    border-collapse: collapse;
    font-size: 13px;
}

.ai-exercise-table th {
    background-color: rgb(230, 230, 230);
    font-weight: bold;
    font-size: 13px;
    padding: 8px;
    text-align: left;
    white-space: normal;
    border: 1px solid #dee2e6;
}

.ai-exercise-table td {
    padding: 4px;
    text-align: left;
    vertical-align: middle;
    transition: background-color 0.2s, border-color 0.2s;
}

/* Day column (non-editable) */
.ai-exercise-table td.day-cell {
    padding: 8px;
    font-weight: 500;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
}

/* Responsive table wrapper */
.ai-exercise-table-wrapper {
    overflow-x: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Prompt input area */
.exercise-plan-prompt-input {
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
}

/* Explanation tooltip */
.plan-explanation-text {
    font-size: 0.875rem;
    color: #6c757d;
    line-height: 1.4;
}

/* Loading overlay */
.plan-loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 0.375rem;
}

/* Tick button for accepting/rejecting proposed cells */
.cell-accept-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    padding: 0;
    border: 1px solid #2FA4E7;
    border-radius: 3px;
    background: #fff;
    color: #2FA4E7;
    font-size: 10px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.15s, background-color 0.15s, color 0.15s;
}

.cell-accept-btn:hover {
    opacity: 1;
    background: #2FA4E7;
    color: #fff;
}


