/* Workout Logging Form */
.ft-log-workout-form {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ft-exercise {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 6px;
}

.ft-exercise-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.ft-sets-container {
    display: grid;
    gap: 1rem;
}

.ft-set {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
    align-items: center;
    padding: 0.5rem;
    background: #fff;
    border-radius: 4px;
}

.ft-set input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

/* Workout History */
.ft-workout-history {
    max-width: 800px;
    margin: 2rem auto;
}

.ft-history-entry {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ft-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #dee2e6;
}

.ft-history-date {
    color: #6c757d;
    font-size: 0.9rem;
}

.ft-history-exercise {
    margin: 0.5rem 0;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 4px;
}

.ft-exercise-name {
    font-weight: 600;
    margin-right: 1rem;
}

.ft-history-set {
    display: inline-block;
    margin-right: 0.5rem;
    padding: 0.25rem 0.5rem;
    background: #e9ecef;
    border-radius: 4px;
    font-size: 0.9rem;
}

.ft-history-notes {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 4px;
    font-style: italic;
    color: #6c757d;
}

/* Workout Plan Progress */
.ft-week {
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.ft-current-week {
    background: #e9ecef;
    border: 2px solid #007bff;
}

.ft-days-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.ft-day {
    padding: 1rem;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.ft-current-day {
    border: 2px solid #28a745;
}

.ft-completed {
    background: #d4edda;
}

/* Notifications */
.ft-notifications {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
}

.ft-notification {
    position: relative;
    padding: 1rem 2rem 1rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 4px;
    color: #fff;
    animation: slideIn 0.3s ease-out;
}

.ft-notification.ft-success {
    background: #28a745;
}

.ft-notification.ft-error {
    background: #dc3545;
}

.ft-notification-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0;
    line-height: 1;
}

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

/* Exercise Details Modal */
.ft-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    overflow-y: auto;
    padding: 2rem;
}

.ft-modal.ft-active {
    display: block;
}

.ft-modal-content {
    position: relative;
    max-width: 1000px;
    margin: 2rem auto;
    background: #fff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.ft-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.5rem;
    color: #6c757d;
    transition: color 0.2s;
}

.ft-modal-close:hover {
    color: #343a40;
}

.ft-exercise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.ft-exercise-card {
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s;
}

.ft-exercise-card:hover {
    transform: translateY(-4px);
}

.ft-exercise-image {
    position: relative;
    padding-top: 66.67%; /* 3:2 aspect ratio */
    background: #e9ecef;
}

.ft-exercise-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ft-exercise-info {
    padding: 1.5rem;
}

.ft-exercise-info h3 {
    margin: 0 0 1rem;
    font-size: 1.25rem;
    color: #212529;
}

.ft-exercise-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.ft-sets,
.ft-reps {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: #e9ecef;
    border-radius: 4px;
    font-size: 0.875rem;
    color: #495057;
}

.ft-exercise-description {
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #6c757d;
    line-height: 1.5;
}

.ft-video-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #007bff;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.875rem;
    transition: background-color 0.2s;
}

.ft-video-button:hover {
    background: #0056b3;
}

.ft-workout-preview {
    margin-top: 1rem;
}

.ft-view-workout {
    background: #6c757d;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.ft-view-workout:hover {
    background: #5a6268;
}

.ft-view-workout:disabled {
    background: #adb5bd;
    cursor: not-allowed;
}

/* Dashboard Styles */
.ft-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.ft-dashboard-header {
    margin-bottom: 2rem;
}

.ft-dashboard-header h1 {
    font-size: 2rem;
    color: #212529;
    margin: 0;
}

.ft-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.ft-dashboard-card {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ft-dashboard-card h2 {
    font-size: 1.25rem;
    color: #212529;
    margin: 0 0 1.5rem;
}

.ft-plan-preview,
.ft-workout-preview {
    background: #f8f9fa;
    border-radius: 4px;
    padding: 1rem;
}

.ft-plan-image {
    margin-bottom: 1rem;
}

.ft-plan-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.ft-plan-info h3,
.ft-workout-preview h3 {
    font-size: 1.1rem;
    margin: 0 0 1rem;
}

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

.ft-activity-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 4px;
}

.ft-exercise-date {
    font-size: 0.875rem;
    color: #6c757d;
}

/* Profile Styles */
.ft-profile {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.ft-profile-header {
    margin-bottom: 2rem;
}

.ft-profile-header h1 {
    font-size: 2rem;
    color: #212529;
    margin: 0;
}

.ft-profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.ft-profile-card {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ft-profile-card h2 {
    font-size: 1.25rem;
    color: #212529;
    margin: 0 0 1.5rem;
}

.ft-profile-picture {
    text-align: center;
    margin-bottom: 2rem;
}

.ft-picture-preview {
    width: 150px;
    height: 150px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    background: #f8f9fa;
}

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

.ft-no-picture {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #adb5bd;
}

.ft-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ft-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.ft-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ft-form-group label {
    font-weight: 500;
    color: #495057;
}

.ft-form-group input,
.ft-form-group select {
    padding: 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 1rem;
}

.ft-form-group input[type="file"] {
    display: none;
}

.ft-button {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.2s;
}

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

.ft-button.ft-primary {
    /*background: #28a745;*/
}

.ft-button.ft-primary:hover {
    /*background: #218838;*/
}

/* Responsive Design */
@media (max-width: 768px) {
    .ft-log-workout-form {
        padding: 1rem;
    }

    .ft-set {
        grid-template-columns: 1fr;
    }

    .ft-history-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .ft-history-date {
        margin-top: 0.5rem;
    }

    .ft-modal {
        padding: 1rem;
    }

    .ft-modal-content {
        margin: 1rem auto;
        padding: 1rem;
    }

    .ft-exercise-grid {
        grid-template-columns: 1fr;
    }

    .ft-dashboard,
    .ft-profile {
        padding: 1rem;
    }

    .ft-dashboard-grid,
    .ft-profile-grid {
        grid-template-columns: 1fr;
    }

    .ft-form-row {
        grid-template-columns: 1fr;
    }
}
