/* User Profile Specific Styles */

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #4CAF50;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 15px;
    border: 1px solid #4CAF50;
    border-radius: 20px;
    transition: all 0.3s ease;
    margin-top: 10px;
    font-size: 16px;
}

.back-link:hover {
    background: #45a049;
    color: #fff;
    transform: translateY(-1px);
}

.user-profile-section {
    margin-bottom: 30px;
}

.weight-log-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.weight-log-table {
    overflow-x: auto;
}

.weight-log-table table {
    width: 100%;
    border-collapse: collapse;
}

.weight-log-table th,
.weight-log-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.weight-log-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.weight-log-table tr:hover {
    background: #f8f9fa;
}

.weight-loss {
    color: #4CAF50;
    font-weight: 600;
}

.weight-gain {
    color: #f44336;
    font-weight: 600;
}

.weight-same {
    color: #999;
}

.weight-first {
    color: #2196F3;
    font-style: italic;
}

.photos-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(225px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.photo-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.photo-item:hover {
    transform: translateY(-2px);
}

.photo-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.photo-info {
    padding: 15px;
    background: white;
}

.photo-info h4 {
    margin: 0 0 5px 0;
    color: #333;
}

.photo-info .date {
    color: #666;
    font-size: 14px;
}

.photo-info .notes {
    color: #555;
    font-size: 13px;
    margin-top: 8px;
    font-style: italic;
}

.photo-placeholder {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #6c757d;
}

.placeholder-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.placeholder-text {
    font-size: 16px;
    margin-bottom: 15px;
}

.upload-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.upload-btn:hover {
    background: #45a049;
}

.photo-error {
    background: #fff3cd;
    border: 2px solid #ffeaa7;
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #856404;
}

.error-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.error-text {
    font-size: 16px;
}

.goals-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.goal-item {
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: border-color 0.2s ease;
}

.goal-item.completed {
    border-color: #4CAF50;
    background: #f8fff8;
}

.goal-item h4 {
    margin: 0 0 10px 0;
    color: #333;
}

.goal-item p {
    margin: 0 0 10px 0;
    color: #666;
}

.goal-status {
    display: flex;
    justify-content: flex-end;
}

.status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.status.completed {
    background: #4CAF50;
    color: white;
}

.status.pending {
    background: #ff9800;
    color: white;
}

.no-data {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.no-data p {
    margin-bottom: 20px;
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .weight-log-table {
        font-size: 14px;
    }
    
    .weight-log-table th,
    .weight-log-table td {
        padding: 8px;
    }
    
    .photo-gallery {
        grid-template-columns: 1fr;
    }
    
    .user-measurements {
        grid-template-columns: repeat(2, 1fr);
    }
}