/* Mobile-optimized weightlifting app styles */

.screen {
    display: none;
}

.screen.active {
    display: block;
}

/* Date header */
.date-header {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e5ff;
}

/* Group headers */
.group-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 15px;
    font-weight: bold;
    font-size: 1rem;
    margin-top: 15px;
    margin-bottom: 10px;
    border-radius: 10px;
}

.group-header:first-child {
    margin-top: 0;
}

/* Workout items */
.workout-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #f8f9ff;
    border: 2px solid #e0e5ff;
    border-radius: 10px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.workout-item.completed {
    background: #e8f5e9;
    border-color: #a5d6a7;
}

.workout-item.skipped {
    background: #fff3e0;
    border-color: #ffcc80;
    opacity: 0.7;
}

.workout-info {
    flex: 1;
    min-width: 0;
    padding-right: 10px;
}

.workout-name {
    font-weight: bold;
    color: #333;
    font-size: 0.95rem;
    line-height: 1.3;
    word-wrap: break-word;
}

.workout-details {
    color: #666;
    font-size: 0.85rem;
    margin-top: 3px;
}

/* Action buttons */
.workout-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.action-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.action-btn:active {
    transform: scale(0.95);
}

/* Check button */
.check-btn {
    color: #4caf50;
    border-color: #a5d6a7;
}

.check-btn:hover, .check-btn.active {
    background: #4caf50;
    color: white;
    border-color: #4caf50;
}

/* Skip button */
.skip-btn {
    color: #ff9800;
    border-color: #ffcc80;
}

.skip-btn:hover, .skip-btn.active {
    background: #ff9800;
    color: white;
    border-color: #ff9800;
}

/* Increase button */
.increase-btn {
    color: #2196f3;
    border-color: #90caf9;
}

.increase-btn:hover, .increase-btn.active {
    background: #2196f3;
    color: white;
    border-color: #2196f3;
}

.increase-btn.previously-marked {
    background: #bbdefb;
    color: #1565c0;
    border-color: #64b5f6;
    cursor: not-allowed;
}

.increase-btn.previously-marked:hover {
    background: #bbdefb;
    color: #1565c0;
}

/* Edit button */
.edit-btn {
    color: #9c27b0;
    border-color: #ce93d8;
}

.edit-btn:hover {
    background: #9c27b0;
    color: white;
    border-color: #9c27b0;
}

/* Action bar */
.action-bar {
    margin-top: 25px;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Summary screen */
.summary-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 30px 0;
}

.stat {
    background: #f8f9ff;
    border: 2px solid #e0e5ff;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: #5a4fcf;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 25px;
    width: 100%;
    max-width: 350px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.modal-content h3 {
    color: #5a4fcf;
    margin-bottom: 20px;
    text-align: center;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.modal-buttons .secondary-btn,
.modal-buttons .big-btn {
    flex: 1;
    padding: 12px 20px;
    font-size: 1rem;
}

/* Mobile optimizations */
@media (max-width: 600px) {
    .content {
        padding: 15px;
    }

    .workout-item {
        padding: 10px 12px;
    }

    .workout-name {
        font-size: 0.9rem;
    }

    .workout-details {
        font-size: 0.8rem;
    }

    .action-btn {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }

    .workout-actions {
        gap: 4px;
    }

    .group-header {
        padding: 10px 12px;
        font-size: 0.95rem;
    }

    .big-btn {
        width: 100%;
        padding: 15px 20px;
    }

    .action-bar {
        flex-direction: column;
    }

    .summary-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .stat {
        padding: 15px;
    }

    .stat-value {
        font-size: 2rem;
    }
}

/* Extra small screens */
@media (max-width: 380px) {
    .action-btn {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .workout-name {
        font-size: 0.85rem;
    }
}

/* Touch-friendly adjustments */
@media (hover: none) {
    .action-btn:hover {
        background: white;
        color: inherit;
    }

    .check-btn:hover {
        color: #4caf50;
        border-color: #a5d6a7;
    }

    .check-btn.active:hover {
        background: #4caf50;
        color: white;
    }

    .skip-btn:hover {
        color: #ff9800;
        border-color: #ffcc80;
    }

    .skip-btn.active:hover {
        background: #ff9800;
        color: white;
    }

    .increase-btn:hover {
        color: #2196f3;
        border-color: #90caf9;
    }

    .increase-btn.active:hover {
        background: #2196f3;
        color: white;
    }

    .edit-btn:hover {
        color: #9c27b0;
        border-color: #ce93d8;
    }
}
