/* Workout Template Styles */

/* Template action buttons */
.template-actions-btns {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.template-actions-btns .btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

/* Button colors */
.btn-info {
    background-color: #0891b2;
    color: white;
    border-color: #0891b2;
}

.btn-info:hover {
    background-color: #0e7490;
    border-color: #0e7490;
}

.btn-secondary {
    background-color: #6b7280;
    color: white;
    border-color: #6b7280;
}

.btn-secondary:hover {
    background-color: #4b5563;
    border-color: #4b5563;
}

/* Template item styling */
.template-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    background: #f9fafb;
    transition: all 0.2s ease;
}

.template-item:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Responsive design for mobile */
@media (max-width: 768px) {
    .template-item {
        flex-direction: column;
        gap: 1rem;
    }
    
    .template-actions-btns {
        width: 100%;
        justify-content: center;
    }
    
    .template-actions-btns .btn-sm {
        flex: 1;
        justify-content: center;
        min-width: 0;
    }
    
    /* Hide icon text on very small screens */
    @media (max-width: 480px) {
        .template-actions-btns .btn-sm {
            padding: 0.4rem 0.6rem;
        }
        
        .template-actions-btns .btn-sm i {
            margin: 0;
        }
        
        /* Show only icons on smallest screens */
        .template-actions-btns .btn-sm {
            font-size: 0;
        }
        
        .template-actions-btns .btn-sm i {
            font-size: 1rem;
        }
    }
}

/* PDF modal styling */
.pdf-generating {
    text-align: center;
    padding: 2rem;
}

.pdf-generating i {
    font-size: 3rem;
    color: #4a90e2;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}