/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    /* background-color: #1b1718; */
    color: #ffffff;
    line-height: 1.6;

    background-color: var(--primary-color);
    --s: 194px;
    --c1: hsl(0, 0%, 8%);
    --c2: hsl(0, 0%, 6%);
    --c3: hsl(0, 0%, 4%);
    --_l: #0000 calc(25% / 3), var(--c1) 0 25%, #0000 0;
    --_g: conic-gradient(from 120deg at 50% 87.5%, var(--c1) 120deg, #0000 0);
    background: var(--_g), var(--_g) 0 calc(var(--s) / 2), conic-gradient(from 180deg at 75%, var(--c2) 60deg, #0000 0), conic-gradient(from 60deg at 75% 75%, var(--c1) 0 60deg, #0000 0), linear-gradient(150deg, var(--_l)) 0 calc(var(--s) / 2), conic-gradient(at 25% 25%, #0000 50%, var(--c2) 0 240deg, var(--c1) 0 300deg, var(--c2) 0), linear-gradient(-150deg, var(--_l)) var(--c3);
    background-size: calc(.866 * var(--s)) var(--s);
}

.app {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #ffb900;
}

h1 {
    font-size: 2rem;
    font-weight: 700;
}

.header-actions {
    display: flex;
    gap: 10px;
}

/* Buttons */
.btn-primary {
    background-color: #ffb900;
    color: #1b1718;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: #fe9a00;
}

.btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: none;
    border-bottom: 2px solid #ffb900;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background-color: #ffb900;
    color: #1b1718;
}

/* Workout History */
.workout-history {
    margin-bottom: 30px;
}

h2 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.workout-history-list {
    display: flex;
    flex-direction: row;
    gap: 6px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: #ffb900 #2a2a2a;
}

.workout-history-list::-webkit-scrollbar {
    height: 6px;
}

.workout-history-list::-webkit-scrollbar-track {
    background: #2a2a2a;
    border-radius: 3px;
}

.workout-history-list::-webkit-scrollbar-thumb {
    background: #ffb900;
    color: #ffb900;
    border-radius: 3px;
}

.workout-history-list::-webkit-scrollbar-thumb:hover {
    background: #fe9a00;
}

.workout-history-item {
    padding: 8px 12px;
    border-radius: 6px;
    border: 2px solid #ffb900;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 90px;
    text-align: center;
    flex-shrink: 0;
}

.workout-history-item:hover {
    border-color: #fe9a00;
}

.workout-history-item.selected {
    border-color: #ffffff;
}

.workout-history-item.today {
    border-color: #4ade80;
    background-color: rgba(74, 222, 128, 0.1);
}

.workout-history-item.today.selected {
    border-color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}

.workout-history-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.workout-date {
    font-weight: 600;
    color: #ffb900;
    font-size: 0.75rem;
}

.workout-type {
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 600;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.complete {
    background-color: #4ade80;
}

.status-dot.partial {
    background-color: #fbbf24;
}

.status-dot.incomplete {
    background-color: #6b7280;
}

/* Workout Section */
.workout-section {
    background-color: #2a2a2a;
    padding: 20px;
}

.current-workout-header {
    margin-bottom: 20px;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 2px solid #444;
}

.current-workout-header h3 {
    color: #ffb900;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.workout-date-display {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.8;
}



/* Workout Content */
.workout-content {
    margin-bottom: 20px;
}

.workout-section-title {
    color: #ffb900;
    font-size: 1.3rem;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid #444;
}

.exercise-item {
    background-color: #333333;
    margin-bottom: 15px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.exercise-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.exercise-name {
    font-weight: 600;
    color: #ffb900;
}

.exercise-target {
    color: #ffb900;
    font-size: 0.9rem;
}

/* 5x5 Exercise Layout */
.exercise-5x5 {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.weight-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background-color: #444;
    border-radius: 6px;
}

.weight-label {
    color: #ffb900;
    font-weight: 600;
    min-width: 80px;
}

.weight-input {
    background-color: #555;
    border: 1px solid #666;
    color: #ffffff;
    padding: 8px 10px;
    width: 80px;
    border-radius: 4px;
}

.weight-input:focus {
    outline: none;
    border-color: #ffb900;
}

.weight-unit {
    color: #ccc;
    font-size: 0.9rem;
}

.sets-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background-color: #444;
    border-radius: 6px;
}

.sets-label {
    color: #ffb900;
    font-weight: 600;
    min-width: 80px;
}

.set-inputs-5x5 {
    display: flex;
    gap: 8px;
    flex-grow: 1;
}

.set-input-5x5 {
    background-color: #555;
    border: 1px solid #666;
    color: #ffffff;
    padding: 8px 10px;
    width: 50px;
    text-align: center;
    border-radius: 4px;
}

.set-input-5x5:focus {
    outline: none;
    border-color: #ffb900;
}

.set-number-5x5 {
    color: #ccc;
    font-size: 0.8rem;
    min-width: 20px;
    text-align: center;
}

/* Rep field container - flex column layout */
.rep-field {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.rep-field .set-number-5x5 {
    font-size: 0.7rem;
    color: #999;
    font-weight: 600;
}

.rep-field .set-input-5x5 {
    padding: 6px 8px;
    font-size: 0.9rem;
}

/* Pull-ups Exercise Layout */
.exercise-pullups {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pullups-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background-color: #444;
    border-radius: 6px;
}

.pullups-label {
    color: #ffb900;
    font-weight: 600;
    min-width: 80px;
}

.pullups-input {
    background-color: #555;
    border: 1px solid #666;
    color: #ffffff;
    padding: 8px 10px;
    width: 80px;
    border-radius: 4px;
}

.pullups-input:focus {
    outline: none;
    border-color: #ffb900;
}

.pullups-unit {
    color: #ccc;
    font-size: 0.9rem;
}

/* Copy Section */
.copy-section {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
}

/* Mobile Optimizations */
@media (max-width: 600px) {
    .app {
        padding: 15px;
    }
    
    header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .header-actions {
        justify-content: center;
    }
    
    .workout-history-list {
        gap: 4px;
        padding-bottom: 6px;
    }
    
    .workout-history-item {
        min-width: 80px;
        padding: 6px 8px;
        flex-shrink: 0;
    }
    
    .workout-date {
        font-size: 0.7rem;
    }
    

    
    .weight-row,
    .sets-row,
    .pullups-row {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .set-inputs-5x5 {
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .set-input-5x5 {
        width: 45px;
    }
}

/* Animation for status changes */
.status-dot {
    transition: background-color 0.3s ease;
}

/* Focus styles for accessibility */
button:focus,
input:focus {
    outline: 2px solid #ffb900;
    outline-offset: 2px;
} 