* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #000000;
    min-height: 100vh;
    padding: 20px;
    color: white;
}

.container {
    max-width: 400px;
    margin: 0 auto;
    background: #000000;
    border: 1px solid #333333;
    border-radius: 8px;
    overflow: hidden;
}

.header {
    background: #000000;
    color: white;
    text-align: center;
    padding: 30px 20px;
    border-bottom: 1px solid #333333;
}

.header h1 {
    font-size: 24px;
    font-weight: 600;
}

.content {
    padding: 10px 20px 20px 20px;
    background: #000000;
}

.screen {
    display: block;
}

/* Setup Screen Styles */
.setup-screen .section-title {
    font-size: 20px;
    font-weight: 600;
    color: white;
    margin-bottom: 20px;
    text-align: center;
}

.setup-section {
    margin-bottom: 30px;
}

.setup-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin-bottom: 5px;
}

.optional {
    font-weight: 400;
    color: #888888;
    font-size: 14px;
}

.section-desc {
    font-size: 14px;
    color: #cccccc;
    margin-bottom: 15px;
}

.input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.input-group input {
    flex: 1;
    background: #111111;
    border: 1px solid #333333;
    border-radius: 6px;
    padding: 12px;
    color: white;
    font-size: 16px; /* 16px+ zapobiega zoom na iOS */
    -webkit-appearance: none;
    -webkit-border-radius: 6px;
}

.input-group input::placeholder {
    color: #666666;
}

.input-group input:focus {
    outline: none;
    border-color: #555555;
}

.input-group button {
    background: #333333;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.input-group button:hover {
    background: #444444;
}

.muscles-list {
    min-height: 50px;
}

.muscle-tag {
    display: inline-block;
    background: #222222;
    color: white;
    padding: 8px 12px;
    margin: 4px;
    border-radius: 6px;
    font-size: 14px;
    border: 1px solid #333333;
    position: relative;
    padding-right: 30px;
}

.muscle-tag .remove-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #888888;
    font-size: 16px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.muscle-tag .remove-btn:hover {
    color: #ffffff;
}

.muscle-tag.editing {
    padding-right: 12px;
}

.muscle-tag input {
    background: transparent;
    border: none;
    color: white;
    font-size: 16px; /* 16px+ zapobiega zoom na iOS */
    width: 100%;
    outline: none;
    -webkit-appearance: none;
}

.muscle-tag input:focus {
    background: #333333;
    padding: 2px 4px;
    border-radius: 3px;
}

.setup-actions {
    margin-top: 40px;
    text-align: center;
}

.primary-button {
    width: 100%;
    background: #333333;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 15px;
    transition: background-color 0.2s ease;
}

.primary-button:hover {
    background: #444444;
}

.primary-button:disabled {
    background: #222222;
    color: #666666;
    cursor: not-allowed;
}

.example-button {
    background: #111111;
    color: #cccccc;
    border: 1px solid #333333;
    border-radius: 6px;
    padding: 10px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.example-button:hover {
    background: #222222;
}

/* Workout Screen Styles */
.workout-screen .section-title {
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin-bottom: 15px;
}

.workout-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.edit-button {
    background: #222222;
    color: #cccccc;
    border: 1px solid #444444;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.edit-button:hover {
    background: #333333;
}

.today-exercise {
    background: #111111;
    border: 1px solid #333333;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.muscle-item {
    display: flex;
    align-items: center;
    background: #111111;
    border: 1px solid #333333;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

/* Usuwamy hover na urządzeniach mobilnych */
@media (hover: hover) and (pointer: fine) {
    .muscle-item:hover {
        background: #222222;
        border-color: #555555;
    }
}

/* Zapobiegamy mobile touch highlight */
.muscle-item {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.muscle-item.checked {
    background: #111111;
    border-color: #333333;
    color: white;
}

.checkbox {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    border: 2px solid #666666;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.muscle-item.checked .checkbox {
    background: white;
    border-color: white;
    color: black;
}

.muscle-text {
    font-size: 16px;
    font-weight: 500;
    color: white;
}


.show-more-button {
    width: 100%;
    background: #222222;
    color: white;
    border: 1px solid #444444;
    border-radius: 8px;
    padding: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 15px;
    margin-bottom: 20px;
    transition: background-color 0.2s ease;
}

.show-more-button:hover {
    background: #333333;
}

.more-exercises {
    display: none;
}

.more-exercises.show {
    display: block;
}

.workout-actions {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.shuffle-button {
    width: 100%;
    background: #333333;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 15px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.shuffle-button:hover {
    background: #444444;
}


.clear-data-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.clear-data-link a {
    color: #888888;
    text-decoration: none;
    font-size: 12px;
    cursor: pointer;
}

.clear-data-link a:hover {
    text-decoration: underline;
    color: #aaaaaa;
}

/* Version display */
.version-display {
    color: #666666;
    font-size: 10px;
    font-family: monospace;
    user-select: none;
    pointer-events: none;
}

/* Empty state */
.empty-state {
    text-align: center;
    color: #666666;
    font-style: italic;
    padding: 20px;
}

/* Completed state */
.completed-state {
    text-align: center;
    color: #00aa00;
    font-weight: 600;
    font-size: 18px;
    padding: 30px 20px;
    background: linear-gradient(135deg, rgba(0, 170, 0, 0.1), rgba(0, 170, 0, 0.05));
    border: 1px solid rgba(0, 170, 0, 0.3);
    border-radius: 12px;
}