 :root {
    /* Theme Colors - Blue (Default) */
    --primary-color: #2575fc;
    --primary-light: #6a11cb;
    --primary-dark: #1a56b3;
    --secondary-color: #ff006e;
    --success-color: #00c853;
    --warning-color: #ffab00;
    --danger-color: #ff3d00;
  
    --light-bg: #f8f9fa;
    --dark-bg: #212529;
    --text-color: #333;
    --text-light: #f8f9fa;
    --border-radius: 16px;
    --box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --gradient-primary: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color), #ff5e00);
    --gradient-success: linear-gradient(135deg, var(--success-color), #64dd17);
    --gradient-warning: linear-gradient(135deg, var(--warning-color), #ff9100);
    --gradient-danger: linear-gradient(135deg, var(--danger-color), #ff6d00);
  }
  
  /* Theme: Purple */
  body.theme-purple {
    --primary-color: #9c27b0;
    --primary-light: #d500f9;
    --primary-dark: #7b1fa2;
    --secondary-color: #00bcd4;
    --gradient-primary: linear-gradient(135deg, var(--primary-light), var(--primary-color));
  }
  
  /* Theme: Green */
  body.theme-green {
    --primary-color: #43a047;
    --primary-light: #00e676;
    --primary-dark: #2e7d32;
    --secondary-color: #ff9800;
    --gradient-primary: linear-gradient(135deg, var(--primary-light), var(--primary-color));
  }
  
  /* Theme: Orange */
  body.theme-orange {
    --primary-color: #ff5722;
    --primary-light: #ff9800;
    --primary-dark: #e64a19;
    --secondary-color: #2196f3;
    --gradient-primary: linear-gradient(135deg, var(--primary-light), var(--primary-color));
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: "Montserrat", sans-serif;
    background-color: var(--light-bg);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
  }
  
  .app-container {
    max-width: 100%;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  }
  
  /* Background Animation */
  .background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
  }
  
  .shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    animation: float 15s infinite ease-in-out;
  }
  
  .shape-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    left: -150px;
    background: linear-gradient(135deg, rgba(106, 17, 203, 0.1), rgba(37, 117, 252, 0.1));
    animation-delay: 0s;
  }
  
  .shape-2 {
    width: 200px;
    height: 200px;
    top: 50%;
    right: -100px;
    background: linear-gradient(135deg, rgba(255, 0, 110, 0.1), rgba(255, 94, 0, 0.1));
    animation-delay: -5s;
  }
  
  .shape-3 {
    width: 250px;
    height: 250px;
    bottom: -125px;
    left: 10%;
    background: linear-gradient(135deg, rgba(0, 200, 83, 0.1), rgba(100, 221, 23, 0.1));
    animation-delay: -10s;
  }
  
  .shape-4 {
    width: 150px;
    height: 150px;
    top: 30%;
    left: 70%;
    background: linear-gradient(135deg, rgba(255, 171, 0, 0.1), rgba(255, 145, 0, 0.1));
    animation-delay: -7s;
  }
  
  @keyframes float {
    0% {
      transform: translate(0, 0) rotate(0deg);
    }
    25% {
      transform: translate(10px, 15px) rotate(5deg);
    }
    50% {
      transform: translate(5px, -10px) rotate(10deg);
    }
    75% {
      transform: translate(-10px, 5px) rotate(5deg);
    }
    100% {
      transform: translate(0, 0) rotate(0deg);
    }
  }
  
  /* Glass Effect */
  .glass-effect {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
  }
  
  header {
    background: var(--gradient-primary);
    color: white;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--box-shadow);
    position: relative;
    overflow: hidden;
  }
  
  .logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
  }
  
  .logo {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
  }
  
  h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(to right, #ffffff, #e0e0e0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  
  .subtitle {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 300;
  }
  
  /* Screens */
  .screen {
    display: none;
    padding: 1rem;
    animation: fadeIn 0.5s ease;
  }
  
  .screen.active {
    display: block;
  }
  
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Welcome Screen */
  .welcome-content {
    text-align: center;
    padding: 1.5rem 0;
  }
  
  .animated-title {
    margin-bottom: 1rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titleGlow 2s infinite alternate;
  }
  
  @keyframes titleGlow {
    from {
      text-shadow: 0 0 5px rgba(37, 117, 252, 0.3);
    }
    to {
      text-shadow: 0 0 15px rgba(37, 117, 252, 0.6);
    }
  }
  
  .welcome-description {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto 2rem;
  }
  
  .user-selection {
    margin-top: 2rem;
  }
  
  .user-selection h3 {
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: #555;
  }
  
  .user-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
    max-height: 50vh;
    overflow-y: auto;
    padding: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
  }
  
  .user-list::-webkit-scrollbar {
    width: 6px;
  }
  
  .user-list::-webkit-scrollbar-track {
    background: transparent;
  }
  
  .user-list::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 20px;
  }
  
  .user-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 1.2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
  }
  
  .user-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    transition: var(--transition);
  }
  
  .user-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  }
  
  .user-card:hover::before {
    width: 8px;
  }
  
  .user-info h4 {
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    font-weight: 600;
    font-size: 1.1rem;
  }
  
  .user-progress {
    font-size: 0.85rem;
    color: #666;
    display: flex;
    align-items: center;
  }
  
  .user-progress-bar {
    width: 50px;
    height: 4px;
    background-color: #e9ecef;
    border-radius: 2px;
    margin-right: 8px;
    overflow: hidden;
  }
  
  .user-progress-fill {
    height: 100%;
    background: var(--gradient-primary);
  }
  
  .welcome-buttons {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
  }
  
  /* Program Selection Screen */
  .program-options {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
  }
  
  .program-card {
    border-radius: var(--border-radius);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
  }
  
  .program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  }
  
  .program-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-right: 1.5rem;
    flex-shrink: 0;
    animation: pulse 2s infinite;
  }
  
  .program-info {
    flex: 1;
  }
  
  .program-info h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
  }
  
  .program-info p {
    font-size: 0.9rem;
    color: #666;
  }
  
  .program-progress {
    margin-left: 1rem;
  }
  
  .progress-ring {
    position: relative;
    width: 60px;
    height: 60px;
  }
  
  .progress-ring-circle-bg {
    fill: none;
    stroke: rgba(0, 0, 0, 0.05);
    stroke-width: 5;
  }
  
  .progress-ring-circle {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 5;
    stroke-linecap: round;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
    transition: stroke-dashoffset 1s ease;
  }
  
  .progress-text {
    font-size: 12px;
    font-weight: 600;
    fill: var(--primary-color);
    text-anchor: middle;
  }
  
  .program-action {
    margin-left: 1rem;
  }
  
  /* Form Styles */
  .form-container {
    border-radius: var(--border-radius);
    padding: 2rem;
    max-width: 500px;
    margin: 1rem auto;
  }
  
  .form-group {
    margin-bottom: 1.5rem;
  }
  
  .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #555;
  }
  
  .input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
  }
  
  .input-wrapper i {
    position: absolute;
    left: 12px;
    color: #aaa;
  }
  
  .form-group input[type="text"],
  .form-group input[type="number"] {
    width: 100%;
    padding: 0.75rem 0.75rem 0.75rem 2.5rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background-color: rgba(255, 255, 255, 0.8);
  }
  
  .form-group input[type="text"]:focus,
  .form-group input[type="number"]:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 117, 252, 0.2);
  }
  
  .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background-color: rgba(255, 255, 255, 0.8);
    min-height: 100px;
    resize: vertical;
  }
  
  .form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 117, 252, 0.2);
  }
  
  .range-slider {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  
  .range-slider input[type="range"] {
    flex: 1;
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--primary-light));
    outline: none;
  }
  
  .range-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
  }
  
  .range-slider input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
  }
  
  .range-slider output {
    font-weight: 600;
    color: var(--primary-color);
    min-width: 30px;
    text-align: center;
  }
  
  .form-help {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.5rem;
  }
  
  .button-group {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
  }
  
  /* Theme Selector */
  .theme-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 0.5rem;
  }
  
  .theme-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: var(--transition);
  }
  
  .theme-option:hover {
    background: rgba(255, 255, 255, 0.8);
  }
  
  .theme-option.active {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(37, 117, 252, 0.2);
  }
  
  .color-preview {
    width: 20px;
    height: 20px;
    border-radius: 50%;
  }
  
  .color-preview.blue {
    background: linear-gradient(135deg, #6a11cb, #2575fc);
  }
  
  .color-preview.purple {
    background: linear-gradient(135deg, #d500f9, #9c27b0);
  }
  
  .color-preview.green {
    background: linear-gradient(135deg, #00e676, #43a047);
  }
  
  .color-preview.orange {
    background: linear-gradient(135deg, #ff9800, #ff5722);
  }
  
  /* Dashboard Screen */
  .user-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: var(--border-radius);
  }
  
  .header-actions {
    display: flex;
    gap: 0.5rem;
  }
  
  .stats-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
  }
  
  .stat-card {
    border-radius: var(--border-radius);
    padding: 1.2rem;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
  }
  
  .stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    margin-right: 1rem;
    flex-shrink: 0;
    animation: pulse 2s infinite;
  }
  
  .stat-info {
    flex: 1;
  }
  
  .stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
  }
  
  .stat-label {
    font-size: 0.85rem;
    color: #666;
  }
  
  .stat-progress {
    position: relative;
    width: 50px;
    height: 50px;
    margin-left: 10px;
  }
  
  .stat-progress svg {
    transform: rotate(-90deg);
  }
  
  .stat-progress-bg {
    fill: none;
    stroke: rgba(0, 0, 0, 0.05);
    stroke-width: 5;
  }
  
  .stat-progress-fill {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 5;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s ease;
  }
  
  .day-selector {
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .day-selector h3 {
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: #555;
  }
  
  .days-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
  }
  
  .day-item {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 0.75rem 0.5rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: visible;
    border: 2px solid transparent;
  }
  
  .day-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }
  
  .day-item.completed {
    border-color: var(--success-color);
  }
  
  .day-item.in-progress {
    border-color: var(--primary-color);
  }
  
  .day-item.missed {
    border-color: var(--danger-color);
  }
  
  .day-item.today {
    border-color: var(--warning-color);
    animation: pulse 2s infinite;
  }
  
  .day-item.locked {
    opacity: 0.5;
    cursor: not-allowed;
  }
  
  .day-number {
    font-weight: 600;
    font-size: 1rem;
  }
  
  .day-status-icon {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: white;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  }
  
  .day-status-icon.completed {
    background-color: var(--success-color);
  }
  
  .day-status-icon.missed {
    background-color: var(--danger-color);
  }
  
  .day-status-icon.in-progress {
    background-color: var(--primary-color);
    animation: spin 2s linear infinite;
  }
  
  .day-status-icon.today {
    background-color: var(--warning-color);
  }
  
  @keyframes spin {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }
  
  /* Day Detail Screen */
  .day-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: var(--border-radius);
  }
  
  .day-status {
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
  }
  
  .day-status.pending {
    background-color: rgba(255, 190, 11, 0.2);
    color: var(--warning-color);
  }
  
  .day-status.completed {
    background-color: rgba(56, 176, 0, 0.2);
    color: var(--success-color);
  }
  
  .day-status.missed {
    background-color: rgba(255, 84, 0, 0.2);
    color: var(--danger-color);
  }
  
  .day-status.in-progress {
    background-color: rgba(37, 117, 252, 0.2);
    color: var(--primary-color);
  }
  
  .day-detail-content {
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .day-progress-container {
    margin-bottom: 2rem;
  }
  
  .day-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
  }
  
  .day-progress-header h3 {
    font-weight: 600;
    color: #555;
  }
  
  #day-progress-percentage {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.2rem;
  }
  
  .progress-bar {
    height: 10px;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 1rem;
  }
  
  .progress-bar-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 5px;
    transition: width 0.5s ease;
  }
  
  .progress-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    text-align: center;
  }
  
  .progress-stat {
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: var(--border-radius);
    padding: 1rem;
  }
  
  .progress-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
  }
  
  .progress-stat-label {
    font-size: 0.8rem;
    color: #666;
  }
  
  .pushup-tracker {
    margin-bottom: 2rem;
  }
  
  .pushup-tracker h3 {
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: #555;
  }
  
  .pushup-sets {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .pushup-set {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 1rem;
    min-width: 80px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }
  
  .pushup-set-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
  }
  
  .pushup-set-label {
    font-size: 0.7rem;
    color: #666;
  }
  
  .pushup-set-time {
    font-size: 0.7rem;
    color: #999;
    margin-top: 0.25rem;
  }
  
  .add-pushups-container {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
  }
  
  .day-actions {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
  }
  
  /* Workout Routine Styles */
  .workout-routines {
    margin-top: 1.5rem;
  }
  
  .empty-workouts-message {
    text-align: center;
    padding: 3rem 1rem;
    color: #666;
  }
  
  .empty-icon {
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.3;
    margin-bottom: 1rem;
  }
  
  .workout-routine-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 1.2rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
  }
  
  .workout-routine-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    transition: var(--transition);
  }
  
  .workout-routine-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  }
  
  .workout-routine-card:hover::before {
    width: 8px;
  }
  
  .workout-routine-info h4 {
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    font-weight: 600;
    font-size: 1.1rem;
  }
  
  .workout-routine-info p {
    font-size: 0.85rem;
    color: #666;
  }
  
  /* Weekday Selector */
  .days-of-week {
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .days-of-week h3 {
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: #555;
  }
  
  .weekday-selector {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 1rem;
  }
  
  .weekday {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
  }
  
  .weekday-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.8rem;
    color: #666;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  }
  
  .weekday:hover .weekday-circle {
    background-color: rgba(var(--primary-color-rgb), 0.1);
    color: var(--primary-color);
    transform: translateY(-3px);
  }
  
  .weekday.selected .weekday-circle {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 5px 15px rgba(var(--primary-color-rgb), 0.3);
  }
  
  .weekday-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: transparent;
    transition: var(--transition);
  }
  
  .weekday.configured .weekday-status {
    background-color: var(--success-color);
  }
  
  /* Muscle Group Grid */
  .muscle-groups {
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .muscle-groups h3 {
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: #555;
  }
  
  .muscle-group-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .muscle-group-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    cursor: pointer;
  }
  
  .muscle-group-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  }
  
  .muscle-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
  }
  
  .muscle-name {
    font-weight: 600;
    color: #555;
  }
  
  /* Workout Day Details */
  .workout-days-overview {
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .workout-days-overview h3 {
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: #555;
  }
  
  .workout-days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
  }
  
  .workout-day-item {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 0.75rem 0.5rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
  }
  
  .workout-day-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }
  
  .workout-day-item.active {
    border: 2px solid var(--primary-color);
  }
  
  .workout-day-name {
    font-weight: 600;
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
  }
  
  .workout-day-group {
    font-size: 0.7rem;
    color: var(--primary-color);
  }
  
  .workout-day-details {
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .workout-day-details h3 {
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: #555;
  }
  
  .workout-exercises {
    margin-bottom: 1.5rem;
  }
  
  .workout-exercise-item {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  }
  
  .workout-exercise-name {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
  }
  
  .workout-exercise-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0.5rem;
  }
  
  .workout-exercise-detail {
    font-size: 0.8rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }
  
  .workout-exercise-notes {
    font-size: 0.8rem;
    color: #666;
    font-style: italic;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
  }
  
  /* Workout Timer */
  .workout-timer {
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
  }
  
  .timer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  
  .timer-display {
    position: relative;
    width: 200px;
    height: 200px;
  }
  
  .timer-circle {
    position: relative;
    width: 100%;
    height: 100%;
  }
  
.timer-circle svg {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) translateX(-160px);
}
  
  .timer-circle-bg {
    fill: none;
    stroke: rgba(0, 0, 0, 0.05);
    stroke-width: 10;
  }
  
  .timer-circle-fill {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 10;
    stroke-linecap: round;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
    transition: stroke-dashoffset 1s linear;
  }
  
  .timer-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
  }
  
  #timer-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
  }
  
  #timer-label {
    font-size: 1rem;
    color: #666;
  }
  
  .timer-controls {
    display: flex;
    gap: 1rem;
    transform: translateX(120px);
  }
  
  /* Current Exercise */
  .current-exercise {
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .current-exercise h3 {
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: #555;
  }
  
  .exercise-info {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  }
  
  .exercise-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
  }
  
  .exercise-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    justify-content: center;
  }
  
  .exercise-detail {
    background-color: rgba(var(--primary-color-rgb), 0.1);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .exercise-notes {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
  }
  
  /* Sets Progress */
  .sets-progress {
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .sets-progress h3 {
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: #555;
  }
  
  .sets-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }
  
  .set-item {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 0.75rem 0.5rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
  }
  
  .set-item.completed {
    background: var(--gradient-success);
    color: white;
  }
  
  .set-number {
    font-weight: 600;
    font-size: 1rem;
  }
  
  /* Workout Complete Modal */
  .workout-stats {
    display: flex;
    justify-content: space-around;
    margin: 1.5rem 0;
  }
  
  .workout-stat {
    text-align: center;
  }
  
  .workout-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
  }
  
  .workout-stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
  }
  
  /* Buttons */
  .btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
  }
  
  .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }
  
  .primary-btn {
    background: var(--gradient-primary);
    color: white;
  }
  
  .primary-btn:hover:not(:disabled) {
    box-shadow: 0 5px 15px rgba(37, 117, 252, 0.3);
    transform: translateY(-2px);
  }
  
  .secondary-btn {
    background-color: rgba(0, 0, 0, 0.05);
    color: #555;
  }
  
  .secondary-btn:hover:not(:disabled) {
    background-color: rgba(0, 0, 0, 0.1);
  }
  
  .success-btn {
    background: var(--gradient-success);
    color: white;
  }
  
  .success-btn:hover:not(:disabled) {
    box-shadow: 0 5px 15px rgba(0, 200, 83, 0.3);
    transform: translateY(-2px);
  }
  
  .warning-btn {
    background: var(--gradient-warning);
    color: white;
  }
  
  .warning-btn:hover:not(:disabled) {
    box-shadow: 0 5px 15px rgba(255, 171, 0, 0.3);
    transform: translateY(-2px);
  }
  
  .danger-btn {
    background: var(--gradient-danger);
    color: white;
  }
  
  .danger-btn:hover:not(:disabled) {
    box-shadow: 0 5px 15px rgba(255, 61, 0, 0.3);
    transform: translateY(-2px);
  }
  
  .icon-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    color: #555;
    font-size: 1rem;
  }
  
  .icon-btn:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
  }
  
  .icon-btn.danger {
    color: var(--danger-color);
  }
  
  .icon-btn.danger:hover {
    background-color: rgba(255, 61, 0, 0.1);
  }
  
  /* Ripple Effect */
  .ripple {
    position: relative;
    overflow: hidden;
  }
  
  .ripple::after {
    content: "";
    position: absolute;
    width: 100px;
    height: 100px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 0.6s linear;
    opacity: 0;
  }
  
  @keyframes ripple {
    0% {
      transform: scale(0);
      opacity: 0.5;
    }
    100% {
      transform: scale(4);
      opacity: 0;
    }
  }
  
  /* Pulse Animation */
  @keyframes pulse {
    0% {
      box-shadow: 0 0 0 0 rgba(37, 117, 252, 0.4);
    }
    70% {
      box-shadow: 0 0 0 10px rgba(37, 117, 252, 0);
    }
    100% {
      box-shadow: 0 0 0 0 rgba(37, 117, 252, 0);
    }
  }
  
  /* Pop In Animation */
  @keyframes popIn {
    0% {
      transform: scale(0);
    }
    80% {
      transform: scale(1.1);
    }
    100% {
      transform: scale(1);
    }
  }
  
  /* Modals */
  .modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
    backdrop-filter: blur(5px);
  }
  
  .modal.active {
    display: flex;
  }
  
  .modal-content {
    border-radius: var(--border-radius);
    padding: 2rem;
    max-width: 90%;
    width: 400px;
    text-align: center;
    position: relative;
    animation: scaleIn 0.3s ease;
  }
  
  @keyframes scaleIn {
    from {
      transform: scale(0.9);
      opacity: 0;
    }
    to {
      transform: scale(1);
      opacity: 1;
    }
  }
  
  .celebration-icon,
  .missed-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
  }
  
  .celebration h2,
  .missed h2 {
    color: white;
    margin-bottom: 1rem;
    font-weight: 700;
  }
  
  .celebration p,
  .missed p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
  }
  
  .motivation-quote {
    font-style: italic;
    margin: 1rem 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
  }
  
  /* Confetti Animation */
  .confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
  }
  
  .confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: #ffbe0b;
    border-radius: 2px;
    animation: confetti-fall 3s linear infinite;
  }
  
  .confetti:nth-child(2n) {
    background-color: #fb5607;
    width: 7px;
    height: 7px;
    animation-delay: 0.2s;
    animation-duration: 2.5s;
  }
  
  .confetti:nth-child(3n) {
    background-color: #ff006e;
    width: 12px;
    height: 12px;
    animation-delay: 0.4s;
    animation-duration: 2.7s;
  }
  
  .confetti:nth-child(4n) {
    background-color: #8338ec;
    width: 8px;
    height: 8px;
    animation-delay: 0.6s;
    animation-duration: 2.9s;
  }
  
  .confetti:nth-child(5n) {
    background-color: #3a86ff;
    width: 9px;
    height: 9px;
    animation-delay: 0.8s;
    animation-duration: 3.1s;
  }
  
  .confetti:nth-child(even) {
    transform-origin: top left;
  }
  
  .confetti:nth-child(odd) {
    transform-origin: top right;
  }
  
  @keyframes confetti-fall {
    0% {
      transform: translateY(-100px) rotate(0deg) scale(1);
      opacity: 1;
    }
    100% {
      transform: translateY(400px) rotate(360deg) scale(0.5);
      opacity: 0;
    }
  }
  
  /* Notification Toast */
  .notification-toast {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    padding: 1rem;
    border-radius: var(--border-radius);
    z-index: 1000;
    transition: top 0.5s ease;
    width: 90%;
    max-width: 400px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--gradient-primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  }
  
  .notification-toast.active {
    top: 20px;
  }
  
  .notification-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }
  
  .notification-content i {
    font-size: 1.2rem;
  }
  
  /* Media Queries */
  @media (min-width: 768px) {
    .app-container {
      max-width: 768px;
      margin: 0 auto;
      box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
      min-height: 100vh;
    }
  
    header {
      border-radius: var(--border-radius) var(--border-radius) 0 0;
    }
  
    .days-grid {
      grid-template-columns: repeat(7, 1fr);
    }
  
    .progress-stats {
      grid-template-columns: repeat(3, 1fr);
    }
  
    .muscle-group-grid {
      grid-template-columns: repeat(4, 1fr);
    }
  }
  
  @media (min-width: 1024px) {
    .app-container {
      max-width: 1024px;
    }
  
    .days-grid {
      grid-template-columns: repeat(9, 1fr);
    }
  }
  
  /* Empty State */
  .empty-message {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-style: italic;
  }
  
  @keyframes shake {
    0%, 100% {
      transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
      transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
      transform: translateX(5px);
    }
  }
  
  /* Shake Animation for Form Validation */
  .shake {
    animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
  }
  
  /* Configured Days */
  .configured-days {
    margin-top: 1.5rem;
  }
  
  .configured-day-item {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
  }
  
  .configured-day-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }
  
  .configured-day-info {
    display: flex;
    flex-direction: column;
  }
  
  .configured-day-name {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
  }
  
  .configured-day-group {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.25rem;
  }
  
  .configured-day-exercises {
    font-size: 0.8rem;
    color: #999;
  }
  
  .empty-days-message {
    text-align: center;
    padding: 1.5rem;
    color: #666;
    font-style: italic;
  }
  
  /* Added Exercises */
  .added-exercises {
    margin-top: 1.5rem;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
  }
  
  .added-exercises::-webkit-scrollbar {
    width: 4px;
  }
  
  .added-exercises::-webkit-scrollbar-track {
    background: transparent;
  }
  
  .added-exercises::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 20px;
  }
  
  /* Workout Detail Info */
  .workout-detail-info {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  }
  
  /* Timer Animation */
  @keyframes countdown {
    from {
      stroke-dashoffset: 0;
    }
    to {
      stroke-dashoffset: 565.48; /* 2 * PI * 90 */
    }
  }
  
  /* Ripple Effect Animation */
  .ripple-effect {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.7);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
  }
  
  @keyframes ripple-animation {
    to {
      transform: scale(4);
      opacity: 0;
    }
  }
  
  /* Workout Execution */
  .workout-execution-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .timer-circle {
    position: relative;
  }
  
  .timer-bg {
    stroke: rgba(0, 0, 0, 0.05);
    stroke-width: 10;
    fill: none;
  }
  
  .timer-progress {
    stroke: var(--primary-color);
    stroke-width: 10;
    stroke-linecap: round;
    fill: none;
    transform: rotate(-90deg);
    transform-origin: center;
    transition: stroke-dashoffset 1s linear;
  }
  
  .timer-display {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
  }
  
  .timer-time {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
  }
  
  .timer-label {
    font-size: 1rem;
    color: #666;
    margin-top: 0.5rem;
  }
  
  .current-set {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 1rem 0;
  }
  
  .reps-display {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 1.5rem;
  }
  
  /* Accessibility Improvements */
  button:focus-visible,
  input:focus-visible,
  textarea:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
  }
  
  /* Print Styles */
  @media print {
    .app-container {
      background: none;
      box-shadow: none;
    }
    
    .screen {
      display: block !important;
      padding: 0;
    }
    
    .btn,
    .icon-btn,
    .header-actions,
    .background-animation {
      display: none !important;
    }
    
    .glass-effect {
      background: none;
      box-shadow: none;
      border: 1px solid #ddd;
    }
    
    body {
      font-size: 12pt;
      color: black;
    }
    
    h1, h2, h3, h4 {
      color: black;
    }
  }
  
  /* Dark Mode Support (for future implementation) */
  @media (prefers-color-scheme: dark) {
    :root {
      /* These will be activated when dark mode is implemented */
      --dark-mode-bg: #121212;
      --dark-mode-card-bg: #1e1e1e;
      --dark-mode-text: #e0e0e0;
      --dark-mode-border: #333;
    }
  }
  
  /* Animations for Workout Routine Icons */
  .muscle-icon i {
    transition: transform 0.3s ease;
  }
  
  .muscle-group-card:hover .muscle-icon i {
    transform: scale(1.2);
  }
  
  /* Status Indicators */
  .status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
  }
  
  .status-indicator.active {
    background-color: var(--success-color);
    box-shadow: 0 0 5px var(--success-color);
  }
  
  .status-indicator.inactive {
    background-color: #ccc;
  }
  
  .status-indicator.in-progress {
    background-color: var(--warning-color);
    box-shadow: 0 0 5px var(--warning-color);
    animation: pulse 2s infinite;
  }
  
  /* Improved Accessibility */
  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
  }
  
  /* Utility Classes */
  .text-center {
    text-align: center;
  }
  
  .mt-1 {
    margin-top: 0.5rem;
  }
  
  .mt-2 {
    margin-top: 1rem;
  }
  
  .mb-1 {
    margin-bottom: 0.5rem;
  }
  
  .mb-2 {
    margin-bottom: 1rem;
  }
  
  .flex {
    display: flex;
  }
  
  .flex-col {
    flex-direction: column;
  }
  
  .items-center {
    align-items: center;
  }
  
  .justify-center {
    justify-content: center;
  }
  
  .justify-between {
    justify-content: space-between;
  }
  
  .gap-1 {
    gap: 0.5rem;
  }
  
  .gap-2 {
    gap: 1rem;
  }
  
  /* Improved Focus States for Accessibility */
  a:focus,
  button:focus,
  input:focus,
  select:focus,
  textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
  }
  
  /* Additional Animations */
  @keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
      transform: translateY(0);
    }
    40% {
      transform: translateY(-20px);
    }
    60% {
      transform: translateY(-10px);
    }
  }
  
  .bounce {
    animation: bounce 2s infinite;
  }
  
  /* Additional Responsive Adjustments */
  @media (max-width: 480px) {
    .days-grid {
      grid-template-columns: repeat(3, 1fr);
    }
    
    .workout-days-grid {
      grid-template-columns: repeat(4, 1fr);
    }
    
    .sets-grid {
      grid-template-columns: repeat(3, 1fr);
    }
    
    .progress-stats {
      grid-template-columns: repeat(1, 1fr);
    }
    
    .exercise-details {
      flex-direction: column;
      align-items: flex-start;
    }
    
    .button-group {
      flex-direction: column;
    }
    
    .weekday-selector {
      flex-wrap: wrap;
      justify-content: center;
    }
  }