.profile {
    padding: 4rem 2rem;
    background-color: #f8f9fa;
}

.profile-container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
}

.profile-image {
    position: relative;
    margin-right: 0;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-image img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ff0000;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.3);
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.profile-image img:hover {
    border-color: #cc0000;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
}

.change-photo-btn {
    position: relative;
    background-color: #ff0000;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s;
    width: auto;
    margin-top: 0.5rem;
}

.change-photo-btn:hover {
    background-color: #cc0000;
}

.profile-info {
    flex: 1;
}

.profile-info h3 {
    margin: 0 0 0.5rem;
    font-size: 1.8rem;
    color: #ff0000;
}

.member-since {
    color: #666;
    margin-bottom: 1rem;
}

.profile-stats {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 1rem;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    color: #ff0000;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
}

.profile-content {
    padding: 1rem;
}

.profile-section {
    margin-bottom: 1.5rem;
}

.profile-section h3 {
    margin-bottom: 1rem;
    color: #ff0000;
    font-size: 1.4rem;
}

.profile-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #666;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ffe0e0;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group input:focus {
    border-color: #ff0000;
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 0, 0, 0.1);
}

.save-btn {
    background-color: #ff0000;
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.save-btn:hover {
    background-color: #cc0000;
}

.goals-list {
    display: grid;
    gap: 1rem;
}

.goal-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: #fff5f5;
    border-radius: 5px;
}

.goal-info h4 {
    margin: 0 0 0.5rem;
    color: #ff0000;
}

.goal-info p {
    margin: 0 0 0.5rem;
    color: #666;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #ffe0e0;
    border-radius: 4px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: #ff0000;
    border-radius: 4px;
}

.edit-goal-btn {
    background-color: transparent;
    border: 1px solid #ff0000;
    color: #ff0000;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.edit-goal-btn:hover {
    background-color: #ff0000;
    color: #fff;
}

.workout-history {
    display: grid;
    gap: 1rem;
}

.history-item {
    display: flex;
    padding: 1rem;
    background-color: #fff5f5;
    border-radius: 5px;
}

.workout-date {
    min-width: 120px;
    color: #666;
}

.workout-details h4 {
    margin: 0 0 0.5rem;
    color: #ff0000;
}

.workout-details p {
    margin: 0;
    color: #666;
}

.saved-workouts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.workout-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(255, 0, 0, 0.1);
}

.workout-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.workout-info {
    padding: 1rem;
    background-color: #fff;
}

.workout-info h4 {
    margin: 0 0 0.5rem;
    color: #ff0000;
}

.workout-info p {
    margin: 0;
    color: #666;
}

.start-workout-btn {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background-color: #ff0000;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.start-workout-btn:hover {
    background-color: #cc0000;
}

.remove-workout-btn {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background-color: #666;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.remove-workout-btn:hover {
    background-color: #444;
}

.profile-btn {
    background-color: transparent;
    border: none;
    color: #00f5d4;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s;
}

.profile-btn:hover {
    color: #00d4b3;
}

.hamburger-menu {
    display: flex;
    align-items: center;
    margin-right: 1rem;
}

.hamburger-btn {
    background: none;
    border: none;
    color: #ff0000;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s;
}

.hamburger-btn:hover {
    color: #cc0000;
}

.profile-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background-color: #fff;
    box-shadow: 2px 0 10px rgba(255, 0, 0, 0.1);
    transition: left 0.3s ease-in-out;
    z-index: 1000;
    overflow-y: auto;
}

.profile-sidebar.active {
    left: 0;
}

.profile-sidebar-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0;
    background-color: #fff5f5;
    border-bottom: 1px solid #ffe0e0;
    position: relative;
}

.profile-sidebar-header h2 {
    margin: 0;
    color: #ff0000;
}

.close-profile-btn {
    background: none;
    border: none;
    color: #ff0000;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1001;
}

.close-profile-btn:hover {
    color: #cc0000;
}

.profile-sidebar-content {
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 2rem;
}

/* Add overlay when sidebar is active */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 999;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .profile-sidebar {
        width: 100%;
        left: -100%;
    }

    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-image {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .profile-stats {
        justify-content: center;
    }

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

    .history-item {
        flex-direction: column;
    }

    .workout-date {
        margin-bottom: 0.5rem;
    }
}

.edit-goal-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    background-color: #fff5f5;
    border-radius: 5px;
    width: 100%;
}

.goal-title-input,
.goal-target-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ffe0e0;
    border-radius: 5px;
    font-size: 1rem;
}

.goal-title-input:focus,
.goal-target-input:focus {
    border-color: #ff0000;
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 0, 0, 0.1);
}

.goal-progress-input {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    background: #ffe0e0;
    border-radius: 4px;
    outline: none;
}

.goal-progress-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #ff0000;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.goal-progress-input::-webkit-slider-thumb:hover {
    background: #cc0000;
}

.edit-goal-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.save-goal-btn,
.cancel-goal-btn {
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
}

.save-goal-btn {
    background-color: #ff0000;
    color: #fff;
    border: none;
}

.save-goal-btn:hover {
    background-color: #cc0000;
}

.cancel-goal-btn {
    background-color: transparent;
    color: #ff0000;
    border: 1px solid #ff0000;
}

.cancel-goal-btn:hover {
    background-color: #ff0000;
    color: #fff;
} 