﻿body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-primary);
}

.vw-workout-page {
    min-height: 100vh;
    padding: 1rem;
    max-width: 480px;
    margin: 0 auto;
}

.vw-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding: 0.5rem 1rem;
}

.vw-logo {
    font-size: 2rem;
    font-weight: bold;
    background: var(--gradient-accent, linear-gradient(to right, #a855f7, #3b82f6));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.vw-profile-section {
    display: flex;
    align-items: center;
}

.vw-profile-image {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 2px solid var(--accent);
    object-fit: cover;
}

.vw-content-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.vw-workout-header {
    background-color: var(--bg-secondary);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.vw-workout-title {
    font-size: 1.75rem;
    margin: 0 0 0.5rem 0;
    color: var(--accent);
}

.vw-workout-meta {
    display: flex;
    gap: 1rem;
    color: var(--text-secondary);
}

.vw-meta-item {
    font-size: 0.875rem;
}

.vw-exercise-list {
    margin: 2rem 0;
}

    .vw-exercise-list h3 {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
        color: var(--accent);
    }

.vw-exercise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.vw-exercise-item {
    background-color: var(--bg-secondary);
    border-radius: 0.75rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.2s, background-color 0.2s;
    position: relative;
}

    .vw-exercise-item:hover {
        background-color: var(--bg-input, #374151);
        transform: translateY(-2px);
    }

.vw-exercise-number {
    width: 2rem;
    height: 2rem;
    background-color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.vw-exercise-details {
    flex: 1;
}

.vw-exercise-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

    .vw-exercise-header h4 {
        margin: 0;
        font-size: 1rem;
        color: var(--text-primary);
    }

.vw-info-button {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem;
    font-size: 1rem;
    transition: color 0.2s;
}

    .vw-info-button:hover {
        color: var(--accent);
    }

.vw-info-popup {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-input, #374151);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 0.5rem;
    z-index: 10;
    box-shadow: 0 4px 6px -1px var(--shadow, rgba(0, 0, 0, 0.1));
    border: 1px solid var(--border);
}

    .vw-info-popup.active {
        display: block;
    }

    .vw-info-popup p {
        margin: 0;
        font-size: 0.875rem;
        line-height: 1.5;
        color: var(--text-tertiary, #e5e7eb);
    }

.vw-reps {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.vw-start-workout {
    text-align: center;
    margin: 3rem 0;
}

.vw-action-button {
    background-color: var(--accent);
    color: var(--text-primary);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    text-decoration: none;
}

    .vw-action-button:hover {
        background-color: var(--accent-hover);
    }

.vw-start-hint {
    margin-top: 1.25rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.vw-exercise-item.active {
    cursor: pointer;
    position: relative;
}

    .vw-exercise-item.active::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
        transform: translateX(-100%);
        animation: shimmer 2s infinite;
        pointer-events: none;
    }

.vw-exercise-item.completed {
    background-color: rgba(147, 51, 234, 0.2); 
    border-left: 4px solid var(--accent);
}

.smaller-text {
    font-size: 16px;
}

/*--------------------START WORKOUT----------------------*/
.SW-container {
  padding: 1rem;
  padding-bottom: 6rem;
  margin: 0 auto;
  max-width: 800px;
}

.SW-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.SW-timer {
  font-family: monospace;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.SW-exercise-box {
  background-color: var(--bg-input);
  padding: 0.7rem;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
}

.SW-exercise-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.SW-timer-btn {
    background-color: #36cf64; 
    border: none;
    color: white;
    padding: 0.5rem;
    border-radius: 50%;
    width: 2.5em;
    height: 2.5em;
    cursor: pointer;
}

.SW-set-card {
  background-color: var(--bg-input); 
  padding: 1rem;
  border-radius: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  border-left: 4px solid transparent;
}

.SW-set-card.completed {
  border-left-color: var(--accent-active); 
}

.SW-set-card.locked {
  opacity: 0.5;
}

.SW-set-btn {
  height: 2rem;
  width: 2rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.SW-set-btn.completed {
  background-color: var(--accent-active); /* #10b981 */
}

.SW-set-btn.locked {
  background-color: var(--border); /* #4b5563 */
  cursor: not-allowed;
}

.SW-set-btn.inactive {
  background-color: #6b7280; /* No exact match — consider adding a new variable */
}

.SW-footer {
  position: fixed;
  bottom: 4.5rem;
  left: 0;
  width: 100%;
  background-color: var(--bg-primary); 
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--bg-input); 
}

.SW-nav-btn1 {
    background-color: var(--bg-input);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
}

.SW-nav-btn2 {
  background-color: var(--accent); 
  color: var(--text-secondary); 
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
}

.SW-nav-btn:disabled {
  opacity: 0.5;
}

.dark-box {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    padding: 0.8rem;
    background-color: var(--bg-secondary);
    border-radius: 0.5rem;
    text-align: start;
}

#IconForPlay {
    display: flex;
    justify-content: center;
    align-items: center;
    transform: scale(2);
}

