/**
 * GymBro Public Styles
 *
 * @package GymBro
 */

:root {
    --bs-primary-rgb: 27, 27, 29 !important;
    --bs-primary: #1b1b1d !important;
    --bs-primary-rgb: 27, 27, 29 !important;
    --bs-primary: #1b1b1d !important;
    --bs-primary-rgb: 27, 27, 29 !important;
}

/* Client Dashboard */
.gymbro-client-dashboard {
    background: #f9f9f9;
    border-radius: 8px;
}

.gymbro-client-dashboard h2 {
    margin-top: 0;
    color: #333;
}

/* Workout Log */
.gymbro-workout-log {
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin: 20px 0;
}

.gymbro-workout-log h2 {
    margin-top: 0;
    color: #333;
}

/* Progress Tracker */
.gymbro-progress-tracker {
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin: 20px 0;
}

.gymbro-progress-tracker h2 {
    margin-top: 0;
    color: #333;
}

/* General Responsive */
@media (max-width: 768px) {
    .gymbro-client-dashboard,
    .gymbro-workout-log,
    .gymbro-progress-tracker {
        padding: 15px;
        margin: 10px 0;
    }
}

/* ========================================
   EXERCISE DRAG & DROP
   ======================================== */
.exercise-item {
    transition: all 0.2s ease;
    position: relative;
}

.exercise-item.dragging {
    opacity: 0.5;
}

.exercise-item .drag-handle {
    transition: color 0.2s ease;
}

.exercise-item:hover .drag-handle {
    color: #495057 !important;
}

.exercise-item .drag-handle:active {
    cursor: grabbing !important;
}

/* Collapse Icon Animation */
.collapse-icon {
    transition: transform 0.2s ease;
}

/* Collapse Details Animation */
.exercise-details {
    transition: max-height 0.3s ease-out, opacity 0.2s ease-out;
    overflow: hidden;
    max-height: 2000px;
    opacity: 1;
}

.exercise-details:not(.show) {
    max-height: 0;
    opacity: 0;
    padding: 0 !important;
}

.exercise-header:hover {
    background-color: #f8f9fa !important;
}

/* Exercise Header Badges */
.exercise-header .badge {
    font-size: 0.75rem;
    font-weight: normal;
}

/* Drag Over Effect */
.exercise-item.drag-over {
    border-color: #0d6efd !important;
    background-color: #e7f1ff !important;
}

/* Drop Target Indicator */
.exercise-item.drop-target-before::before,
.exercise-item.drop-target-after::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 3px;
    background-color: #198754;
    z-index: 1000;
}

.exercise-item.drop-target-before::before {
    top: -2px;
}

.exercise-item.drop-target-after::after {
    bottom: -2px;
}

